@almadar/core 10.65.0 → 10.67.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.
@@ -1,4 +1,4 @@
1
- import { b as EventId, c as Effect, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, A as AnyPatternConfig, e as Entity, E as EntityField } from './effect-COsZyQ3w.js';
1
+ import { b as EventId, c as Effect, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, A as AnyPatternConfig, e as Entity, E as EntityField } from './effect-1QxaoQFj.js';
2
2
  import { E as Expression, S as SExpr, J as JsonValue } from './expression-Fk8bQWef.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -498,19 +498,26 @@ type ReferenceConfigType = (typeof REFERENCE_CONFIG_TYPES)[number];
498
498
  declare function isReferenceConfigType(type: string): type is ReferenceConfigType;
499
499
  /**
500
500
  * The secret config-field types. A config knob typed `secret` holds a
501
- * CREDENTIAL (or a reference to one): it must never flow into spec.json,
502
- * traces, plan snapshots, or factory bakes in cleartext consumers mask it
503
- * in UI (password-rendered input) and exclude it from serialization. The
504
- * `.lolo` language does not yet accept `secret` as a config-field type
505
- * (orbital-lolo parser gate); this contract is the single deterministic
506
- * source downstream consumers (studio, verifiers, rabit bakes) key on once
507
- * it lands until then hosts use a `string` knob plus a password-rendered
508
- * `ui-input` (the std-service-custom-bearer pattern).
501
+ * credential REFERENCE (an env-var key name for `resolveCredentialRef`)
502
+ * and, as defense-in-depth against a host wrongly inlining material, its
503
+ * VALUE must never flow into spec.json, traces, plan snapshots, or factory
504
+ * bakes in cleartext: consumers mask it (see `maskSecretConfigValues`) and
505
+ * UI password-renders the knob. `.lolo` accepts `: secret` as a config-field
506
+ * type (I-29, 2026-08-23 previously the parser silently read it as a
507
+ * meaningless named type); this contract is the single deterministic source
508
+ * downstream consumers (studio, verifiers, rabit bakes) key on.
509
509
  */
510
510
  declare const SECRET_CONFIG_TYPES: readonly ["secret"];
511
511
  type SecretConfigType = (typeof SECRET_CONFIG_TYPES)[number];
512
512
  /** True when a config field's `type` marks its value as a credential to be masked. */
513
513
  declare function isSecretConfigType(type: string): type is SecretConfigType;
514
+ /**
515
+ * Return `values` with every `secret`-declared field's string value masked to
516
+ * its last 4 characters (shorter values fully masked). Non-secret fields and
517
+ * non-string values pass through untouched. Use before echoing call-site
518
+ * config into traces, spec snapshots, or logs.
519
+ */
520
+ declare function maskSecretConfigValues(config: DeclaredTraitConfig, values: TraitConfig): TraitConfig;
514
521
  type ConfigFieldDeclaration = {
515
522
  readonly type: string;
516
523
  readonly default?: TraitConfigValue;
@@ -677,8 +684,8 @@ declare const TraitTickSchema: z.ZodObject<{
677
684
  interval: string | number;
678
685
  description?: string | undefined;
679
686
  pages?: string[] | undefined;
680
- guard?: SExpr | undefined;
681
687
  priority?: number | undefined;
688
+ guard?: SExpr | undefined;
682
689
  appliesTo?: string[] | undefined;
683
690
  pageIds?: PageId[] | undefined;
684
691
  emits?: string[] | undefined;
@@ -689,8 +696,8 @@ declare const TraitTickSchema: z.ZodObject<{
689
696
  interval: string | number;
690
697
  description?: string | undefined;
691
698
  pages?: string[] | undefined;
692
- guard?: SExpr | undefined;
693
699
  priority?: number | undefined;
700
+ guard?: SExpr | undefined;
694
701
  appliesTo?: string[] | undefined;
695
702
  pageIds?: string[] | undefined;
696
703
  emits?: string[] | undefined;
@@ -807,18 +814,18 @@ declare const TraitEventContractSchema: z.ZodObject<{
807
814
  event: string;
808
815
  description?: string | undefined;
809
816
  synonyms?: string | undefined;
817
+ eventId?: EventId | undefined;
810
818
  scope?: "internal" | "external" | undefined;
811
819
  tier?: string | undefined;
812
820
  payloadSchema?: EventPayloadField[] | undefined;
813
- eventId?: EventId | undefined;
814
821
  }, {
815
822
  event: string;
816
823
  description?: string | undefined;
817
824
  synonyms?: string | undefined;
825
+ eventId?: string | undefined;
818
826
  scope?: "internal" | "external" | undefined;
819
827
  tier?: string | undefined;
820
828
  payloadSchema?: EventPayloadField[] | undefined;
821
- eventId?: string | undefined;
822
829
  }>;
823
830
  /**
824
831
  * Event listener for trait communication.
@@ -993,9 +1000,9 @@ declare const TraitEventListenerSchema: z.ZodObject<{
993
1000
  traitId?: TraitId | undefined;
994
1001
  orbitalId?: OrbitalId | undefined;
995
1002
  } | undefined;
1003
+ eventId?: EventId | undefined;
996
1004
  scope?: "internal" | "external" | undefined;
997
1005
  tier?: string | undefined;
998
- eventId?: EventId | undefined;
999
1006
  guard?: SExpr | undefined;
1000
1007
  triggersId?: EventId | undefined;
1001
1008
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1017,9 +1024,9 @@ declare const TraitEventListenerSchema: z.ZodObject<{
1017
1024
  traitId?: string | undefined;
1018
1025
  orbitalId?: string | undefined;
1019
1026
  } | undefined;
1027
+ eventId?: string | undefined;
1020
1028
  scope?: "internal" | "external" | undefined;
1021
1029
  tier?: string | undefined;
1022
- eventId?: string | undefined;
1023
1030
  guard?: SExpr | undefined;
1024
1031
  triggersId?: string | undefined;
1025
1032
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1222,9 +1229,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1222
1229
  traitId?: TraitId | undefined;
1223
1230
  orbitalId?: OrbitalId | undefined;
1224
1231
  } | undefined;
1232
+ eventId?: EventId | undefined;
1225
1233
  scope?: "internal" | "external" | undefined;
1226
1234
  tier?: string | undefined;
1227
- eventId?: EventId | undefined;
1228
1235
  guard?: SExpr | undefined;
1229
1236
  triggersId?: EventId | undefined;
1230
1237
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1246,9 +1253,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1246
1253
  traitId?: string | undefined;
1247
1254
  orbitalId?: string | undefined;
1248
1255
  } | undefined;
1256
+ eventId?: string | undefined;
1249
1257
  scope?: "internal" | "external" | undefined;
1250
1258
  tier?: string | undefined;
1251
- eventId?: string | undefined;
1252
1259
  guard?: SExpr | undefined;
1253
1260
  triggersId?: string | undefined;
1254
1261
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1287,9 +1294,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1287
1294
  traitId?: TraitId | undefined;
1288
1295
  orbitalId?: OrbitalId | undefined;
1289
1296
  } | undefined;
1297
+ eventId?: EventId | undefined;
1290
1298
  scope?: "internal" | "external" | undefined;
1291
1299
  tier?: string | undefined;
1292
- eventId?: EventId | undefined;
1293
1300
  guard?: SExpr | undefined;
1294
1301
  triggersId?: EventId | undefined;
1295
1302
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1327,9 +1334,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1327
1334
  traitId?: string | undefined;
1328
1335
  orbitalId?: string | undefined;
1329
1336
  } | undefined;
1337
+ eventId?: string | undefined;
1330
1338
  scope?: "internal" | "external" | undefined;
1331
1339
  tier?: string | undefined;
1332
- eventId?: string | undefined;
1333
1340
  guard?: SExpr | undefined;
1334
1341
  triggersId?: string | undefined;
1335
1342
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1367,9 +1374,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1367
1374
  traitId?: TraitId | undefined;
1368
1375
  orbitalId?: OrbitalId | undefined;
1369
1376
  } | undefined;
1377
+ eventId?: EventId | undefined;
1370
1378
  scope?: "internal" | "external" | undefined;
1371
1379
  tier?: string | undefined;
1372
- eventId?: EventId | undefined;
1373
1380
  guard?: SExpr | undefined;
1374
1381
  triggersId?: EventId | undefined;
1375
1382
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1407,9 +1414,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1407
1414
  traitId?: string | undefined;
1408
1415
  orbitalId?: string | undefined;
1409
1416
  } | undefined;
1417
+ eventId?: string | undefined;
1410
1418
  scope?: "internal" | "external" | undefined;
1411
1419
  tier?: string | undefined;
1412
- eventId?: string | undefined;
1413
1420
  guard?: SExpr | undefined;
1414
1421
  triggersId?: string | undefined;
1415
1422
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -1939,8 +1946,8 @@ declare const TraitSchema: z.ZodObject<{
1939
1946
  interval: string | number;
1940
1947
  description?: string | undefined;
1941
1948
  pages?: string[] | undefined;
1942
- guard?: SExpr | undefined;
1943
1949
  priority?: number | undefined;
1950
+ guard?: SExpr | undefined;
1944
1951
  appliesTo?: string[] | undefined;
1945
1952
  pageIds?: PageId[] | undefined;
1946
1953
  emits?: string[] | undefined;
@@ -1951,8 +1958,8 @@ declare const TraitSchema: z.ZodObject<{
1951
1958
  interval: string | number;
1952
1959
  description?: string | undefined;
1953
1960
  pages?: string[] | undefined;
1954
- guard?: SExpr | undefined;
1955
1961
  priority?: number | undefined;
1962
+ guard?: SExpr | undefined;
1956
1963
  appliesTo?: string[] | undefined;
1957
1964
  pageIds?: string[] | undefined;
1958
1965
  emits?: string[] | undefined;
@@ -1979,18 +1986,18 @@ declare const TraitSchema: z.ZodObject<{
1979
1986
  event: string;
1980
1987
  description?: string | undefined;
1981
1988
  synonyms?: string | undefined;
1989
+ eventId?: EventId | undefined;
1982
1990
  scope?: "internal" | "external" | undefined;
1983
1991
  tier?: string | undefined;
1984
1992
  payloadSchema?: EventPayloadField[] | undefined;
1985
- eventId?: EventId | undefined;
1986
1993
  }, {
1987
1994
  event: string;
1988
1995
  description?: string | undefined;
1989
1996
  synonyms?: string | undefined;
1997
+ eventId?: string | undefined;
1990
1998
  scope?: "internal" | "external" | undefined;
1991
1999
  tier?: string | undefined;
1992
2000
  payloadSchema?: EventPayloadField[] | undefined;
1993
- eventId?: string | undefined;
1994
2001
  }>, "many">>;
1995
2002
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
1996
2003
  event: z.ZodString;
@@ -2058,9 +2065,9 @@ declare const TraitSchema: z.ZodObject<{
2058
2065
  traitId?: TraitId | undefined;
2059
2066
  orbitalId?: OrbitalId | undefined;
2060
2067
  } | undefined;
2068
+ eventId?: EventId | undefined;
2061
2069
  scope?: "internal" | "external" | undefined;
2062
2070
  tier?: string | undefined;
2063
- eventId?: EventId | undefined;
2064
2071
  guard?: SExpr | undefined;
2065
2072
  triggersId?: EventId | undefined;
2066
2073
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2082,9 +2089,9 @@ declare const TraitSchema: z.ZodObject<{
2082
2089
  traitId?: string | undefined;
2083
2090
  orbitalId?: string | undefined;
2084
2091
  } | undefined;
2092
+ eventId?: string | undefined;
2085
2093
  scope?: "internal" | "external" | undefined;
2086
2094
  tier?: string | undefined;
2087
- eventId?: string | undefined;
2088
2095
  guard?: SExpr | undefined;
2089
2096
  triggersId?: string | undefined;
2090
2097
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2353,10 +2360,10 @@ declare const TraitSchema: z.ZodObject<{
2353
2360
  event: string;
2354
2361
  description?: string | undefined;
2355
2362
  synonyms?: string | undefined;
2363
+ eventId?: EventId | undefined;
2356
2364
  scope?: "internal" | "external" | undefined;
2357
2365
  tier?: string | undefined;
2358
2366
  payloadSchema?: EventPayloadField[] | undefined;
2359
- eventId?: EventId | undefined;
2360
2367
  }[] | undefined;
2361
2368
  linkedEntity?: string | undefined;
2362
2369
  linkedEntityId?: EntityId | undefined;
@@ -2378,9 +2385,9 @@ declare const TraitSchema: z.ZodObject<{
2378
2385
  traitId?: TraitId | undefined;
2379
2386
  orbitalId?: OrbitalId | undefined;
2380
2387
  } | undefined;
2388
+ eventId?: EventId | undefined;
2381
2389
  scope?: "internal" | "external" | undefined;
2382
2390
  tier?: string | undefined;
2383
- eventId?: EventId | undefined;
2384
2391
  guard?: SExpr | undefined;
2385
2392
  triggersId?: EventId | undefined;
2386
2393
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2407,8 +2414,8 @@ declare const TraitSchema: z.ZodObject<{
2407
2414
  interval: string | number;
2408
2415
  description?: string | undefined;
2409
2416
  pages?: string[] | undefined;
2410
- guard?: SExpr | undefined;
2411
2417
  priority?: number | undefined;
2418
+ guard?: SExpr | undefined;
2412
2419
  appliesTo?: string[] | undefined;
2413
2420
  pageIds?: PageId[] | undefined;
2414
2421
  emits?: string[] | undefined;
@@ -2523,10 +2530,10 @@ declare const TraitSchema: z.ZodObject<{
2523
2530
  event: string;
2524
2531
  description?: string | undefined;
2525
2532
  synonyms?: string | undefined;
2533
+ eventId?: string | undefined;
2526
2534
  scope?: "internal" | "external" | undefined;
2527
2535
  tier?: string | undefined;
2528
2536
  payloadSchema?: EventPayloadField[] | undefined;
2529
- eventId?: string | undefined;
2530
2537
  }[] | undefined;
2531
2538
  linkedEntity?: string | undefined;
2532
2539
  linkedEntityId?: string | undefined;
@@ -2548,9 +2555,9 @@ declare const TraitSchema: z.ZodObject<{
2548
2555
  traitId?: string | undefined;
2549
2556
  orbitalId?: string | undefined;
2550
2557
  } | undefined;
2558
+ eventId?: string | undefined;
2551
2559
  scope?: "internal" | "external" | undefined;
2552
2560
  tier?: string | undefined;
2553
- eventId?: string | undefined;
2554
2561
  guard?: SExpr | undefined;
2555
2562
  triggersId?: string | undefined;
2556
2563
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2577,8 +2584,8 @@ declare const TraitSchema: z.ZodObject<{
2577
2584
  interval: string | number;
2578
2585
  description?: string | undefined;
2579
2586
  pages?: string[] | undefined;
2580
- guard?: SExpr | undefined;
2581
2587
  priority?: number | undefined;
2588
+ guard?: SExpr | undefined;
2582
2589
  appliesTo?: string[] | undefined;
2583
2590
  pageIds?: string[] | undefined;
2584
2591
  emits?: string[] | undefined;
@@ -2701,9 +2708,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2701
2708
  traitId?: TraitId | undefined;
2702
2709
  orbitalId?: OrbitalId | undefined;
2703
2710
  } | undefined;
2711
+ eventId?: EventId | undefined;
2704
2712
  scope?: "internal" | "external" | undefined;
2705
2713
  tier?: string | undefined;
2706
- eventId?: EventId | undefined;
2707
2714
  guard?: SExpr | undefined;
2708
2715
  triggersId?: EventId | undefined;
2709
2716
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2725,9 +2732,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2725
2732
  traitId?: string | undefined;
2726
2733
  orbitalId?: string | undefined;
2727
2734
  } | undefined;
2735
+ eventId?: string | undefined;
2728
2736
  scope?: "internal" | "external" | undefined;
2729
2737
  tier?: string | undefined;
2730
- eventId?: string | undefined;
2731
2738
  guard?: SExpr | undefined;
2732
2739
  triggersId?: string | undefined;
2733
2740
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2766,9 +2773,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2766
2773
  traitId?: TraitId | undefined;
2767
2774
  orbitalId?: OrbitalId | undefined;
2768
2775
  } | undefined;
2776
+ eventId?: EventId | undefined;
2769
2777
  scope?: "internal" | "external" | undefined;
2770
2778
  tier?: string | undefined;
2771
- eventId?: EventId | undefined;
2772
2779
  guard?: SExpr | undefined;
2773
2780
  triggersId?: EventId | undefined;
2774
2781
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2806,9 +2813,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2806
2813
  traitId?: string | undefined;
2807
2814
  orbitalId?: string | undefined;
2808
2815
  } | undefined;
2816
+ eventId?: string | undefined;
2809
2817
  scope?: "internal" | "external" | undefined;
2810
2818
  tier?: string | undefined;
2811
- eventId?: string | undefined;
2812
2819
  guard?: SExpr | undefined;
2813
2820
  triggersId?: string | undefined;
2814
2821
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2846,9 +2853,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2846
2853
  traitId?: TraitId | undefined;
2847
2854
  orbitalId?: OrbitalId | undefined;
2848
2855
  } | undefined;
2856
+ eventId?: EventId | undefined;
2849
2857
  scope?: "internal" | "external" | undefined;
2850
2858
  tier?: string | undefined;
2851
- eventId?: EventId | undefined;
2852
2859
  guard?: SExpr | undefined;
2853
2860
  triggersId?: EventId | undefined;
2854
2861
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -2886,9 +2893,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2886
2893
  traitId?: string | undefined;
2887
2894
  orbitalId?: string | undefined;
2888
2895
  } | undefined;
2896
+ eventId?: string | undefined;
2889
2897
  scope?: "internal" | "external" | undefined;
2890
2898
  tier?: string | undefined;
2891
- eventId?: string | undefined;
2892
2899
  guard?: SExpr | undefined;
2893
2900
  triggersId?: string | undefined;
2894
2901
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -3145,8 +3152,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3145
3152
  interval: string | number;
3146
3153
  description?: string | undefined;
3147
3154
  pages?: string[] | undefined;
3148
- guard?: SExpr | undefined;
3149
3155
  priority?: number | undefined;
3156
+ guard?: SExpr | undefined;
3150
3157
  appliesTo?: string[] | undefined;
3151
3158
  pageIds?: PageId[] | undefined;
3152
3159
  emits?: string[] | undefined;
@@ -3157,8 +3164,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3157
3164
  interval: string | number;
3158
3165
  description?: string | undefined;
3159
3166
  pages?: string[] | undefined;
3160
- guard?: SExpr | undefined;
3161
3167
  priority?: number | undefined;
3168
+ guard?: SExpr | undefined;
3162
3169
  appliesTo?: string[] | undefined;
3163
3170
  pageIds?: string[] | undefined;
3164
3171
  emits?: string[] | undefined;
@@ -3185,18 +3192,18 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3185
3192
  event: string;
3186
3193
  description?: string | undefined;
3187
3194
  synonyms?: string | undefined;
3195
+ eventId?: EventId | undefined;
3188
3196
  scope?: "internal" | "external" | undefined;
3189
3197
  tier?: string | undefined;
3190
3198
  payloadSchema?: EventPayloadField[] | undefined;
3191
- eventId?: EventId | undefined;
3192
3199
  }, {
3193
3200
  event: string;
3194
3201
  description?: string | undefined;
3195
3202
  synonyms?: string | undefined;
3203
+ eventId?: string | undefined;
3196
3204
  scope?: "internal" | "external" | undefined;
3197
3205
  tier?: string | undefined;
3198
3206
  payloadSchema?: EventPayloadField[] | undefined;
3199
- eventId?: string | undefined;
3200
3207
  }>, "many">>;
3201
3208
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
3202
3209
  event: z.ZodString;
@@ -3264,9 +3271,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3264
3271
  traitId?: TraitId | undefined;
3265
3272
  orbitalId?: OrbitalId | undefined;
3266
3273
  } | undefined;
3274
+ eventId?: EventId | undefined;
3267
3275
  scope?: "internal" | "external" | undefined;
3268
3276
  tier?: string | undefined;
3269
- eventId?: EventId | undefined;
3270
3277
  guard?: SExpr | undefined;
3271
3278
  triggersId?: EventId | undefined;
3272
3279
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -3288,9 +3295,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3288
3295
  traitId?: string | undefined;
3289
3296
  orbitalId?: string | undefined;
3290
3297
  } | undefined;
3298
+ eventId?: string | undefined;
3291
3299
  scope?: "internal" | "external" | undefined;
3292
3300
  tier?: string | undefined;
3293
- eventId?: string | undefined;
3294
3301
  guard?: SExpr | undefined;
3295
3302
  triggersId?: string | undefined;
3296
3303
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -3559,10 +3566,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3559
3566
  event: string;
3560
3567
  description?: string | undefined;
3561
3568
  synonyms?: string | undefined;
3569
+ eventId?: EventId | undefined;
3562
3570
  scope?: "internal" | "external" | undefined;
3563
3571
  tier?: string | undefined;
3564
3572
  payloadSchema?: EventPayloadField[] | undefined;
3565
- eventId?: EventId | undefined;
3566
3573
  }[] | undefined;
3567
3574
  linkedEntity?: string | undefined;
3568
3575
  linkedEntityId?: EntityId | undefined;
@@ -3584,9 +3591,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3584
3591
  traitId?: TraitId | undefined;
3585
3592
  orbitalId?: OrbitalId | undefined;
3586
3593
  } | undefined;
3594
+ eventId?: EventId | undefined;
3587
3595
  scope?: "internal" | "external" | undefined;
3588
3596
  tier?: string | undefined;
3589
- eventId?: EventId | undefined;
3590
3597
  guard?: SExpr | undefined;
3591
3598
  triggersId?: EventId | undefined;
3592
3599
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -3613,8 +3620,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3613
3620
  interval: string | number;
3614
3621
  description?: string | undefined;
3615
3622
  pages?: string[] | undefined;
3616
- guard?: SExpr | undefined;
3617
3623
  priority?: number | undefined;
3624
+ guard?: SExpr | undefined;
3618
3625
  appliesTo?: string[] | undefined;
3619
3626
  pageIds?: PageId[] | undefined;
3620
3627
  emits?: string[] | undefined;
@@ -3729,10 +3736,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3729
3736
  event: string;
3730
3737
  description?: string | undefined;
3731
3738
  synonyms?: string | undefined;
3739
+ eventId?: string | undefined;
3732
3740
  scope?: "internal" | "external" | undefined;
3733
3741
  tier?: string | undefined;
3734
3742
  payloadSchema?: EventPayloadField[] | undefined;
3735
- eventId?: string | undefined;
3736
3743
  }[] | undefined;
3737
3744
  linkedEntity?: string | undefined;
3738
3745
  linkedEntityId?: string | undefined;
@@ -3754,9 +3761,9 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3754
3761
  traitId?: string | undefined;
3755
3762
  orbitalId?: string | undefined;
3756
3763
  } | undefined;
3764
+ eventId?: string | undefined;
3757
3765
  scope?: "internal" | "external" | undefined;
3758
3766
  tier?: string | undefined;
3759
- eventId?: string | undefined;
3760
3767
  guard?: SExpr | undefined;
3761
3768
  triggersId?: string | undefined;
3762
3769
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -3783,8 +3790,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3783
3790
  interval: string | number;
3784
3791
  description?: string | undefined;
3785
3792
  pages?: string[] | undefined;
3786
- guard?: SExpr | undefined;
3787
3793
  priority?: number | undefined;
3794
+ guard?: SExpr | undefined;
3788
3795
  appliesTo?: string[] | undefined;
3789
3796
  pageIds?: string[] | undefined;
3790
3797
  emits?: string[] | undefined;
@@ -3977,9 +3984,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
3977
3984
  traitId?: TraitId | undefined;
3978
3985
  orbitalId?: OrbitalId | undefined;
3979
3986
  } | undefined;
3987
+ eventId?: EventId | undefined;
3980
3988
  scope?: "internal" | "external" | undefined;
3981
3989
  tier?: string | undefined;
3982
- eventId?: EventId | undefined;
3983
3990
  guard?: SExpr | undefined;
3984
3991
  triggersId?: EventId | undefined;
3985
3992
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4001,9 +4008,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4001
4008
  traitId?: string | undefined;
4002
4009
  orbitalId?: string | undefined;
4003
4010
  } | undefined;
4011
+ eventId?: string | undefined;
4004
4012
  scope?: "internal" | "external" | undefined;
4005
4013
  tier?: string | undefined;
4006
- eventId?: string | undefined;
4007
4014
  guard?: SExpr | undefined;
4008
4015
  triggersId?: string | undefined;
4009
4016
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4042,9 +4049,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4042
4049
  traitId?: TraitId | undefined;
4043
4050
  orbitalId?: OrbitalId | undefined;
4044
4051
  } | undefined;
4052
+ eventId?: EventId | undefined;
4045
4053
  scope?: "internal" | "external" | undefined;
4046
4054
  tier?: string | undefined;
4047
- eventId?: EventId | undefined;
4048
4055
  guard?: SExpr | undefined;
4049
4056
  triggersId?: EventId | undefined;
4050
4057
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4082,9 +4089,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4082
4089
  traitId?: string | undefined;
4083
4090
  orbitalId?: string | undefined;
4084
4091
  } | undefined;
4092
+ eventId?: string | undefined;
4085
4093
  scope?: "internal" | "external" | undefined;
4086
4094
  tier?: string | undefined;
4087
- eventId?: string | undefined;
4088
4095
  guard?: SExpr | undefined;
4089
4096
  triggersId?: string | undefined;
4090
4097
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4122,9 +4129,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4122
4129
  traitId?: TraitId | undefined;
4123
4130
  orbitalId?: OrbitalId | undefined;
4124
4131
  } | undefined;
4132
+ eventId?: EventId | undefined;
4125
4133
  scope?: "internal" | "external" | undefined;
4126
4134
  tier?: string | undefined;
4127
- eventId?: EventId | undefined;
4128
4135
  guard?: SExpr | undefined;
4129
4136
  triggersId?: EventId | undefined;
4130
4137
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4162,9 +4169,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4162
4169
  traitId?: string | undefined;
4163
4170
  orbitalId?: string | undefined;
4164
4171
  } | undefined;
4172
+ eventId?: string | undefined;
4165
4173
  scope?: "internal" | "external" | undefined;
4166
4174
  tier?: string | undefined;
4167
- eventId?: string | undefined;
4168
4175
  guard?: SExpr | undefined;
4169
4176
  triggersId?: string | undefined;
4170
4177
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4421,8 +4428,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4421
4428
  interval: string | number;
4422
4429
  description?: string | undefined;
4423
4430
  pages?: string[] | undefined;
4424
- guard?: SExpr | undefined;
4425
4431
  priority?: number | undefined;
4432
+ guard?: SExpr | undefined;
4426
4433
  appliesTo?: string[] | undefined;
4427
4434
  pageIds?: PageId[] | undefined;
4428
4435
  emits?: string[] | undefined;
@@ -4433,8 +4440,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4433
4440
  interval: string | number;
4434
4441
  description?: string | undefined;
4435
4442
  pages?: string[] | undefined;
4436
- guard?: SExpr | undefined;
4437
4443
  priority?: number | undefined;
4444
+ guard?: SExpr | undefined;
4438
4445
  appliesTo?: string[] | undefined;
4439
4446
  pageIds?: string[] | undefined;
4440
4447
  emits?: string[] | undefined;
@@ -4461,18 +4468,18 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4461
4468
  event: string;
4462
4469
  description?: string | undefined;
4463
4470
  synonyms?: string | undefined;
4471
+ eventId?: EventId | undefined;
4464
4472
  scope?: "internal" | "external" | undefined;
4465
4473
  tier?: string | undefined;
4466
4474
  payloadSchema?: EventPayloadField[] | undefined;
4467
- eventId?: EventId | undefined;
4468
4475
  }, {
4469
4476
  event: string;
4470
4477
  description?: string | undefined;
4471
4478
  synonyms?: string | undefined;
4479
+ eventId?: string | undefined;
4472
4480
  scope?: "internal" | "external" | undefined;
4473
4481
  tier?: string | undefined;
4474
4482
  payloadSchema?: EventPayloadField[] | undefined;
4475
- eventId?: string | undefined;
4476
4483
  }>, "many">>;
4477
4484
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
4478
4485
  event: z.ZodString;
@@ -4540,9 +4547,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4540
4547
  traitId?: TraitId | undefined;
4541
4548
  orbitalId?: OrbitalId | undefined;
4542
4549
  } | undefined;
4550
+ eventId?: EventId | undefined;
4543
4551
  scope?: "internal" | "external" | undefined;
4544
4552
  tier?: string | undefined;
4545
- eventId?: EventId | undefined;
4546
4553
  guard?: SExpr | undefined;
4547
4554
  triggersId?: EventId | undefined;
4548
4555
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4564,9 +4571,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4564
4571
  traitId?: string | undefined;
4565
4572
  orbitalId?: string | undefined;
4566
4573
  } | undefined;
4574
+ eventId?: string | undefined;
4567
4575
  scope?: "internal" | "external" | undefined;
4568
4576
  tier?: string | undefined;
4569
- eventId?: string | undefined;
4570
4577
  guard?: SExpr | undefined;
4571
4578
  triggersId?: string | undefined;
4572
4579
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4835,10 +4842,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4835
4842
  event: string;
4836
4843
  description?: string | undefined;
4837
4844
  synonyms?: string | undefined;
4845
+ eventId?: EventId | undefined;
4838
4846
  scope?: "internal" | "external" | undefined;
4839
4847
  tier?: string | undefined;
4840
4848
  payloadSchema?: EventPayloadField[] | undefined;
4841
- eventId?: EventId | undefined;
4842
4849
  }[] | undefined;
4843
4850
  linkedEntity?: string | undefined;
4844
4851
  linkedEntityId?: EntityId | undefined;
@@ -4860,9 +4867,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4860
4867
  traitId?: TraitId | undefined;
4861
4868
  orbitalId?: OrbitalId | undefined;
4862
4869
  } | undefined;
4870
+ eventId?: EventId | undefined;
4863
4871
  scope?: "internal" | "external" | undefined;
4864
4872
  tier?: string | undefined;
4865
- eventId?: EventId | undefined;
4866
4873
  guard?: SExpr | undefined;
4867
4874
  triggersId?: EventId | undefined;
4868
4875
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -4889,8 +4896,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4889
4896
  interval: string | number;
4890
4897
  description?: string | undefined;
4891
4898
  pages?: string[] | undefined;
4892
- guard?: SExpr | undefined;
4893
4899
  priority?: number | undefined;
4900
+ guard?: SExpr | undefined;
4894
4901
  appliesTo?: string[] | undefined;
4895
4902
  pageIds?: PageId[] | undefined;
4896
4903
  emits?: string[] | undefined;
@@ -5005,10 +5012,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5005
5012
  event: string;
5006
5013
  description?: string | undefined;
5007
5014
  synonyms?: string | undefined;
5015
+ eventId?: string | undefined;
5008
5016
  scope?: "internal" | "external" | undefined;
5009
5017
  tier?: string | undefined;
5010
5018
  payloadSchema?: EventPayloadField[] | undefined;
5011
- eventId?: string | undefined;
5012
5019
  }[] | undefined;
5013
5020
  linkedEntity?: string | undefined;
5014
5021
  linkedEntityId?: string | undefined;
@@ -5030,9 +5037,9 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5030
5037
  traitId?: string | undefined;
5031
5038
  orbitalId?: string | undefined;
5032
5039
  } | undefined;
5040
+ eventId?: string | undefined;
5033
5041
  scope?: "internal" | "external" | undefined;
5034
5042
  tier?: string | undefined;
5035
- eventId?: string | undefined;
5036
5043
  guard?: SExpr | undefined;
5037
5044
  triggersId?: string | undefined;
5038
5045
  payloadMapping?: Record<string, SExpr> | undefined;
@@ -5059,8 +5066,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5059
5066
  interval: string | number;
5060
5067
  description?: string | undefined;
5061
5068
  pages?: string[] | undefined;
5062
- guard?: SExpr | undefined;
5063
5069
  priority?: number | undefined;
5070
+ guard?: SExpr | undefined;
5064
5071
  appliesTo?: string[] | undefined;
5065
5072
  pageIds?: string[] | undefined;
5066
5073
  emits?: string[] | undefined;
@@ -5105,4 +5112,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5105
5112
  } | undefined;
5106
5113
  }>]>;
5107
5114
 
5108
- export { TraitConfigValueSchema as $, OrbitalTraitRefSchema as A, PayloadFieldSchema as B, type ConfigFieldDeclaration as C, type DeclaredTraitConfig as D, type EventPayloadField as E, type PresentationType as F, type Guard as G, type ReferenceConfigType as H, type RequiredField as I, RequiredFieldSchema as J, SECRET_CONFIG_TYPES as K, type ListenSource as L, type SecretConfigType as M, type StateInput as N, type OrbitalTraitRef as O, type PayloadField as P, type StateMachine as Q, REFERENCE_CONFIG_TYPES as R, type State as S, type TraitEventListener as T, type StateMachineInput as U, StateMachineSchema as V, StateSchema as W, TickIntervalSchema as X, type TraitCategory as Y, TraitCategorySchema as Z, TraitConfigSchema as _, type TraitReference as a, type TraitDataEntity as a0, TraitDataEntitySchema as a1, TraitEntityFieldSchema as a2, TraitEventContractSchema as a3, TraitEventListenerSchema as a4, type TraitInput as a5, TraitRefSchema as a6, type TraitReferenceInput as a7, TraitReferenceSchema as a8, TraitSchema as a9, type TraitTick as aa, TraitTickSchema as ab, type TraitUIBinding as ac, TraitUIBindingSchema as ad, type Transition as ae, type TransitionInput as af, TransitionSchema as ag, configRefEventKnob as ah, getTraitConfig as ai, getTraitName as aj, isCallSiteConfigDeclaration as ak, isCircuitEvent as al, isInlineTrait as am, isReferenceConfigType as an, isSecretConfigType as ao, normalizeCallSiteConfigToValues as ap, normalizeTraitRef as aq, resolveConfigRefEventName as ar, type TraitScope as as, type TraitConfig as b, type TraitConfigObject as c, type TraitRef as d, type TraitConfigValue as e, type TraitEntityField as f, type Trait as g, type CallSiteConfig as h, type CallSiteConfigEntry as i, type TraitEventContract as j, CONFIG_REF_EVENT_PATTERN as k, ConfigFieldDeclarationSchema as l, type ConfigFieldItemsDeclaration as m, type ConfigRefEventError as n, DeclaredTraitConfigSchema as o, type EntityFieldContract as p, EntityFieldContractSchema as q, type Event as r, type EventInput as s, EventPayloadFieldSchema as t, EventSchema as u, type EventScope as v, EventScopeSchema as w, type GuardInput as x, GuardSchema as y, ListenSourceSchema as z };
5115
+ export { TraitConfigValueSchema as $, OrbitalTraitRefSchema as A, PayloadFieldSchema as B, type ConfigFieldDeclaration as C, type DeclaredTraitConfig as D, type EventPayloadField as E, type PresentationType as F, type Guard as G, type ReferenceConfigType as H, type RequiredField as I, RequiredFieldSchema as J, SECRET_CONFIG_TYPES as K, type ListenSource as L, type SecretConfigType as M, type StateInput as N, type OrbitalTraitRef as O, type PayloadField as P, type StateMachine as Q, REFERENCE_CONFIG_TYPES as R, type State as S, type TraitEventListener as T, type StateMachineInput as U, StateMachineSchema as V, StateSchema as W, TickIntervalSchema as X, type TraitCategory as Y, TraitCategorySchema as Z, TraitConfigSchema as _, type TraitReference as a, type TraitDataEntity as a0, TraitDataEntitySchema as a1, TraitEntityFieldSchema as a2, TraitEventContractSchema as a3, TraitEventListenerSchema as a4, type TraitInput as a5, TraitRefSchema as a6, type TraitReferenceInput as a7, TraitReferenceSchema as a8, TraitSchema as a9, type TraitTick as aa, TraitTickSchema as ab, type TraitUIBinding as ac, TraitUIBindingSchema as ad, type Transition as ae, type TransitionInput as af, TransitionSchema as ag, configRefEventKnob as ah, getTraitConfig as ai, getTraitName as aj, isCallSiteConfigDeclaration as ak, isCircuitEvent as al, isInlineTrait as am, isReferenceConfigType as an, isSecretConfigType as ao, maskSecretConfigValues as ap, normalizeCallSiteConfigToValues as aq, normalizeTraitRef as ar, resolveConfigRefEventName as as, type TraitScope as at, type TraitConfig as b, type TraitConfigObject as c, type TraitRef as d, type TraitConfigValue as e, type TraitEntityField as f, type Trait as g, type CallSiteConfig as h, type CallSiteConfigEntry as i, type TraitEventContract as j, CONFIG_REF_EVENT_PATTERN as k, ConfigFieldDeclarationSchema as l, type ConfigFieldItemsDeclaration as m, type ConfigRefEventError as n, DeclaredTraitConfigSchema as o, type EntityFieldContract as p, EntityFieldContractSchema as q, type Event as r, type EventInput as s, EventPayloadFieldSchema as t, EventSchema as u, type EventScope as v, EventScopeSchema as w, type GuardInput as x, GuardSchema as y, ListenSourceSchema as z };