@almadar/core 10.76.0 → 10.78.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-wTKhHDhB.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-CW3s399G.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
 
@@ -33,16 +33,16 @@ declare const StateSchema: z.ZodObject<{
33
33
  name: string;
34
34
  description?: string | undefined;
35
35
  isInitial?: boolean | undefined;
36
- isTerminal?: boolean | undefined;
37
36
  isFinal?: boolean | undefined;
37
+ isTerminal?: boolean | undefined;
38
38
  onEntry?: string[] | undefined;
39
39
  onExit?: string[] | undefined;
40
40
  }, {
41
41
  name: string;
42
42
  description?: string | undefined;
43
43
  isInitial?: boolean | undefined;
44
- isTerminal?: boolean | undefined;
45
44
  isFinal?: boolean | undefined;
45
+ isTerminal?: boolean | undefined;
46
46
  onEntry?: string[] | undefined;
47
47
  onExit?: string[] | undefined;
48
48
  }>;
@@ -194,17 +194,17 @@ declare const TransitionSchema: z.ZodObject<{
194
194
  from: string;
195
195
  to: string;
196
196
  description?: string | null | undefined;
197
- eventId?: EventId | undefined;
198
197
  guard?: SExpr | undefined;
199
198
  effects?: SExpr[][] | undefined;
199
+ eventId?: EventId | undefined;
200
200
  }, {
201
201
  event: string;
202
202
  from: string;
203
203
  to: string;
204
204
  description?: string | null | undefined;
205
- eventId?: string | undefined;
206
205
  guard?: SExpr | undefined;
207
206
  effects?: SExpr[][] | undefined;
207
+ eventId?: string | undefined;
208
208
  }>;
209
209
  /**
210
210
  * Complete state machine definition
@@ -232,16 +232,16 @@ declare const StateMachineSchema: z.ZodObject<{
232
232
  name: string;
233
233
  description?: string | undefined;
234
234
  isInitial?: boolean | undefined;
235
- isTerminal?: boolean | undefined;
236
235
  isFinal?: boolean | undefined;
236
+ isTerminal?: boolean | undefined;
237
237
  onEntry?: string[] | undefined;
238
238
  onExit?: string[] | undefined;
239
239
  }, {
240
240
  name: string;
241
241
  description?: string | undefined;
242
242
  isInitial?: boolean | undefined;
243
- isTerminal?: boolean | undefined;
244
243
  isFinal?: boolean | undefined;
244
+ isTerminal?: boolean | undefined;
245
245
  onEntry?: string[] | undefined;
246
246
  onExit?: string[] | undefined;
247
247
  }>, "many">;
@@ -289,17 +289,17 @@ declare const StateMachineSchema: z.ZodObject<{
289
289
  from: string;
290
290
  to: string;
291
291
  description?: string | null | undefined;
292
- eventId?: EventId | undefined;
293
292
  guard?: SExpr | undefined;
294
293
  effects?: SExpr[][] | undefined;
294
+ eventId?: EventId | undefined;
295
295
  }, {
296
296
  event: string;
297
297
  from: string;
298
298
  to: string;
299
299
  description?: string | null | undefined;
300
- eventId?: string | undefined;
301
300
  guard?: SExpr | undefined;
302
301
  effects?: SExpr[][] | undefined;
302
+ eventId?: string | undefined;
303
303
  }>, "many">;
304
304
  guards: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
305
  name: z.ZodString;
@@ -315,23 +315,12 @@ declare const StateMachineSchema: z.ZodObject<{
315
315
  description?: string | undefined;
316
316
  }>, "many">>;
317
317
  }, "strip", z.ZodTypeAny, {
318
- events: {
319
- name: string;
320
- key: string;
321
- id?: EventId | undefined;
322
- description?: string | undefined;
323
- synonyms?: string | undefined;
324
- tier?: string | undefined;
325
- payloadSchema?: PayloadField[] | undefined;
326
- classification?: "domain" | "system" | undefined;
327
- semanticRole?: string | undefined;
328
- }[];
329
318
  states: {
330
319
  name: string;
331
320
  description?: string | undefined;
332
321
  isInitial?: boolean | undefined;
333
- isTerminal?: boolean | undefined;
334
322
  isFinal?: boolean | undefined;
323
+ isTerminal?: boolean | undefined;
335
324
  onEntry?: string[] | undefined;
336
325
  onExit?: string[] | undefined;
337
326
  }[];
@@ -340,20 +329,14 @@ declare const StateMachineSchema: z.ZodObject<{
340
329
  from: string;
341
330
  to: string;
342
331
  description?: string | null | undefined;
343
- eventId?: EventId | undefined;
344
332
  guard?: SExpr | undefined;
345
333
  effects?: SExpr[][] | undefined;
334
+ eventId?: EventId | undefined;
346
335
  }[];
347
- guards?: {
348
- name: string;
349
- expression: SExpr;
350
- description?: string | undefined;
351
- }[] | undefined;
352
- }, {
353
336
  events: {
354
337
  name: string;
355
338
  key: string;
356
- id?: string | undefined;
339
+ id?: EventId | undefined;
357
340
  description?: string | undefined;
358
341
  synonyms?: string | undefined;
359
342
  tier?: string | undefined;
@@ -361,12 +344,18 @@ declare const StateMachineSchema: z.ZodObject<{
361
344
  classification?: "domain" | "system" | undefined;
362
345
  semanticRole?: string | undefined;
363
346
  }[];
347
+ guards?: {
348
+ name: string;
349
+ expression: SExpr;
350
+ description?: string | undefined;
351
+ }[] | undefined;
352
+ }, {
364
353
  states: {
365
354
  name: string;
366
355
  description?: string | undefined;
367
356
  isInitial?: boolean | undefined;
368
- isTerminal?: boolean | undefined;
369
357
  isFinal?: boolean | undefined;
358
+ isTerminal?: boolean | undefined;
370
359
  onEntry?: string[] | undefined;
371
360
  onExit?: string[] | undefined;
372
361
  }[];
@@ -375,9 +364,20 @@ declare const StateMachineSchema: z.ZodObject<{
375
364
  from: string;
376
365
  to: string;
377
366
  description?: string | null | undefined;
378
- eventId?: string | undefined;
379
367
  guard?: SExpr | undefined;
380
368
  effects?: SExpr[][] | undefined;
369
+ eventId?: string | undefined;
370
+ }[];
371
+ events: {
372
+ name: string;
373
+ key: string;
374
+ id?: string | undefined;
375
+ description?: string | undefined;
376
+ synonyms?: string | undefined;
377
+ tier?: string | undefined;
378
+ payloadSchema?: PayloadField[] | undefined;
379
+ classification?: "domain" | "system" | undefined;
380
+ semanticRole?: string | undefined;
381
381
  }[];
382
382
  guards?: {
383
383
  name: string;
@@ -568,7 +568,7 @@ declare const TraitCategorySchema: z.ZodEnum<["lifecycle", "temporal", "validati
568
568
  /**
569
569
  * Field types for trait data entities
570
570
  */
571
- type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'trait' | 'slot' | 'pattern' | 'node' | 'event';
571
+ type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'scalar' | 'union' | 'opaque';
572
572
  /**
573
573
  * Simplified field for trait data entities
574
574
  */
@@ -684,11 +684,11 @@ declare const TraitTickSchema: z.ZodObject<{
684
684
  interval: string | number;
685
685
  description?: string | undefined;
686
686
  pages?: string[] | undefined;
687
- priority?: number | undefined;
687
+ emits?: string[] | undefined;
688
688
  guard?: SExpr | undefined;
689
+ priority?: number | undefined;
689
690
  appliesTo?: string[] | undefined;
690
691
  pageIds?: PageId[] | undefined;
691
- emits?: string[] | undefined;
692
692
  emitIds?: EventId[] | undefined;
693
693
  }, {
694
694
  name: string;
@@ -696,11 +696,11 @@ declare const TraitTickSchema: z.ZodObject<{
696
696
  interval: string | number;
697
697
  description?: string | undefined;
698
698
  pages?: string[] | undefined;
699
- priority?: number | undefined;
699
+ emits?: string[] | undefined;
700
700
  guard?: SExpr | undefined;
701
+ priority?: number | undefined;
701
702
  appliesTo?: string[] | undefined;
702
703
  pageIds?: string[] | undefined;
703
- emits?: string[] | undefined;
704
704
  emitIds?: string[] | undefined;
705
705
  }>;
706
706
  /**
@@ -755,6 +755,18 @@ type TraitEventContract = {
755
755
  synonyms?: string;
756
756
  /** Authoring tier (`essential`/`customization`/`advanced`/`internal`). */
757
757
  tier?: string;
758
+ /**
759
+ * The config knob whose value DEFINES this event's name, when the emit was
760
+ * authored as `emits { @config.<knob> }`. Captured at L1, where the
761
+ * `@config.X` spelling still exists — after inlining, `event` holds the
762
+ * resolved literal and the fact that it came from a knob is otherwise
763
+ * unrecoverable.
764
+ *
765
+ * A definer knob CREATES an event name rather than referencing one, which
766
+ * is why consumers must not pin such a knob to the trait's existing event
767
+ * vocabulary: doing so forbids the very name it exists to introduce.
768
+ */
769
+ definerKnob?: string;
758
770
  /** Payload schema — declarative type info for the event's payload.
759
771
  * Distinct from the runtime payload value (`@payload.X` bindings,
760
772
  * `EventPayload`) which is a separate concept. */
@@ -809,6 +821,7 @@ declare const TraitEventContractSchema: z.ZodObject<{
809
821
  description: z.ZodOptional<z.ZodString>;
810
822
  synonyms: z.ZodOptional<z.ZodString>;
811
823
  tier: z.ZodOptional<z.ZodString>;
824
+ definerKnob: z.ZodOptional<z.ZodString>;
812
825
  payloadSchema: z.ZodOptional<z.ZodArray<z.ZodType<EventPayloadField, z.ZodTypeDef, EventPayloadField>, "many">>;
813
826
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
814
827
  }, "strip", z.ZodTypeAny, {
@@ -819,6 +832,7 @@ declare const TraitEventContractSchema: z.ZodObject<{
819
832
  scope?: "internal" | "external" | undefined;
820
833
  tier?: string | undefined;
821
834
  payloadSchema?: EventPayloadField[] | undefined;
835
+ definerKnob?: string | undefined;
822
836
  }, {
823
837
  event: string;
824
838
  description?: string | undefined;
@@ -827,6 +841,7 @@ declare const TraitEventContractSchema: z.ZodObject<{
827
841
  scope?: "internal" | "external" | undefined;
828
842
  tier?: string | undefined;
829
843
  payloadSchema?: EventPayloadField[] | undefined;
844
+ definerKnob?: string | undefined;
830
845
  }>;
831
846
  /**
832
847
  * Event listener for trait communication.
@@ -1001,10 +1016,10 @@ declare const TraitEventListenerSchema: z.ZodObject<{
1001
1016
  traitId?: TraitId | undefined;
1002
1017
  orbitalId?: OrbitalId | undefined;
1003
1018
  } | undefined;
1019
+ guard?: SExpr | undefined;
1004
1020
  eventId?: EventId | undefined;
1005
1021
  scope?: "internal" | "external" | undefined;
1006
1022
  tier?: string | undefined;
1007
- guard?: SExpr | undefined;
1008
1023
  triggersId?: EventId | undefined;
1009
1024
  payloadMapping?: Record<string, SExpr> | undefined;
1010
1025
  }, {
@@ -1025,10 +1040,10 @@ declare const TraitEventListenerSchema: z.ZodObject<{
1025
1040
  traitId?: string | undefined;
1026
1041
  orbitalId?: string | undefined;
1027
1042
  } | undefined;
1043
+ guard?: SExpr | undefined;
1028
1044
  eventId?: string | undefined;
1029
1045
  scope?: "internal" | "external" | undefined;
1030
1046
  tier?: string | undefined;
1031
- guard?: SExpr | undefined;
1032
1047
  triggersId?: string | undefined;
1033
1048
  payloadMapping?: Record<string, SExpr> | undefined;
1034
1049
  }>;
@@ -1230,10 +1245,10 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1230
1245
  traitId?: TraitId | undefined;
1231
1246
  orbitalId?: OrbitalId | undefined;
1232
1247
  } | undefined;
1248
+ guard?: SExpr | undefined;
1233
1249
  eventId?: EventId | undefined;
1234
1250
  scope?: "internal" | "external" | undefined;
1235
1251
  tier?: string | undefined;
1236
- guard?: SExpr | undefined;
1237
1252
  triggersId?: EventId | undefined;
1238
1253
  payloadMapping?: Record<string, SExpr> | undefined;
1239
1254
  }, {
@@ -1254,10 +1269,10 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1254
1269
  traitId?: string | undefined;
1255
1270
  orbitalId?: string | undefined;
1256
1271
  } | undefined;
1272
+ guard?: SExpr | undefined;
1257
1273
  eventId?: string | undefined;
1258
1274
  scope?: "internal" | "external" | undefined;
1259
1275
  tier?: string | undefined;
1260
- guard?: SExpr | undefined;
1261
1276
  triggersId?: string | undefined;
1262
1277
  payloadMapping?: Record<string, SExpr> | undefined;
1263
1278
  }>, "many">>;
@@ -1270,13 +1285,6 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1270
1285
  name?: string | undefined;
1271
1286
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1272
1287
  fields?: Record<string, string> | undefined;
1273
- events?: Record<string, string> | undefined;
1274
- effects?: Record<string, SExpr[]> | undefined;
1275
- refId?: TraitId | undefined;
1276
- appliesTo?: string[] | undefined;
1277
- linkedEntity?: string | undefined;
1278
- linkedEntityId?: EntityId | undefined;
1279
- eventIds?: Record<string, EventId> | undefined;
1280
1288
  listens?: {
1281
1289
  event: string;
1282
1290
  triggers: string;
@@ -1295,13 +1303,20 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1295
1303
  traitId?: TraitId | undefined;
1296
1304
  orbitalId?: OrbitalId | undefined;
1297
1305
  } | undefined;
1306
+ guard?: SExpr | undefined;
1298
1307
  eventId?: EventId | undefined;
1299
1308
  scope?: "internal" | "external" | undefined;
1300
1309
  tier?: string | undefined;
1301
- guard?: SExpr | undefined;
1302
1310
  triggersId?: EventId | undefined;
1303
1311
  payloadMapping?: Record<string, SExpr> | undefined;
1304
1312
  }[] | undefined;
1313
+ effects?: Record<string, SExpr[]> | undefined;
1314
+ linkedEntity?: string | undefined;
1315
+ events?: Record<string, string> | undefined;
1316
+ refId?: TraitId | undefined;
1317
+ appliesTo?: string[] | undefined;
1318
+ linkedEntityId?: EntityId | undefined;
1319
+ eventIds?: Record<string, EventId> | undefined;
1305
1320
  emitsScope?: "internal" | "external" | undefined;
1306
1321
  }, {
1307
1322
  ref: string;
@@ -1310,13 +1325,6 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1310
1325
  name?: string | undefined;
1311
1326
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1312
1327
  fields?: Record<string, string> | undefined;
1313
- events?: Record<string, string> | undefined;
1314
- effects?: Record<string, SExpr[]> | undefined;
1315
- refId?: string | undefined;
1316
- appliesTo?: string[] | undefined;
1317
- linkedEntity?: string | undefined;
1318
- linkedEntityId?: string | undefined;
1319
- eventIds?: Record<string, string> | undefined;
1320
1328
  listens?: {
1321
1329
  event: string;
1322
1330
  triggers: string;
@@ -1335,13 +1343,20 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1335
1343
  traitId?: string | undefined;
1336
1344
  orbitalId?: string | undefined;
1337
1345
  } | undefined;
1346
+ guard?: SExpr | undefined;
1338
1347
  eventId?: string | undefined;
1339
1348
  scope?: "internal" | "external" | undefined;
1340
1349
  tier?: string | undefined;
1341
- guard?: SExpr | undefined;
1342
1350
  triggersId?: string | undefined;
1343
1351
  payloadMapping?: Record<string, SExpr> | undefined;
1344
1352
  }[] | undefined;
1353
+ effects?: Record<string, SExpr[]> | undefined;
1354
+ linkedEntity?: string | undefined;
1355
+ events?: Record<string, string> | undefined;
1356
+ refId?: string | undefined;
1357
+ appliesTo?: string[] | undefined;
1358
+ linkedEntityId?: string | undefined;
1359
+ eventIds?: Record<string, string> | undefined;
1345
1360
  emitsScope?: "internal" | "external" | undefined;
1346
1361
  }>, {
1347
1362
  ref: string;
@@ -1350,13 +1365,6 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1350
1365
  name?: string | undefined;
1351
1366
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1352
1367
  fields?: Record<string, string> | undefined;
1353
- events?: Record<string, string> | undefined;
1354
- effects?: Record<string, SExpr[]> | undefined;
1355
- refId?: TraitId | undefined;
1356
- appliesTo?: string[] | undefined;
1357
- linkedEntity?: string | undefined;
1358
- linkedEntityId?: EntityId | undefined;
1359
- eventIds?: Record<string, EventId> | undefined;
1360
1368
  listens?: {
1361
1369
  event: string;
1362
1370
  triggers: string;
@@ -1375,13 +1383,20 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1375
1383
  traitId?: TraitId | undefined;
1376
1384
  orbitalId?: OrbitalId | undefined;
1377
1385
  } | undefined;
1386
+ guard?: SExpr | undefined;
1378
1387
  eventId?: EventId | undefined;
1379
1388
  scope?: "internal" | "external" | undefined;
1380
1389
  tier?: string | undefined;
1381
- guard?: SExpr | undefined;
1382
1390
  triggersId?: EventId | undefined;
1383
1391
  payloadMapping?: Record<string, SExpr> | undefined;
1384
1392
  }[] | undefined;
1393
+ effects?: Record<string, SExpr[]> | undefined;
1394
+ linkedEntity?: string | undefined;
1395
+ events?: Record<string, string> | undefined;
1396
+ refId?: TraitId | undefined;
1397
+ appliesTo?: string[] | undefined;
1398
+ linkedEntityId?: EntityId | undefined;
1399
+ eventIds?: Record<string, EventId> | undefined;
1385
1400
  emitsScope?: "internal" | "external" | undefined;
1386
1401
  }, {
1387
1402
  ref: string;
@@ -1390,13 +1405,6 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1390
1405
  name?: string | undefined;
1391
1406
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
1392
1407
  fields?: Record<string, string> | undefined;
1393
- events?: Record<string, string> | undefined;
1394
- effects?: Record<string, SExpr[]> | undefined;
1395
- refId?: string | undefined;
1396
- appliesTo?: string[] | undefined;
1397
- linkedEntity?: string | undefined;
1398
- linkedEntityId?: string | undefined;
1399
- eventIds?: Record<string, string> | undefined;
1400
1408
  listens?: {
1401
1409
  event: string;
1402
1410
  triggers: string;
@@ -1415,13 +1423,20 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
1415
1423
  traitId?: string | undefined;
1416
1424
  orbitalId?: string | undefined;
1417
1425
  } | undefined;
1426
+ guard?: SExpr | undefined;
1418
1427
  eventId?: string | undefined;
1419
1428
  scope?: "internal" | "external" | undefined;
1420
1429
  tier?: string | undefined;
1421
- guard?: SExpr | undefined;
1422
1430
  triggersId?: string | undefined;
1423
1431
  payloadMapping?: Record<string, SExpr> | undefined;
1424
1432
  }[] | undefined;
1433
+ effects?: Record<string, SExpr[]> | undefined;
1434
+ linkedEntity?: string | undefined;
1435
+ events?: Record<string, string> | undefined;
1436
+ refId?: string | undefined;
1437
+ appliesTo?: string[] | undefined;
1438
+ linkedEntityId?: string | undefined;
1439
+ eventIds?: Record<string, string> | undefined;
1425
1440
  emitsScope?: "internal" | "external" | undefined;
1426
1441
  }>;
1427
1442
  /**
@@ -1479,8 +1494,8 @@ declare const TraitUIBindingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1479
1494
  width?: string | undefined;
1480
1495
  title?: string | undefined;
1481
1496
  totalSteps?: number | undefined;
1482
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1483
1497
  step?: number | undefined;
1498
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1484
1499
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
1485
1500
  showProgress?: boolean | undefined;
1486
1501
  closable?: boolean | undefined;
@@ -1488,8 +1503,8 @@ declare const TraitUIBindingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1488
1503
  width?: string | undefined;
1489
1504
  title?: string | undefined;
1490
1505
  totalSteps?: number | undefined;
1491
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1492
1506
  step?: number | undefined;
1507
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1493
1508
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
1494
1509
  showProgress?: boolean | undefined;
1495
1510
  closable?: boolean | undefined;
@@ -1501,8 +1516,8 @@ declare const TraitUIBindingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1501
1516
  width?: string | undefined;
1502
1517
  title?: string | undefined;
1503
1518
  totalSteps?: number | undefined;
1504
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1505
1519
  step?: number | undefined;
1520
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1506
1521
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
1507
1522
  showProgress?: boolean | undefined;
1508
1523
  closable?: boolean | undefined;
@@ -1514,8 +1529,8 @@ declare const TraitUIBindingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1514
1529
  width?: string | undefined;
1515
1530
  title?: string | undefined;
1516
1531
  totalSteps?: number | undefined;
1517
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1518
1532
  step?: number | undefined;
1533
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
1519
1534
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
1520
1535
  showProgress?: boolean | undefined;
1521
1536
  closable?: boolean | undefined;
@@ -1775,16 +1790,16 @@ declare const TraitSchema: z.ZodObject<{
1775
1790
  name: string;
1776
1791
  description?: string | undefined;
1777
1792
  isInitial?: boolean | undefined;
1778
- isTerminal?: boolean | undefined;
1779
1793
  isFinal?: boolean | undefined;
1794
+ isTerminal?: boolean | undefined;
1780
1795
  onEntry?: string[] | undefined;
1781
1796
  onExit?: string[] | undefined;
1782
1797
  }, {
1783
1798
  name: string;
1784
1799
  description?: string | undefined;
1785
1800
  isInitial?: boolean | undefined;
1786
- isTerminal?: boolean | undefined;
1787
1801
  isFinal?: boolean | undefined;
1802
+ isTerminal?: boolean | undefined;
1788
1803
  onEntry?: string[] | undefined;
1789
1804
  onExit?: string[] | undefined;
1790
1805
  }>, "many">;
@@ -1832,17 +1847,17 @@ declare const TraitSchema: z.ZodObject<{
1832
1847
  from: string;
1833
1848
  to: string;
1834
1849
  description?: string | null | undefined;
1835
- eventId?: EventId | undefined;
1836
1850
  guard?: SExpr | undefined;
1837
1851
  effects?: SExpr[][] | undefined;
1852
+ eventId?: EventId | undefined;
1838
1853
  }, {
1839
1854
  event: string;
1840
1855
  from: string;
1841
1856
  to: string;
1842
1857
  description?: string | null | undefined;
1843
- eventId?: string | undefined;
1844
1858
  guard?: SExpr | undefined;
1845
1859
  effects?: SExpr[][] | undefined;
1860
+ eventId?: string | undefined;
1846
1861
  }>, "many">;
1847
1862
  guards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
1863
  name: z.ZodString;
@@ -1858,23 +1873,12 @@ declare const TraitSchema: z.ZodObject<{
1858
1873
  description?: string | undefined;
1859
1874
  }>, "many">>;
1860
1875
  }, "strip", z.ZodTypeAny, {
1861
- events: {
1862
- name: string;
1863
- key: string;
1864
- id?: EventId | undefined;
1865
- description?: string | undefined;
1866
- synonyms?: string | undefined;
1867
- tier?: string | undefined;
1868
- payloadSchema?: PayloadField[] | undefined;
1869
- classification?: "domain" | "system" | undefined;
1870
- semanticRole?: string | undefined;
1871
- }[];
1872
1876
  states: {
1873
1877
  name: string;
1874
1878
  description?: string | undefined;
1875
1879
  isInitial?: boolean | undefined;
1876
- isTerminal?: boolean | undefined;
1877
1880
  isFinal?: boolean | undefined;
1881
+ isTerminal?: boolean | undefined;
1878
1882
  onEntry?: string[] | undefined;
1879
1883
  onExit?: string[] | undefined;
1880
1884
  }[];
@@ -1883,20 +1887,14 @@ declare const TraitSchema: z.ZodObject<{
1883
1887
  from: string;
1884
1888
  to: string;
1885
1889
  description?: string | null | undefined;
1886
- eventId?: EventId | undefined;
1887
1890
  guard?: SExpr | undefined;
1888
1891
  effects?: SExpr[][] | undefined;
1892
+ eventId?: EventId | undefined;
1889
1893
  }[];
1890
- guards?: {
1891
- name: string;
1892
- expression: SExpr;
1893
- description?: string | undefined;
1894
- }[] | undefined;
1895
- }, {
1896
1894
  events: {
1897
1895
  name: string;
1898
1896
  key: string;
1899
- id?: string | undefined;
1897
+ id?: EventId | undefined;
1900
1898
  description?: string | undefined;
1901
1899
  synonyms?: string | undefined;
1902
1900
  tier?: string | undefined;
@@ -1904,12 +1902,18 @@ declare const TraitSchema: z.ZodObject<{
1904
1902
  classification?: "domain" | "system" | undefined;
1905
1903
  semanticRole?: string | undefined;
1906
1904
  }[];
1905
+ guards?: {
1906
+ name: string;
1907
+ expression: SExpr;
1908
+ description?: string | undefined;
1909
+ }[] | undefined;
1910
+ }, {
1907
1911
  states: {
1908
1912
  name: string;
1909
1913
  description?: string | undefined;
1910
1914
  isInitial?: boolean | undefined;
1911
- isTerminal?: boolean | undefined;
1912
1915
  isFinal?: boolean | undefined;
1916
+ isTerminal?: boolean | undefined;
1913
1917
  onEntry?: string[] | undefined;
1914
1918
  onExit?: string[] | undefined;
1915
1919
  }[];
@@ -1918,9 +1922,20 @@ declare const TraitSchema: z.ZodObject<{
1918
1922
  from: string;
1919
1923
  to: string;
1920
1924
  description?: string | null | undefined;
1921
- eventId?: string | undefined;
1922
1925
  guard?: SExpr | undefined;
1923
1926
  effects?: SExpr[][] | undefined;
1927
+ eventId?: string | undefined;
1928
+ }[];
1929
+ events: {
1930
+ name: string;
1931
+ key: string;
1932
+ id?: string | undefined;
1933
+ description?: string | undefined;
1934
+ synonyms?: string | undefined;
1935
+ tier?: string | undefined;
1936
+ payloadSchema?: PayloadField[] | undefined;
1937
+ classification?: "domain" | "system" | undefined;
1938
+ semanticRole?: string | undefined;
1924
1939
  }[];
1925
1940
  guards?: {
1926
1941
  name: string;
@@ -1947,11 +1962,11 @@ declare const TraitSchema: z.ZodObject<{
1947
1962
  interval: string | number;
1948
1963
  description?: string | undefined;
1949
1964
  pages?: string[] | undefined;
1950
- priority?: number | undefined;
1965
+ emits?: string[] | undefined;
1951
1966
  guard?: SExpr | undefined;
1967
+ priority?: number | undefined;
1952
1968
  appliesTo?: string[] | undefined;
1953
1969
  pageIds?: PageId[] | undefined;
1954
- emits?: string[] | undefined;
1955
1970
  emitIds?: EventId[] | undefined;
1956
1971
  }, {
1957
1972
  name: string;
@@ -1959,11 +1974,11 @@ declare const TraitSchema: z.ZodObject<{
1959
1974
  interval: string | number;
1960
1975
  description?: string | undefined;
1961
1976
  pages?: string[] | undefined;
1962
- priority?: number | undefined;
1977
+ emits?: string[] | undefined;
1963
1978
  guard?: SExpr | undefined;
1979
+ priority?: number | undefined;
1964
1980
  appliesTo?: string[] | undefined;
1965
1981
  pageIds?: string[] | undefined;
1966
- emits?: string[] | undefined;
1967
1982
  emitIds?: string[] | undefined;
1968
1983
  }>, "many">>;
1969
1984
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1981,6 +1996,7 @@ declare const TraitSchema: z.ZodObject<{
1981
1996
  description: z.ZodOptional<z.ZodString>;
1982
1997
  synonyms: z.ZodOptional<z.ZodString>;
1983
1998
  tier: z.ZodOptional<z.ZodString>;
1999
+ definerKnob: z.ZodOptional<z.ZodString>;
1984
2000
  payloadSchema: z.ZodOptional<z.ZodArray<z.ZodType<EventPayloadField, z.ZodTypeDef, EventPayloadField>, "many">>;
1985
2001
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
1986
2002
  }, "strip", z.ZodTypeAny, {
@@ -1991,6 +2007,7 @@ declare const TraitSchema: z.ZodObject<{
1991
2007
  scope?: "internal" | "external" | undefined;
1992
2008
  tier?: string | undefined;
1993
2009
  payloadSchema?: EventPayloadField[] | undefined;
2010
+ definerKnob?: string | undefined;
1994
2011
  }, {
1995
2012
  event: string;
1996
2013
  description?: string | undefined;
@@ -1999,6 +2016,7 @@ declare const TraitSchema: z.ZodObject<{
1999
2016
  scope?: "internal" | "external" | undefined;
2000
2017
  tier?: string | undefined;
2001
2018
  payloadSchema?: EventPayloadField[] | undefined;
2019
+ definerKnob?: string | undefined;
2002
2020
  }>, "many">>;
2003
2021
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
2004
2022
  event: z.ZodString;
@@ -2066,10 +2084,10 @@ declare const TraitSchema: z.ZodObject<{
2066
2084
  traitId?: TraitId | undefined;
2067
2085
  orbitalId?: OrbitalId | undefined;
2068
2086
  } | undefined;
2087
+ guard?: SExpr | undefined;
2069
2088
  eventId?: EventId | undefined;
2070
2089
  scope?: "internal" | "external" | undefined;
2071
2090
  tier?: string | undefined;
2072
- guard?: SExpr | undefined;
2073
2091
  triggersId?: EventId | undefined;
2074
2092
  payloadMapping?: Record<string, SExpr> | undefined;
2075
2093
  }, {
@@ -2090,10 +2108,10 @@ declare const TraitSchema: z.ZodObject<{
2090
2108
  traitId?: string | undefined;
2091
2109
  orbitalId?: string | undefined;
2092
2110
  } | undefined;
2111
+ guard?: SExpr | undefined;
2093
2112
  eventId?: string | undefined;
2094
2113
  scope?: "internal" | "external" | undefined;
2095
2114
  tier?: string | undefined;
2096
- guard?: SExpr | undefined;
2097
2115
  triggersId?: string | undefined;
2098
2116
  payloadMapping?: Record<string, SExpr> | undefined;
2099
2117
  }>, "many">>;
@@ -2113,8 +2131,8 @@ declare const TraitSchema: z.ZodObject<{
2113
2131
  width?: string | undefined;
2114
2132
  title?: string | undefined;
2115
2133
  totalSteps?: number | undefined;
2116
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2117
2134
  step?: number | undefined;
2135
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2118
2136
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2119
2137
  showProgress?: boolean | undefined;
2120
2138
  closable?: boolean | undefined;
@@ -2122,8 +2140,8 @@ declare const TraitSchema: z.ZodObject<{
2122
2140
  width?: string | undefined;
2123
2141
  title?: string | undefined;
2124
2142
  totalSteps?: number | undefined;
2125
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2126
2143
  step?: number | undefined;
2144
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2127
2145
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2128
2146
  showProgress?: boolean | undefined;
2129
2147
  closable?: boolean | undefined;
@@ -2135,8 +2153,8 @@ declare const TraitSchema: z.ZodObject<{
2135
2153
  width?: string | undefined;
2136
2154
  title?: string | undefined;
2137
2155
  totalSteps?: number | undefined;
2138
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2139
2156
  step?: number | undefined;
2157
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2140
2158
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2141
2159
  showProgress?: boolean | undefined;
2142
2160
  closable?: boolean | undefined;
@@ -2148,8 +2166,8 @@ declare const TraitSchema: z.ZodObject<{
2148
2166
  width?: string | undefined;
2149
2167
  title?: string | undefined;
2150
2168
  totalSteps?: number | undefined;
2151
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2152
2169
  step?: number | undefined;
2170
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2153
2171
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2154
2172
  showProgress?: boolean | undefined;
2155
2173
  closable?: boolean | undefined;
@@ -2301,8 +2319,8 @@ declare const TraitSchema: z.ZodObject<{
2301
2319
  width?: string | undefined;
2302
2320
  title?: string | undefined;
2303
2321
  totalSteps?: number | undefined;
2304
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2305
2322
  step?: number | undefined;
2323
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2306
2324
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2307
2325
  showProgress?: boolean | undefined;
2308
2326
  closable?: boolean | undefined;
@@ -2310,64 +2328,16 @@ declare const TraitSchema: z.ZodObject<{
2310
2328
  }> | undefined;
2311
2329
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
2312
2330
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
2313
- capabilities?: string[] | undefined;
2314
- dataEntities?: {
2315
- name: string;
2316
- fields: TraitEntityField[];
2331
+ emits?: {
2332
+ event: string;
2317
2333
  description?: string | undefined;
2318
- pages?: string[] | undefined;
2319
- runtime?: boolean | undefined;
2320
- collection?: string | undefined;
2321
- timestamps?: boolean | undefined;
2322
- singleton?: boolean | undefined;
2334
+ synonyms?: string | undefined;
2335
+ eventId?: EventId | undefined;
2336
+ scope?: "internal" | "external" | undefined;
2337
+ tier?: string | undefined;
2338
+ payloadSchema?: EventPayloadField[] | undefined;
2339
+ definerKnob?: string | undefined;
2323
2340
  }[] | undefined;
2324
- stateMachine?: {
2325
- events: {
2326
- name: string;
2327
- key: string;
2328
- id?: EventId | undefined;
2329
- description?: string | undefined;
2330
- synonyms?: string | undefined;
2331
- tier?: string | undefined;
2332
- payloadSchema?: PayloadField[] | undefined;
2333
- classification?: "domain" | "system" | undefined;
2334
- semanticRole?: string | undefined;
2335
- }[];
2336
- states: {
2337
- name: string;
2338
- description?: string | undefined;
2339
- isInitial?: boolean | undefined;
2340
- isTerminal?: boolean | undefined;
2341
- isFinal?: boolean | undefined;
2342
- onEntry?: string[] | undefined;
2343
- onExit?: string[] | undefined;
2344
- }[];
2345
- transitions: {
2346
- event: string;
2347
- from: string;
2348
- to: string;
2349
- description?: string | null | undefined;
2350
- eventId?: EventId | undefined;
2351
- guard?: SExpr | undefined;
2352
- effects?: SExpr[][] | undefined;
2353
- }[];
2354
- guards?: {
2355
- name: string;
2356
- expression: SExpr;
2357
- description?: string | undefined;
2358
- }[] | undefined;
2359
- } | undefined;
2360
- emits?: {
2361
- event: string;
2362
- description?: string | undefined;
2363
- synonyms?: string | undefined;
2364
- eventId?: EventId | undefined;
2365
- scope?: "internal" | "external" | undefined;
2366
- tier?: string | undefined;
2367
- payloadSchema?: EventPayloadField[] | undefined;
2368
- }[] | undefined;
2369
- linkedEntity?: string | undefined;
2370
- linkedEntityId?: EntityId | undefined;
2371
2341
  listens?: {
2372
2342
  event: string;
2373
2343
  triggers: string;
@@ -2386,13 +2356,62 @@ declare const TraitSchema: z.ZodObject<{
2386
2356
  traitId?: TraitId | undefined;
2387
2357
  orbitalId?: OrbitalId | undefined;
2388
2358
  } | undefined;
2359
+ guard?: SExpr | undefined;
2389
2360
  eventId?: EventId | undefined;
2390
2361
  scope?: "internal" | "external" | undefined;
2391
2362
  tier?: string | undefined;
2392
- guard?: SExpr | undefined;
2393
2363
  triggersId?: EventId | undefined;
2394
2364
  payloadMapping?: Record<string, SExpr> | undefined;
2395
2365
  }[] | undefined;
2366
+ linkedEntity?: string | undefined;
2367
+ capabilities?: string[] | undefined;
2368
+ dataEntities?: {
2369
+ name: string;
2370
+ fields: TraitEntityField[];
2371
+ description?: string | undefined;
2372
+ pages?: string[] | undefined;
2373
+ runtime?: boolean | undefined;
2374
+ collection?: string | undefined;
2375
+ timestamps?: boolean | undefined;
2376
+ singleton?: boolean | undefined;
2377
+ }[] | undefined;
2378
+ stateMachine?: {
2379
+ states: {
2380
+ name: string;
2381
+ description?: string | undefined;
2382
+ isInitial?: boolean | undefined;
2383
+ isFinal?: boolean | undefined;
2384
+ isTerminal?: boolean | undefined;
2385
+ onEntry?: string[] | undefined;
2386
+ onExit?: string[] | undefined;
2387
+ }[];
2388
+ transitions: {
2389
+ event: string;
2390
+ from: string;
2391
+ to: string;
2392
+ description?: string | null | undefined;
2393
+ guard?: SExpr | undefined;
2394
+ effects?: SExpr[][] | undefined;
2395
+ eventId?: EventId | undefined;
2396
+ }[];
2397
+ events: {
2398
+ name: string;
2399
+ key: string;
2400
+ id?: EventId | undefined;
2401
+ description?: string | undefined;
2402
+ synonyms?: string | undefined;
2403
+ tier?: string | undefined;
2404
+ payloadSchema?: PayloadField[] | undefined;
2405
+ classification?: "domain" | "system" | undefined;
2406
+ semanticRole?: string | undefined;
2407
+ }[];
2408
+ guards?: {
2409
+ name: string;
2410
+ expression: SExpr;
2411
+ description?: string | undefined;
2412
+ }[] | undefined;
2413
+ } | undefined;
2414
+ linkedEntityId?: EntityId | undefined;
2396
2415
  description_visual_prompt?: string | undefined;
2397
2416
  entityRebindable?: boolean | undefined;
2398
2417
  entityContract?: {
@@ -2415,11 +2434,11 @@ declare const TraitSchema: z.ZodObject<{
2415
2434
  interval: string | number;
2416
2435
  description?: string | undefined;
2417
2436
  pages?: string[] | undefined;
2418
- priority?: number | undefined;
2437
+ emits?: string[] | undefined;
2419
2438
  guard?: SExpr | undefined;
2439
+ priority?: number | undefined;
2420
2440
  appliesTo?: string[] | undefined;
2421
2441
  pageIds?: PageId[] | undefined;
2422
- emits?: string[] | undefined;
2423
2442
  emitIds?: EventId[] | undefined;
2424
2443
  }[] | undefined;
2425
2444
  sourceBehavior?: {
@@ -2471,8 +2490,8 @@ declare const TraitSchema: z.ZodObject<{
2471
2490
  width?: string | undefined;
2472
2491
  title?: string | undefined;
2473
2492
  totalSteps?: number | undefined;
2474
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2475
2493
  step?: number | undefined;
2494
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
2476
2495
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
2477
2496
  showProgress?: boolean | undefined;
2478
2497
  closable?: boolean | undefined;
@@ -2480,6 +2499,42 @@ declare const TraitSchema: z.ZodObject<{
2480
2499
  }> | undefined;
2481
2500
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
2482
2501
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
2502
+ emits?: {
2503
+ event: string;
2504
+ description?: string | undefined;
2505
+ synonyms?: string | undefined;
2506
+ eventId?: string | undefined;
2507
+ scope?: "internal" | "external" | undefined;
2508
+ tier?: string | undefined;
2509
+ payloadSchema?: EventPayloadField[] | undefined;
2510
+ definerKnob?: string | undefined;
2511
+ }[] | undefined;
2512
+ listens?: {
2513
+ event: string;
2514
+ triggers: string;
2515
+ description?: string | undefined;
2516
+ synonyms?: string | undefined;
2517
+ source?: {
2518
+ kind: "any";
2519
+ } | {
2520
+ trait: string;
2521
+ kind: "trait";
2522
+ traitId?: string | undefined;
2523
+ } | {
2524
+ orbital: string;
2525
+ trait: string;
2526
+ kind: "orbital";
2527
+ traitId?: string | undefined;
2528
+ orbitalId?: string | undefined;
2529
+ } | undefined;
2530
+ guard?: SExpr | undefined;
2531
+ eventId?: string | undefined;
2532
+ scope?: "internal" | "external" | undefined;
2533
+ tier?: string | undefined;
2534
+ triggersId?: string | undefined;
2535
+ payloadMapping?: Record<string, SExpr> | undefined;
2536
+ }[] | undefined;
2537
+ linkedEntity?: string | undefined;
2483
2538
  capabilities?: string[] | undefined;
2484
2539
  dataEntities?: {
2485
2540
  name: string;
@@ -2492,23 +2547,12 @@ declare const TraitSchema: z.ZodObject<{
2492
2547
  singleton?: boolean | undefined;
2493
2548
  }[] | undefined;
2494
2549
  stateMachine?: {
2495
- events: {
2496
- name: string;
2497
- key: string;
2498
- id?: string | undefined;
2499
- description?: string | undefined;
2500
- synonyms?: string | undefined;
2501
- tier?: string | undefined;
2502
- payloadSchema?: PayloadField[] | undefined;
2503
- classification?: "domain" | "system" | undefined;
2504
- semanticRole?: string | undefined;
2505
- }[];
2506
2550
  states: {
2507
2551
  name: string;
2508
2552
  description?: string | undefined;
2509
2553
  isInitial?: boolean | undefined;
2510
- isTerminal?: boolean | undefined;
2511
2554
  isFinal?: boolean | undefined;
2555
+ isTerminal?: boolean | undefined;
2512
2556
  onEntry?: string[] | undefined;
2513
2557
  onExit?: string[] | undefined;
2514
2558
  }[];
@@ -2517,9 +2561,20 @@ declare const TraitSchema: z.ZodObject<{
2517
2561
  from: string;
2518
2562
  to: string;
2519
2563
  description?: string | null | undefined;
2520
- eventId?: string | undefined;
2521
2564
  guard?: SExpr | undefined;
2522
2565
  effects?: SExpr[][] | undefined;
2566
+ eventId?: string | undefined;
2567
+ }[];
2568
+ events: {
2569
+ name: string;
2570
+ key: string;
2571
+ id?: string | undefined;
2572
+ description?: string | undefined;
2573
+ synonyms?: string | undefined;
2574
+ tier?: string | undefined;
2575
+ payloadSchema?: PayloadField[] | undefined;
2576
+ classification?: "domain" | "system" | undefined;
2577
+ semanticRole?: string | undefined;
2523
2578
  }[];
2524
2579
  guards?: {
2525
2580
  name: string;
@@ -2527,42 +2582,7 @@ declare const TraitSchema: z.ZodObject<{
2527
2582
  description?: string | undefined;
2528
2583
  }[] | undefined;
2529
2584
  } | undefined;
2530
- emits?: {
2531
- event: string;
2532
- description?: string | undefined;
2533
- synonyms?: string | undefined;
2534
- eventId?: string | undefined;
2535
- scope?: "internal" | "external" | undefined;
2536
- tier?: string | undefined;
2537
- payloadSchema?: EventPayloadField[] | undefined;
2538
- }[] | undefined;
2539
- linkedEntity?: string | undefined;
2540
2585
  linkedEntityId?: string | undefined;
2541
- listens?: {
2542
- event: string;
2543
- triggers: string;
2544
- description?: string | undefined;
2545
- synonyms?: string | undefined;
2546
- source?: {
2547
- kind: "any";
2548
- } | {
2549
- trait: string;
2550
- kind: "trait";
2551
- traitId?: string | undefined;
2552
- } | {
2553
- orbital: string;
2554
- trait: string;
2555
- kind: "orbital";
2556
- traitId?: string | undefined;
2557
- orbitalId?: string | undefined;
2558
- } | undefined;
2559
- eventId?: string | undefined;
2560
- scope?: "internal" | "external" | undefined;
2561
- tier?: string | undefined;
2562
- guard?: SExpr | undefined;
2563
- triggersId?: string | undefined;
2564
- payloadMapping?: Record<string, SExpr> | undefined;
2565
- }[] | undefined;
2566
2586
  description_visual_prompt?: string | undefined;
2567
2587
  entityRebindable?: boolean | undefined;
2568
2588
  entityContract?: {
@@ -2585,11 +2605,11 @@ declare const TraitSchema: z.ZodObject<{
2585
2605
  interval: string | number;
2586
2606
  description?: string | undefined;
2587
2607
  pages?: string[] | undefined;
2588
- priority?: number | undefined;
2608
+ emits?: string[] | undefined;
2589
2609
  guard?: SExpr | undefined;
2610
+ priority?: number | undefined;
2590
2611
  appliesTo?: string[] | undefined;
2591
2612
  pageIds?: string[] | undefined;
2592
- emits?: string[] | undefined;
2593
2613
  emitIds?: string[] | undefined;
2594
2614
  }[] | undefined;
2595
2615
  sourceBehavior?: {
@@ -2709,10 +2729,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2709
2729
  traitId?: TraitId | undefined;
2710
2730
  orbitalId?: OrbitalId | undefined;
2711
2731
  } | undefined;
2732
+ guard?: SExpr | undefined;
2712
2733
  eventId?: EventId | undefined;
2713
2734
  scope?: "internal" | "external" | undefined;
2714
2735
  tier?: string | undefined;
2715
- guard?: SExpr | undefined;
2716
2736
  triggersId?: EventId | undefined;
2717
2737
  payloadMapping?: Record<string, SExpr> | undefined;
2718
2738
  }, {
@@ -2733,10 +2753,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2733
2753
  traitId?: string | undefined;
2734
2754
  orbitalId?: string | undefined;
2735
2755
  } | undefined;
2756
+ guard?: SExpr | undefined;
2736
2757
  eventId?: string | undefined;
2737
2758
  scope?: "internal" | "external" | undefined;
2738
2759
  tier?: string | undefined;
2739
- guard?: SExpr | undefined;
2740
2760
  triggersId?: string | undefined;
2741
2761
  payloadMapping?: Record<string, SExpr> | undefined;
2742
2762
  }>, "many">>;
@@ -2749,13 +2769,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2749
2769
  name?: string | undefined;
2750
2770
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2751
2771
  fields?: Record<string, string> | undefined;
2752
- events?: Record<string, string> | undefined;
2753
- effects?: Record<string, SExpr[]> | undefined;
2754
- refId?: TraitId | undefined;
2755
- appliesTo?: string[] | undefined;
2756
- linkedEntity?: string | undefined;
2757
- linkedEntityId?: EntityId | undefined;
2758
- eventIds?: Record<string, EventId> | undefined;
2759
2772
  listens?: {
2760
2773
  event: string;
2761
2774
  triggers: string;
@@ -2774,13 +2787,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2774
2787
  traitId?: TraitId | undefined;
2775
2788
  orbitalId?: OrbitalId | undefined;
2776
2789
  } | undefined;
2790
+ guard?: SExpr | undefined;
2777
2791
  eventId?: EventId | undefined;
2778
2792
  scope?: "internal" | "external" | undefined;
2779
2793
  tier?: string | undefined;
2780
- guard?: SExpr | undefined;
2781
2794
  triggersId?: EventId | undefined;
2782
2795
  payloadMapping?: Record<string, SExpr> | undefined;
2783
2796
  }[] | undefined;
2797
+ effects?: Record<string, SExpr[]> | undefined;
2798
+ linkedEntity?: string | undefined;
2799
+ events?: Record<string, string> | undefined;
2800
+ refId?: TraitId | undefined;
2801
+ appliesTo?: string[] | undefined;
2802
+ linkedEntityId?: EntityId | undefined;
2803
+ eventIds?: Record<string, EventId> | undefined;
2784
2804
  emitsScope?: "internal" | "external" | undefined;
2785
2805
  }, {
2786
2806
  ref: string;
@@ -2789,13 +2809,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2789
2809
  name?: string | undefined;
2790
2810
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2791
2811
  fields?: Record<string, string> | undefined;
2792
- events?: Record<string, string> | undefined;
2793
- effects?: Record<string, SExpr[]> | undefined;
2794
- refId?: string | undefined;
2795
- appliesTo?: string[] | undefined;
2796
- linkedEntity?: string | undefined;
2797
- linkedEntityId?: string | undefined;
2798
- eventIds?: Record<string, string> | undefined;
2799
2812
  listens?: {
2800
2813
  event: string;
2801
2814
  triggers: string;
@@ -2814,13 +2827,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2814
2827
  traitId?: string | undefined;
2815
2828
  orbitalId?: string | undefined;
2816
2829
  } | undefined;
2830
+ guard?: SExpr | undefined;
2817
2831
  eventId?: string | undefined;
2818
2832
  scope?: "internal" | "external" | undefined;
2819
2833
  tier?: string | undefined;
2820
- guard?: SExpr | undefined;
2821
2834
  triggersId?: string | undefined;
2822
2835
  payloadMapping?: Record<string, SExpr> | undefined;
2823
2836
  }[] | undefined;
2837
+ effects?: Record<string, SExpr[]> | undefined;
2838
+ linkedEntity?: string | undefined;
2839
+ events?: Record<string, string> | undefined;
2840
+ refId?: string | undefined;
2841
+ appliesTo?: string[] | undefined;
2842
+ linkedEntityId?: string | undefined;
2843
+ eventIds?: Record<string, string> | undefined;
2824
2844
  emitsScope?: "internal" | "external" | undefined;
2825
2845
  }>, {
2826
2846
  ref: string;
@@ -2829,13 +2849,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2829
2849
  name?: string | undefined;
2830
2850
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2831
2851
  fields?: Record<string, string> | undefined;
2832
- events?: Record<string, string> | undefined;
2833
- effects?: Record<string, SExpr[]> | undefined;
2834
- refId?: TraitId | undefined;
2835
- appliesTo?: string[] | undefined;
2836
- linkedEntity?: string | undefined;
2837
- linkedEntityId?: EntityId | undefined;
2838
- eventIds?: Record<string, EventId> | undefined;
2839
2852
  listens?: {
2840
2853
  event: string;
2841
2854
  triggers: string;
@@ -2854,13 +2867,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2854
2867
  traitId?: TraitId | undefined;
2855
2868
  orbitalId?: OrbitalId | undefined;
2856
2869
  } | undefined;
2870
+ guard?: SExpr | undefined;
2857
2871
  eventId?: EventId | undefined;
2858
2872
  scope?: "internal" | "external" | undefined;
2859
2873
  tier?: string | undefined;
2860
- guard?: SExpr | undefined;
2861
2874
  triggersId?: EventId | undefined;
2862
2875
  payloadMapping?: Record<string, SExpr> | undefined;
2863
2876
  }[] | undefined;
2877
+ effects?: Record<string, SExpr[]> | undefined;
2878
+ linkedEntity?: string | undefined;
2879
+ events?: Record<string, string> | undefined;
2880
+ refId?: TraitId | undefined;
2881
+ appliesTo?: string[] | undefined;
2882
+ linkedEntityId?: EntityId | undefined;
2883
+ eventIds?: Record<string, EventId> | undefined;
2864
2884
  emitsScope?: "internal" | "external" | undefined;
2865
2885
  }, {
2866
2886
  ref: string;
@@ -2869,13 +2889,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2869
2889
  name?: string | undefined;
2870
2890
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
2871
2891
  fields?: Record<string, string> | undefined;
2872
- events?: Record<string, string> | undefined;
2873
- effects?: Record<string, SExpr[]> | undefined;
2874
- refId?: string | undefined;
2875
- appliesTo?: string[] | undefined;
2876
- linkedEntity?: string | undefined;
2877
- linkedEntityId?: string | undefined;
2878
- eventIds?: Record<string, string> | undefined;
2879
2892
  listens?: {
2880
2893
  event: string;
2881
2894
  triggers: string;
@@ -2894,13 +2907,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2894
2907
  traitId?: string | undefined;
2895
2908
  orbitalId?: string | undefined;
2896
2909
  } | undefined;
2910
+ guard?: SExpr | undefined;
2897
2911
  eventId?: string | undefined;
2898
2912
  scope?: "internal" | "external" | undefined;
2899
2913
  tier?: string | undefined;
2900
- guard?: SExpr | undefined;
2901
2914
  triggersId?: string | undefined;
2902
2915
  payloadMapping?: Record<string, SExpr> | undefined;
2903
2916
  }[] | undefined;
2917
+ effects?: Record<string, SExpr[]> | undefined;
2918
+ linkedEntity?: string | undefined;
2919
+ events?: Record<string, string> | undefined;
2920
+ refId?: string | undefined;
2921
+ appliesTo?: string[] | undefined;
2922
+ linkedEntityId?: string | undefined;
2923
+ eventIds?: Record<string, string> | undefined;
2904
2924
  emitsScope?: "internal" | "external" | undefined;
2905
2925
  }>, z.ZodObject<{
2906
2926
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
@@ -2981,16 +3001,16 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
2981
3001
  name: string;
2982
3002
  description?: string | undefined;
2983
3003
  isInitial?: boolean | undefined;
2984
- isTerminal?: boolean | undefined;
2985
3004
  isFinal?: boolean | undefined;
3005
+ isTerminal?: boolean | undefined;
2986
3006
  onEntry?: string[] | undefined;
2987
3007
  onExit?: string[] | undefined;
2988
3008
  }, {
2989
3009
  name: string;
2990
3010
  description?: string | undefined;
2991
3011
  isInitial?: boolean | undefined;
2992
- isTerminal?: boolean | undefined;
2993
3012
  isFinal?: boolean | undefined;
3013
+ isTerminal?: boolean | undefined;
2994
3014
  onEntry?: string[] | undefined;
2995
3015
  onExit?: string[] | undefined;
2996
3016
  }>, "many">;
@@ -3038,17 +3058,17 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3038
3058
  from: string;
3039
3059
  to: string;
3040
3060
  description?: string | null | undefined;
3041
- eventId?: EventId | undefined;
3042
3061
  guard?: SExpr | undefined;
3043
3062
  effects?: SExpr[][] | undefined;
3063
+ eventId?: EventId | undefined;
3044
3064
  }, {
3045
3065
  event: string;
3046
3066
  from: string;
3047
3067
  to: string;
3048
3068
  description?: string | null | undefined;
3049
- eventId?: string | undefined;
3050
3069
  guard?: SExpr | undefined;
3051
3070
  effects?: SExpr[][] | undefined;
3071
+ eventId?: string | undefined;
3052
3072
  }>, "many">;
3053
3073
  guards: z.ZodOptional<z.ZodArray<z.ZodObject<{
3054
3074
  name: z.ZodString;
@@ -3064,23 +3084,12 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3064
3084
  description?: string | undefined;
3065
3085
  }>, "many">>;
3066
3086
  }, "strip", z.ZodTypeAny, {
3067
- events: {
3068
- name: string;
3069
- key: string;
3070
- id?: EventId | undefined;
3071
- description?: string | undefined;
3072
- synonyms?: string | undefined;
3073
- tier?: string | undefined;
3074
- payloadSchema?: PayloadField[] | undefined;
3075
- classification?: "domain" | "system" | undefined;
3076
- semanticRole?: string | undefined;
3077
- }[];
3078
3087
  states: {
3079
3088
  name: string;
3080
3089
  description?: string | undefined;
3081
3090
  isInitial?: boolean | undefined;
3082
- isTerminal?: boolean | undefined;
3083
3091
  isFinal?: boolean | undefined;
3092
+ isTerminal?: boolean | undefined;
3084
3093
  onEntry?: string[] | undefined;
3085
3094
  onExit?: string[] | undefined;
3086
3095
  }[];
@@ -3089,20 +3098,14 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3089
3098
  from: string;
3090
3099
  to: string;
3091
3100
  description?: string | null | undefined;
3092
- eventId?: EventId | undefined;
3093
3101
  guard?: SExpr | undefined;
3094
3102
  effects?: SExpr[][] | undefined;
3103
+ eventId?: EventId | undefined;
3095
3104
  }[];
3096
- guards?: {
3097
- name: string;
3098
- expression: SExpr;
3099
- description?: string | undefined;
3100
- }[] | undefined;
3101
- }, {
3102
3105
  events: {
3103
3106
  name: string;
3104
3107
  key: string;
3105
- id?: string | undefined;
3108
+ id?: EventId | undefined;
3106
3109
  description?: string | undefined;
3107
3110
  synonyms?: string | undefined;
3108
3111
  tier?: string | undefined;
@@ -3110,12 +3113,18 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3110
3113
  classification?: "domain" | "system" | undefined;
3111
3114
  semanticRole?: string | undefined;
3112
3115
  }[];
3116
+ guards?: {
3117
+ name: string;
3118
+ expression: SExpr;
3119
+ description?: string | undefined;
3120
+ }[] | undefined;
3121
+ }, {
3113
3122
  states: {
3114
3123
  name: string;
3115
3124
  description?: string | undefined;
3116
3125
  isInitial?: boolean | undefined;
3117
- isTerminal?: boolean | undefined;
3118
3126
  isFinal?: boolean | undefined;
3127
+ isTerminal?: boolean | undefined;
3119
3128
  onEntry?: string[] | undefined;
3120
3129
  onExit?: string[] | undefined;
3121
3130
  }[];
@@ -3124,9 +3133,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3124
3133
  from: string;
3125
3134
  to: string;
3126
3135
  description?: string | null | undefined;
3127
- eventId?: string | undefined;
3128
3136
  guard?: SExpr | undefined;
3129
3137
  effects?: SExpr[][] | undefined;
3138
+ eventId?: string | undefined;
3139
+ }[];
3140
+ events: {
3141
+ name: string;
3142
+ key: string;
3143
+ id?: string | undefined;
3144
+ description?: string | undefined;
3145
+ synonyms?: string | undefined;
3146
+ tier?: string | undefined;
3147
+ payloadSchema?: PayloadField[] | undefined;
3148
+ classification?: "domain" | "system" | undefined;
3149
+ semanticRole?: string | undefined;
3130
3150
  }[];
3131
3151
  guards?: {
3132
3152
  name: string;
@@ -3153,11 +3173,11 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3153
3173
  interval: string | number;
3154
3174
  description?: string | undefined;
3155
3175
  pages?: string[] | undefined;
3156
- priority?: number | undefined;
3176
+ emits?: string[] | undefined;
3157
3177
  guard?: SExpr | undefined;
3178
+ priority?: number | undefined;
3158
3179
  appliesTo?: string[] | undefined;
3159
3180
  pageIds?: PageId[] | undefined;
3160
- emits?: string[] | undefined;
3161
3181
  emitIds?: EventId[] | undefined;
3162
3182
  }, {
3163
3183
  name: string;
@@ -3165,11 +3185,11 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3165
3185
  interval: string | number;
3166
3186
  description?: string | undefined;
3167
3187
  pages?: string[] | undefined;
3168
- priority?: number | undefined;
3188
+ emits?: string[] | undefined;
3169
3189
  guard?: SExpr | undefined;
3190
+ priority?: number | undefined;
3170
3191
  appliesTo?: string[] | undefined;
3171
3192
  pageIds?: string[] | undefined;
3172
- emits?: string[] | undefined;
3173
3193
  emitIds?: string[] | undefined;
3174
3194
  }>, "many">>;
3175
3195
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3187,6 +3207,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3187
3207
  description: z.ZodOptional<z.ZodString>;
3188
3208
  synonyms: z.ZodOptional<z.ZodString>;
3189
3209
  tier: z.ZodOptional<z.ZodString>;
3210
+ definerKnob: z.ZodOptional<z.ZodString>;
3190
3211
  payloadSchema: z.ZodOptional<z.ZodArray<z.ZodType<EventPayloadField, z.ZodTypeDef, EventPayloadField>, "many">>;
3191
3212
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
3192
3213
  }, "strip", z.ZodTypeAny, {
@@ -3197,6 +3218,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3197
3218
  scope?: "internal" | "external" | undefined;
3198
3219
  tier?: string | undefined;
3199
3220
  payloadSchema?: EventPayloadField[] | undefined;
3221
+ definerKnob?: string | undefined;
3200
3222
  }, {
3201
3223
  event: string;
3202
3224
  description?: string | undefined;
@@ -3205,6 +3227,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3205
3227
  scope?: "internal" | "external" | undefined;
3206
3228
  tier?: string | undefined;
3207
3229
  payloadSchema?: EventPayloadField[] | undefined;
3230
+ definerKnob?: string | undefined;
3208
3231
  }>, "many">>;
3209
3232
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
3210
3233
  event: z.ZodString;
@@ -3272,10 +3295,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3272
3295
  traitId?: TraitId | undefined;
3273
3296
  orbitalId?: OrbitalId | undefined;
3274
3297
  } | undefined;
3298
+ guard?: SExpr | undefined;
3275
3299
  eventId?: EventId | undefined;
3276
3300
  scope?: "internal" | "external" | undefined;
3277
3301
  tier?: string | undefined;
3278
- guard?: SExpr | undefined;
3279
3302
  triggersId?: EventId | undefined;
3280
3303
  payloadMapping?: Record<string, SExpr> | undefined;
3281
3304
  }, {
@@ -3296,10 +3319,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3296
3319
  traitId?: string | undefined;
3297
3320
  orbitalId?: string | undefined;
3298
3321
  } | undefined;
3322
+ guard?: SExpr | undefined;
3299
3323
  eventId?: string | undefined;
3300
3324
  scope?: "internal" | "external" | undefined;
3301
3325
  tier?: string | undefined;
3302
- guard?: SExpr | undefined;
3303
3326
  triggersId?: string | undefined;
3304
3327
  payloadMapping?: Record<string, SExpr> | undefined;
3305
3328
  }>, "many">>;
@@ -3319,8 +3342,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3319
3342
  width?: string | undefined;
3320
3343
  title?: string | undefined;
3321
3344
  totalSteps?: number | undefined;
3322
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3323
3345
  step?: number | undefined;
3346
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3324
3347
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3325
3348
  showProgress?: boolean | undefined;
3326
3349
  closable?: boolean | undefined;
@@ -3328,8 +3351,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3328
3351
  width?: string | undefined;
3329
3352
  title?: string | undefined;
3330
3353
  totalSteps?: number | undefined;
3331
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3332
3354
  step?: number | undefined;
3355
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3333
3356
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3334
3357
  showProgress?: boolean | undefined;
3335
3358
  closable?: boolean | undefined;
@@ -3341,8 +3364,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3341
3364
  width?: string | undefined;
3342
3365
  title?: string | undefined;
3343
3366
  totalSteps?: number | undefined;
3344
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3345
3367
  step?: number | undefined;
3368
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3346
3369
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3347
3370
  showProgress?: boolean | undefined;
3348
3371
  closable?: boolean | undefined;
@@ -3354,8 +3377,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3354
3377
  width?: string | undefined;
3355
3378
  title?: string | undefined;
3356
3379
  totalSteps?: number | undefined;
3357
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3358
3380
  step?: number | undefined;
3381
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3359
3382
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3360
3383
  showProgress?: boolean | undefined;
3361
3384
  closable?: boolean | undefined;
@@ -3507,8 +3530,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3507
3530
  width?: string | undefined;
3508
3531
  title?: string | undefined;
3509
3532
  totalSteps?: number | undefined;
3510
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3511
3533
  step?: number | undefined;
3534
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3512
3535
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3513
3536
  showProgress?: boolean | undefined;
3514
3537
  closable?: boolean | undefined;
@@ -3516,6 +3539,42 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3516
3539
  }> | undefined;
3517
3540
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
3518
3541
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
3542
+ emits?: {
3543
+ event: string;
3544
+ description?: string | undefined;
3545
+ synonyms?: string | undefined;
3546
+ eventId?: EventId | undefined;
3547
+ scope?: "internal" | "external" | undefined;
3548
+ tier?: string | undefined;
3549
+ payloadSchema?: EventPayloadField[] | undefined;
3550
+ definerKnob?: string | undefined;
3551
+ }[] | undefined;
3552
+ listens?: {
3553
+ event: string;
3554
+ triggers: string;
3555
+ description?: string | undefined;
3556
+ synonyms?: string | undefined;
3557
+ source?: {
3558
+ kind: "any";
3559
+ } | {
3560
+ trait: string;
3561
+ kind: "trait";
3562
+ traitId?: TraitId | undefined;
3563
+ } | {
3564
+ orbital: string;
3565
+ trait: string;
3566
+ kind: "orbital";
3567
+ traitId?: TraitId | undefined;
3568
+ orbitalId?: OrbitalId | undefined;
3569
+ } | undefined;
3570
+ guard?: SExpr | undefined;
3571
+ eventId?: EventId | undefined;
3572
+ scope?: "internal" | "external" | undefined;
3573
+ tier?: string | undefined;
3574
+ triggersId?: EventId | undefined;
3575
+ payloadMapping?: Record<string, SExpr> | undefined;
3576
+ }[] | undefined;
3577
+ linkedEntity?: string | undefined;
3519
3578
  capabilities?: string[] | undefined;
3520
3579
  dataEntities?: {
3521
3580
  name: string;
@@ -3528,23 +3587,12 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3528
3587
  singleton?: boolean | undefined;
3529
3588
  }[] | undefined;
3530
3589
  stateMachine?: {
3531
- events: {
3532
- name: string;
3533
- key: string;
3534
- id?: EventId | undefined;
3535
- description?: string | undefined;
3536
- synonyms?: string | undefined;
3537
- tier?: string | undefined;
3538
- payloadSchema?: PayloadField[] | undefined;
3539
- classification?: "domain" | "system" | undefined;
3540
- semanticRole?: string | undefined;
3541
- }[];
3542
3590
  states: {
3543
3591
  name: string;
3544
3592
  description?: string | undefined;
3545
3593
  isInitial?: boolean | undefined;
3546
- isTerminal?: boolean | undefined;
3547
3594
  isFinal?: boolean | undefined;
3595
+ isTerminal?: boolean | undefined;
3548
3596
  onEntry?: string[] | undefined;
3549
3597
  onExit?: string[] | undefined;
3550
3598
  }[];
@@ -3553,9 +3601,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3553
3601
  from: string;
3554
3602
  to: string;
3555
3603
  description?: string | null | undefined;
3556
- eventId?: EventId | undefined;
3557
3604
  guard?: SExpr | undefined;
3558
3605
  effects?: SExpr[][] | undefined;
3606
+ eventId?: EventId | undefined;
3607
+ }[];
3608
+ events: {
3609
+ name: string;
3610
+ key: string;
3611
+ id?: EventId | undefined;
3612
+ description?: string | undefined;
3613
+ synonyms?: string | undefined;
3614
+ tier?: string | undefined;
3615
+ payloadSchema?: PayloadField[] | undefined;
3616
+ classification?: "domain" | "system" | undefined;
3617
+ semanticRole?: string | undefined;
3559
3618
  }[];
3560
3619
  guards?: {
3561
3620
  name: string;
@@ -3563,42 +3622,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3563
3622
  description?: string | undefined;
3564
3623
  }[] | undefined;
3565
3624
  } | undefined;
3566
- emits?: {
3567
- event: string;
3568
- description?: string | undefined;
3569
- synonyms?: string | undefined;
3570
- eventId?: EventId | undefined;
3571
- scope?: "internal" | "external" | undefined;
3572
- tier?: string | undefined;
3573
- payloadSchema?: EventPayloadField[] | undefined;
3574
- }[] | undefined;
3575
- linkedEntity?: string | undefined;
3576
3625
  linkedEntityId?: EntityId | undefined;
3577
- listens?: {
3578
- event: string;
3579
- triggers: string;
3580
- description?: string | undefined;
3581
- synonyms?: string | undefined;
3582
- source?: {
3583
- kind: "any";
3584
- } | {
3585
- trait: string;
3586
- kind: "trait";
3587
- traitId?: TraitId | undefined;
3588
- } | {
3589
- orbital: string;
3590
- trait: string;
3591
- kind: "orbital";
3592
- traitId?: TraitId | undefined;
3593
- orbitalId?: OrbitalId | undefined;
3594
- } | undefined;
3595
- eventId?: EventId | undefined;
3596
- scope?: "internal" | "external" | undefined;
3597
- tier?: string | undefined;
3598
- guard?: SExpr | undefined;
3599
- triggersId?: EventId | undefined;
3600
- payloadMapping?: Record<string, SExpr> | undefined;
3601
- }[] | undefined;
3602
3626
  description_visual_prompt?: string | undefined;
3603
3627
  entityRebindable?: boolean | undefined;
3604
3628
  entityContract?: {
@@ -3621,11 +3645,11 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3621
3645
  interval: string | number;
3622
3646
  description?: string | undefined;
3623
3647
  pages?: string[] | undefined;
3624
- priority?: number | undefined;
3648
+ emits?: string[] | undefined;
3625
3649
  guard?: SExpr | undefined;
3650
+ priority?: number | undefined;
3626
3651
  appliesTo?: string[] | undefined;
3627
3652
  pageIds?: PageId[] | undefined;
3628
- emits?: string[] | undefined;
3629
3653
  emitIds?: EventId[] | undefined;
3630
3654
  }[] | undefined;
3631
3655
  sourceBehavior?: {
@@ -3677,8 +3701,8 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3677
3701
  width?: string | undefined;
3678
3702
  title?: string | undefined;
3679
3703
  totalSteps?: number | undefined;
3680
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3681
3704
  step?: number | undefined;
3705
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
3682
3706
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
3683
3707
  showProgress?: boolean | undefined;
3684
3708
  closable?: boolean | undefined;
@@ -3686,6 +3710,42 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3686
3710
  }> | undefined;
3687
3711
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
3688
3712
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
3713
+ emits?: {
3714
+ event: string;
3715
+ description?: string | undefined;
3716
+ synonyms?: string | undefined;
3717
+ eventId?: string | undefined;
3718
+ scope?: "internal" | "external" | undefined;
3719
+ tier?: string | undefined;
3720
+ payloadSchema?: EventPayloadField[] | undefined;
3721
+ definerKnob?: string | undefined;
3722
+ }[] | undefined;
3723
+ listens?: {
3724
+ event: string;
3725
+ triggers: string;
3726
+ description?: string | undefined;
3727
+ synonyms?: string | undefined;
3728
+ source?: {
3729
+ kind: "any";
3730
+ } | {
3731
+ trait: string;
3732
+ kind: "trait";
3733
+ traitId?: string | undefined;
3734
+ } | {
3735
+ orbital: string;
3736
+ trait: string;
3737
+ kind: "orbital";
3738
+ traitId?: string | undefined;
3739
+ orbitalId?: string | undefined;
3740
+ } | undefined;
3741
+ guard?: SExpr | undefined;
3742
+ eventId?: string | undefined;
3743
+ scope?: "internal" | "external" | undefined;
3744
+ tier?: string | undefined;
3745
+ triggersId?: string | undefined;
3746
+ payloadMapping?: Record<string, SExpr> | undefined;
3747
+ }[] | undefined;
3748
+ linkedEntity?: string | undefined;
3689
3749
  capabilities?: string[] | undefined;
3690
3750
  dataEntities?: {
3691
3751
  name: string;
@@ -3698,23 +3758,12 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3698
3758
  singleton?: boolean | undefined;
3699
3759
  }[] | undefined;
3700
3760
  stateMachine?: {
3701
- events: {
3702
- name: string;
3703
- key: string;
3704
- id?: string | undefined;
3705
- description?: string | undefined;
3706
- synonyms?: string | undefined;
3707
- tier?: string | undefined;
3708
- payloadSchema?: PayloadField[] | undefined;
3709
- classification?: "domain" | "system" | undefined;
3710
- semanticRole?: string | undefined;
3711
- }[];
3712
3761
  states: {
3713
3762
  name: string;
3714
3763
  description?: string | undefined;
3715
3764
  isInitial?: boolean | undefined;
3716
- isTerminal?: boolean | undefined;
3717
3765
  isFinal?: boolean | undefined;
3766
+ isTerminal?: boolean | undefined;
3718
3767
  onEntry?: string[] | undefined;
3719
3768
  onExit?: string[] | undefined;
3720
3769
  }[];
@@ -3723,9 +3772,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3723
3772
  from: string;
3724
3773
  to: string;
3725
3774
  description?: string | null | undefined;
3726
- eventId?: string | undefined;
3727
3775
  guard?: SExpr | undefined;
3728
3776
  effects?: SExpr[][] | undefined;
3777
+ eventId?: string | undefined;
3778
+ }[];
3779
+ events: {
3780
+ name: string;
3781
+ key: string;
3782
+ id?: string | undefined;
3783
+ description?: string | undefined;
3784
+ synonyms?: string | undefined;
3785
+ tier?: string | undefined;
3786
+ payloadSchema?: PayloadField[] | undefined;
3787
+ classification?: "domain" | "system" | undefined;
3788
+ semanticRole?: string | undefined;
3729
3789
  }[];
3730
3790
  guards?: {
3731
3791
  name: string;
@@ -3733,42 +3793,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3733
3793
  description?: string | undefined;
3734
3794
  }[] | undefined;
3735
3795
  } | undefined;
3736
- emits?: {
3737
- event: string;
3738
- description?: string | undefined;
3739
- synonyms?: string | undefined;
3740
- eventId?: string | undefined;
3741
- scope?: "internal" | "external" | undefined;
3742
- tier?: string | undefined;
3743
- payloadSchema?: EventPayloadField[] | undefined;
3744
- }[] | undefined;
3745
- linkedEntity?: string | undefined;
3746
3796
  linkedEntityId?: string | undefined;
3747
- listens?: {
3748
- event: string;
3749
- triggers: string;
3750
- description?: string | undefined;
3751
- synonyms?: string | undefined;
3752
- source?: {
3753
- kind: "any";
3754
- } | {
3755
- trait: string;
3756
- kind: "trait";
3757
- traitId?: string | undefined;
3758
- } | {
3759
- orbital: string;
3760
- trait: string;
3761
- kind: "orbital";
3762
- traitId?: string | undefined;
3763
- orbitalId?: string | undefined;
3764
- } | undefined;
3765
- eventId?: string | undefined;
3766
- scope?: "internal" | "external" | undefined;
3767
- tier?: string | undefined;
3768
- guard?: SExpr | undefined;
3769
- triggersId?: string | undefined;
3770
- payloadMapping?: Record<string, SExpr> | undefined;
3771
- }[] | undefined;
3772
3797
  description_visual_prompt?: string | undefined;
3773
3798
  entityRebindable?: boolean | undefined;
3774
3799
  entityContract?: {
@@ -3791,11 +3816,11 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<
3791
3816
  interval: string | number;
3792
3817
  description?: string | undefined;
3793
3818
  pages?: string[] | undefined;
3794
- priority?: number | undefined;
3819
+ emits?: string[] | undefined;
3795
3820
  guard?: SExpr | undefined;
3821
+ priority?: number | undefined;
3796
3822
  appliesTo?: string[] | undefined;
3797
3823
  pageIds?: string[] | undefined;
3798
- emits?: string[] | undefined;
3799
3824
  emitIds?: string[] | undefined;
3800
3825
  }[] | undefined;
3801
3826
  sourceBehavior?: {
@@ -3985,10 +4010,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
3985
4010
  traitId?: TraitId | undefined;
3986
4011
  orbitalId?: OrbitalId | undefined;
3987
4012
  } | undefined;
4013
+ guard?: SExpr | undefined;
3988
4014
  eventId?: EventId | undefined;
3989
4015
  scope?: "internal" | "external" | undefined;
3990
4016
  tier?: string | undefined;
3991
- guard?: SExpr | undefined;
3992
4017
  triggersId?: EventId | undefined;
3993
4018
  payloadMapping?: Record<string, SExpr> | undefined;
3994
4019
  }, {
@@ -4009,10 +4034,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4009
4034
  traitId?: string | undefined;
4010
4035
  orbitalId?: string | undefined;
4011
4036
  } | undefined;
4037
+ guard?: SExpr | undefined;
4012
4038
  eventId?: string | undefined;
4013
4039
  scope?: "internal" | "external" | undefined;
4014
4040
  tier?: string | undefined;
4015
- guard?: SExpr | undefined;
4016
4041
  triggersId?: string | undefined;
4017
4042
  payloadMapping?: Record<string, SExpr> | undefined;
4018
4043
  }>, "many">>;
@@ -4025,13 +4050,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4025
4050
  name?: string | undefined;
4026
4051
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4027
4052
  fields?: Record<string, string> | undefined;
4028
- events?: Record<string, string> | undefined;
4029
- effects?: Record<string, SExpr[]> | undefined;
4030
- refId?: TraitId | undefined;
4031
- appliesTo?: string[] | undefined;
4032
- linkedEntity?: string | undefined;
4033
- linkedEntityId?: EntityId | undefined;
4034
- eventIds?: Record<string, EventId> | undefined;
4035
4053
  listens?: {
4036
4054
  event: string;
4037
4055
  triggers: string;
@@ -4050,13 +4068,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4050
4068
  traitId?: TraitId | undefined;
4051
4069
  orbitalId?: OrbitalId | undefined;
4052
4070
  } | undefined;
4071
+ guard?: SExpr | undefined;
4053
4072
  eventId?: EventId | undefined;
4054
4073
  scope?: "internal" | "external" | undefined;
4055
4074
  tier?: string | undefined;
4056
- guard?: SExpr | undefined;
4057
4075
  triggersId?: EventId | undefined;
4058
4076
  payloadMapping?: Record<string, SExpr> | undefined;
4059
4077
  }[] | undefined;
4078
+ effects?: Record<string, SExpr[]> | undefined;
4079
+ linkedEntity?: string | undefined;
4080
+ events?: Record<string, string> | undefined;
4081
+ refId?: TraitId | undefined;
4082
+ appliesTo?: string[] | undefined;
4083
+ linkedEntityId?: EntityId | undefined;
4084
+ eventIds?: Record<string, EventId> | undefined;
4060
4085
  emitsScope?: "internal" | "external" | undefined;
4061
4086
  }, {
4062
4087
  ref: string;
@@ -4065,13 +4090,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4065
4090
  name?: string | undefined;
4066
4091
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4067
4092
  fields?: Record<string, string> | undefined;
4068
- events?: Record<string, string> | undefined;
4069
- effects?: Record<string, SExpr[]> | undefined;
4070
- refId?: string | undefined;
4071
- appliesTo?: string[] | undefined;
4072
- linkedEntity?: string | undefined;
4073
- linkedEntityId?: string | undefined;
4074
- eventIds?: Record<string, string> | undefined;
4075
4093
  listens?: {
4076
4094
  event: string;
4077
4095
  triggers: string;
@@ -4090,13 +4108,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4090
4108
  traitId?: string | undefined;
4091
4109
  orbitalId?: string | undefined;
4092
4110
  } | undefined;
4111
+ guard?: SExpr | undefined;
4093
4112
  eventId?: string | undefined;
4094
4113
  scope?: "internal" | "external" | undefined;
4095
4114
  tier?: string | undefined;
4096
- guard?: SExpr | undefined;
4097
4115
  triggersId?: string | undefined;
4098
4116
  payloadMapping?: Record<string, SExpr> | undefined;
4099
4117
  }[] | undefined;
4118
+ effects?: Record<string, SExpr[]> | undefined;
4119
+ linkedEntity?: string | undefined;
4120
+ events?: Record<string, string> | undefined;
4121
+ refId?: string | undefined;
4122
+ appliesTo?: string[] | undefined;
4123
+ linkedEntityId?: string | undefined;
4124
+ eventIds?: Record<string, string> | undefined;
4100
4125
  emitsScope?: "internal" | "external" | undefined;
4101
4126
  }>, {
4102
4127
  ref: string;
@@ -4105,13 +4130,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4105
4130
  name?: string | undefined;
4106
4131
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4107
4132
  fields?: Record<string, string> | undefined;
4108
- events?: Record<string, string> | undefined;
4109
- effects?: Record<string, SExpr[]> | undefined;
4110
- refId?: TraitId | undefined;
4111
- appliesTo?: string[] | undefined;
4112
- linkedEntity?: string | undefined;
4113
- linkedEntityId?: EntityId | undefined;
4114
- eventIds?: Record<string, EventId> | undefined;
4115
4133
  listens?: {
4116
4134
  event: string;
4117
4135
  triggers: string;
@@ -4130,13 +4148,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4130
4148
  traitId?: TraitId | undefined;
4131
4149
  orbitalId?: OrbitalId | undefined;
4132
4150
  } | undefined;
4151
+ guard?: SExpr | undefined;
4133
4152
  eventId?: EventId | undefined;
4134
4153
  scope?: "internal" | "external" | undefined;
4135
4154
  tier?: string | undefined;
4136
- guard?: SExpr | undefined;
4137
4155
  triggersId?: EventId | undefined;
4138
4156
  payloadMapping?: Record<string, SExpr> | undefined;
4139
4157
  }[] | undefined;
4158
+ effects?: Record<string, SExpr[]> | undefined;
4159
+ linkedEntity?: string | undefined;
4160
+ events?: Record<string, string> | undefined;
4161
+ refId?: TraitId | undefined;
4162
+ appliesTo?: string[] | undefined;
4163
+ linkedEntityId?: EntityId | undefined;
4164
+ eventIds?: Record<string, EventId> | undefined;
4140
4165
  emitsScope?: "internal" | "external" | undefined;
4141
4166
  }, {
4142
4167
  ref: string;
@@ -4145,13 +4170,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4145
4170
  name?: string | undefined;
4146
4171
  config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
4147
4172
  fields?: Record<string, string> | undefined;
4148
- events?: Record<string, string> | undefined;
4149
- effects?: Record<string, SExpr[]> | undefined;
4150
- refId?: string | undefined;
4151
- appliesTo?: string[] | undefined;
4152
- linkedEntity?: string | undefined;
4153
- linkedEntityId?: string | undefined;
4154
- eventIds?: Record<string, string> | undefined;
4155
4173
  listens?: {
4156
4174
  event: string;
4157
4175
  triggers: string;
@@ -4170,13 +4188,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4170
4188
  traitId?: string | undefined;
4171
4189
  orbitalId?: string | undefined;
4172
4190
  } | undefined;
4191
+ guard?: SExpr | undefined;
4173
4192
  eventId?: string | undefined;
4174
4193
  scope?: "internal" | "external" | undefined;
4175
4194
  tier?: string | undefined;
4176
- guard?: SExpr | undefined;
4177
4195
  triggersId?: string | undefined;
4178
4196
  payloadMapping?: Record<string, SExpr> | undefined;
4179
4197
  }[] | undefined;
4198
+ effects?: Record<string, SExpr[]> | undefined;
4199
+ linkedEntity?: string | undefined;
4200
+ events?: Record<string, string> | undefined;
4201
+ refId?: string | undefined;
4202
+ appliesTo?: string[] | undefined;
4203
+ linkedEntityId?: string | undefined;
4204
+ eventIds?: Record<string, string> | undefined;
4180
4205
  emitsScope?: "internal" | "external" | undefined;
4181
4206
  }>, z.ZodObject<{
4182
4207
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
@@ -4257,16 +4282,16 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4257
4282
  name: string;
4258
4283
  description?: string | undefined;
4259
4284
  isInitial?: boolean | undefined;
4260
- isTerminal?: boolean | undefined;
4261
4285
  isFinal?: boolean | undefined;
4286
+ isTerminal?: boolean | undefined;
4262
4287
  onEntry?: string[] | undefined;
4263
4288
  onExit?: string[] | undefined;
4264
4289
  }, {
4265
4290
  name: string;
4266
4291
  description?: string | undefined;
4267
4292
  isInitial?: boolean | undefined;
4268
- isTerminal?: boolean | undefined;
4269
4293
  isFinal?: boolean | undefined;
4294
+ isTerminal?: boolean | undefined;
4270
4295
  onEntry?: string[] | undefined;
4271
4296
  onExit?: string[] | undefined;
4272
4297
  }>, "many">;
@@ -4314,17 +4339,17 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4314
4339
  from: string;
4315
4340
  to: string;
4316
4341
  description?: string | null | undefined;
4317
- eventId?: EventId | undefined;
4318
4342
  guard?: SExpr | undefined;
4319
4343
  effects?: SExpr[][] | undefined;
4344
+ eventId?: EventId | undefined;
4320
4345
  }, {
4321
4346
  event: string;
4322
4347
  from: string;
4323
4348
  to: string;
4324
4349
  description?: string | null | undefined;
4325
- eventId?: string | undefined;
4326
4350
  guard?: SExpr | undefined;
4327
4351
  effects?: SExpr[][] | undefined;
4352
+ eventId?: string | undefined;
4328
4353
  }>, "many">;
4329
4354
  guards: z.ZodOptional<z.ZodArray<z.ZodObject<{
4330
4355
  name: z.ZodString;
@@ -4340,23 +4365,12 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4340
4365
  description?: string | undefined;
4341
4366
  }>, "many">>;
4342
4367
  }, "strip", z.ZodTypeAny, {
4343
- events: {
4344
- name: string;
4345
- key: string;
4346
- id?: EventId | undefined;
4347
- description?: string | undefined;
4348
- synonyms?: string | undefined;
4349
- tier?: string | undefined;
4350
- payloadSchema?: PayloadField[] | undefined;
4351
- classification?: "domain" | "system" | undefined;
4352
- semanticRole?: string | undefined;
4353
- }[];
4354
4368
  states: {
4355
4369
  name: string;
4356
4370
  description?: string | undefined;
4357
4371
  isInitial?: boolean | undefined;
4358
- isTerminal?: boolean | undefined;
4359
4372
  isFinal?: boolean | undefined;
4373
+ isTerminal?: boolean | undefined;
4360
4374
  onEntry?: string[] | undefined;
4361
4375
  onExit?: string[] | undefined;
4362
4376
  }[];
@@ -4365,20 +4379,14 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4365
4379
  from: string;
4366
4380
  to: string;
4367
4381
  description?: string | null | undefined;
4368
- eventId?: EventId | undefined;
4369
4382
  guard?: SExpr | undefined;
4370
4383
  effects?: SExpr[][] | undefined;
4384
+ eventId?: EventId | undefined;
4371
4385
  }[];
4372
- guards?: {
4373
- name: string;
4374
- expression: SExpr;
4375
- description?: string | undefined;
4376
- }[] | undefined;
4377
- }, {
4378
4386
  events: {
4379
4387
  name: string;
4380
4388
  key: string;
4381
- id?: string | undefined;
4389
+ id?: EventId | undefined;
4382
4390
  description?: string | undefined;
4383
4391
  synonyms?: string | undefined;
4384
4392
  tier?: string | undefined;
@@ -4386,12 +4394,18 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4386
4394
  classification?: "domain" | "system" | undefined;
4387
4395
  semanticRole?: string | undefined;
4388
4396
  }[];
4397
+ guards?: {
4398
+ name: string;
4399
+ expression: SExpr;
4400
+ description?: string | undefined;
4401
+ }[] | undefined;
4402
+ }, {
4389
4403
  states: {
4390
4404
  name: string;
4391
4405
  description?: string | undefined;
4392
4406
  isInitial?: boolean | undefined;
4393
- isTerminal?: boolean | undefined;
4394
4407
  isFinal?: boolean | undefined;
4408
+ isTerminal?: boolean | undefined;
4395
4409
  onEntry?: string[] | undefined;
4396
4410
  onExit?: string[] | undefined;
4397
4411
  }[];
@@ -4400,9 +4414,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4400
4414
  from: string;
4401
4415
  to: string;
4402
4416
  description?: string | null | undefined;
4403
- eventId?: string | undefined;
4404
4417
  guard?: SExpr | undefined;
4405
4418
  effects?: SExpr[][] | undefined;
4419
+ eventId?: string | undefined;
4420
+ }[];
4421
+ events: {
4422
+ name: string;
4423
+ key: string;
4424
+ id?: string | undefined;
4425
+ description?: string | undefined;
4426
+ synonyms?: string | undefined;
4427
+ tier?: string | undefined;
4428
+ payloadSchema?: PayloadField[] | undefined;
4429
+ classification?: "domain" | "system" | undefined;
4430
+ semanticRole?: string | undefined;
4406
4431
  }[];
4407
4432
  guards?: {
4408
4433
  name: string;
@@ -4429,11 +4454,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4429
4454
  interval: string | number;
4430
4455
  description?: string | undefined;
4431
4456
  pages?: string[] | undefined;
4432
- priority?: number | undefined;
4457
+ emits?: string[] | undefined;
4433
4458
  guard?: SExpr | undefined;
4459
+ priority?: number | undefined;
4434
4460
  appliesTo?: string[] | undefined;
4435
4461
  pageIds?: PageId[] | undefined;
4436
- emits?: string[] | undefined;
4437
4462
  emitIds?: EventId[] | undefined;
4438
4463
  }, {
4439
4464
  name: string;
@@ -4441,11 +4466,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4441
4466
  interval: string | number;
4442
4467
  description?: string | undefined;
4443
4468
  pages?: string[] | undefined;
4444
- priority?: number | undefined;
4469
+ emits?: string[] | undefined;
4445
4470
  guard?: SExpr | undefined;
4471
+ priority?: number | undefined;
4446
4472
  appliesTo?: string[] | undefined;
4447
4473
  pageIds?: string[] | undefined;
4448
- emits?: string[] | undefined;
4449
4474
  emitIds?: string[] | undefined;
4450
4475
  }>, "many">>;
4451
4476
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4463,6 +4488,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4463
4488
  description: z.ZodOptional<z.ZodString>;
4464
4489
  synonyms: z.ZodOptional<z.ZodString>;
4465
4490
  tier: z.ZodOptional<z.ZodString>;
4491
+ definerKnob: z.ZodOptional<z.ZodString>;
4466
4492
  payloadSchema: z.ZodOptional<z.ZodArray<z.ZodType<EventPayloadField, z.ZodTypeDef, EventPayloadField>, "many">>;
4467
4493
  scope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
4468
4494
  }, "strip", z.ZodTypeAny, {
@@ -4473,6 +4499,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4473
4499
  scope?: "internal" | "external" | undefined;
4474
4500
  tier?: string | undefined;
4475
4501
  payloadSchema?: EventPayloadField[] | undefined;
4502
+ definerKnob?: string | undefined;
4476
4503
  }, {
4477
4504
  event: string;
4478
4505
  description?: string | undefined;
@@ -4481,6 +4508,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4481
4508
  scope?: "internal" | "external" | undefined;
4482
4509
  tier?: string | undefined;
4483
4510
  payloadSchema?: EventPayloadField[] | undefined;
4511
+ definerKnob?: string | undefined;
4484
4512
  }>, "many">>;
4485
4513
  listens: z.ZodOptional<z.ZodArray<z.ZodObject<{
4486
4514
  event: z.ZodString;
@@ -4548,10 +4576,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4548
4576
  traitId?: TraitId | undefined;
4549
4577
  orbitalId?: OrbitalId | undefined;
4550
4578
  } | undefined;
4579
+ guard?: SExpr | undefined;
4551
4580
  eventId?: EventId | undefined;
4552
4581
  scope?: "internal" | "external" | undefined;
4553
4582
  tier?: string | undefined;
4554
- guard?: SExpr | undefined;
4555
4583
  triggersId?: EventId | undefined;
4556
4584
  payloadMapping?: Record<string, SExpr> | undefined;
4557
4585
  }, {
@@ -4572,10 +4600,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4572
4600
  traitId?: string | undefined;
4573
4601
  orbitalId?: string | undefined;
4574
4602
  } | undefined;
4603
+ guard?: SExpr | undefined;
4575
4604
  eventId?: string | undefined;
4576
4605
  scope?: "internal" | "external" | undefined;
4577
4606
  tier?: string | undefined;
4578
- guard?: SExpr | undefined;
4579
4607
  triggersId?: string | undefined;
4580
4608
  payloadMapping?: Record<string, SExpr> | undefined;
4581
4609
  }>, "many">>;
@@ -4595,8 +4623,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4595
4623
  width?: string | undefined;
4596
4624
  title?: string | undefined;
4597
4625
  totalSteps?: number | undefined;
4598
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4599
4626
  step?: number | undefined;
4627
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4600
4628
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4601
4629
  showProgress?: boolean | undefined;
4602
4630
  closable?: boolean | undefined;
@@ -4604,8 +4632,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4604
4632
  width?: string | undefined;
4605
4633
  title?: string | undefined;
4606
4634
  totalSteps?: number | undefined;
4607
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4608
4635
  step?: number | undefined;
4636
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4609
4637
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4610
4638
  showProgress?: boolean | undefined;
4611
4639
  closable?: boolean | undefined;
@@ -4617,8 +4645,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4617
4645
  width?: string | undefined;
4618
4646
  title?: string | undefined;
4619
4647
  totalSteps?: number | undefined;
4620
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4621
4648
  step?: number | undefined;
4649
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4622
4650
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4623
4651
  showProgress?: boolean | undefined;
4624
4652
  closable?: boolean | undefined;
@@ -4630,8 +4658,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4630
4658
  width?: string | undefined;
4631
4659
  title?: string | undefined;
4632
4660
  totalSteps?: number | undefined;
4633
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4634
4661
  step?: number | undefined;
4662
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4635
4663
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4636
4664
  showProgress?: boolean | undefined;
4637
4665
  closable?: boolean | undefined;
@@ -4783,8 +4811,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4783
4811
  width?: string | undefined;
4784
4812
  title?: string | undefined;
4785
4813
  totalSteps?: number | undefined;
4786
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4787
4814
  step?: number | undefined;
4815
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4788
4816
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4789
4817
  showProgress?: boolean | undefined;
4790
4818
  closable?: boolean | undefined;
@@ -4792,6 +4820,42 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4792
4820
  }> | undefined;
4793
4821
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
4794
4822
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
4823
+ emits?: {
4824
+ event: string;
4825
+ description?: string | undefined;
4826
+ synonyms?: string | undefined;
4827
+ eventId?: EventId | undefined;
4828
+ scope?: "internal" | "external" | undefined;
4829
+ tier?: string | undefined;
4830
+ payloadSchema?: EventPayloadField[] | undefined;
4831
+ definerKnob?: string | undefined;
4832
+ }[] | undefined;
4833
+ listens?: {
4834
+ event: string;
4835
+ triggers: string;
4836
+ description?: string | undefined;
4837
+ synonyms?: string | undefined;
4838
+ source?: {
4839
+ kind: "any";
4840
+ } | {
4841
+ trait: string;
4842
+ kind: "trait";
4843
+ traitId?: TraitId | undefined;
4844
+ } | {
4845
+ orbital: string;
4846
+ trait: string;
4847
+ kind: "orbital";
4848
+ traitId?: TraitId | undefined;
4849
+ orbitalId?: OrbitalId | undefined;
4850
+ } | undefined;
4851
+ guard?: SExpr | undefined;
4852
+ eventId?: EventId | undefined;
4853
+ scope?: "internal" | "external" | undefined;
4854
+ tier?: string | undefined;
4855
+ triggersId?: EventId | undefined;
4856
+ payloadMapping?: Record<string, SExpr> | undefined;
4857
+ }[] | undefined;
4858
+ linkedEntity?: string | undefined;
4795
4859
  capabilities?: string[] | undefined;
4796
4860
  dataEntities?: {
4797
4861
  name: string;
@@ -4804,23 +4868,12 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4804
4868
  singleton?: boolean | undefined;
4805
4869
  }[] | undefined;
4806
4870
  stateMachine?: {
4807
- events: {
4808
- name: string;
4809
- key: string;
4810
- id?: EventId | undefined;
4811
- description?: string | undefined;
4812
- synonyms?: string | undefined;
4813
- tier?: string | undefined;
4814
- payloadSchema?: PayloadField[] | undefined;
4815
- classification?: "domain" | "system" | undefined;
4816
- semanticRole?: string | undefined;
4817
- }[];
4818
4871
  states: {
4819
4872
  name: string;
4820
4873
  description?: string | undefined;
4821
4874
  isInitial?: boolean | undefined;
4822
- isTerminal?: boolean | undefined;
4823
4875
  isFinal?: boolean | undefined;
4876
+ isTerminal?: boolean | undefined;
4824
4877
  onEntry?: string[] | undefined;
4825
4878
  onExit?: string[] | undefined;
4826
4879
  }[];
@@ -4829,9 +4882,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4829
4882
  from: string;
4830
4883
  to: string;
4831
4884
  description?: string | null | undefined;
4832
- eventId?: EventId | undefined;
4833
4885
  guard?: SExpr | undefined;
4834
4886
  effects?: SExpr[][] | undefined;
4887
+ eventId?: EventId | undefined;
4888
+ }[];
4889
+ events: {
4890
+ name: string;
4891
+ key: string;
4892
+ id?: EventId | undefined;
4893
+ description?: string | undefined;
4894
+ synonyms?: string | undefined;
4895
+ tier?: string | undefined;
4896
+ payloadSchema?: PayloadField[] | undefined;
4897
+ classification?: "domain" | "system" | undefined;
4898
+ semanticRole?: string | undefined;
4835
4899
  }[];
4836
4900
  guards?: {
4837
4901
  name: string;
@@ -4839,42 +4903,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4839
4903
  description?: string | undefined;
4840
4904
  }[] | undefined;
4841
4905
  } | undefined;
4842
- emits?: {
4843
- event: string;
4844
- description?: string | undefined;
4845
- synonyms?: string | undefined;
4846
- eventId?: EventId | undefined;
4847
- scope?: "internal" | "external" | undefined;
4848
- tier?: string | undefined;
4849
- payloadSchema?: EventPayloadField[] | undefined;
4850
- }[] | undefined;
4851
- linkedEntity?: string | undefined;
4852
4906
  linkedEntityId?: EntityId | undefined;
4853
- listens?: {
4854
- event: string;
4855
- triggers: string;
4856
- description?: string | undefined;
4857
- synonyms?: string | undefined;
4858
- source?: {
4859
- kind: "any";
4860
- } | {
4861
- trait: string;
4862
- kind: "trait";
4863
- traitId?: TraitId | undefined;
4864
- } | {
4865
- orbital: string;
4866
- trait: string;
4867
- kind: "orbital";
4868
- traitId?: TraitId | undefined;
4869
- orbitalId?: OrbitalId | undefined;
4870
- } | undefined;
4871
- eventId?: EventId | undefined;
4872
- scope?: "internal" | "external" | undefined;
4873
- tier?: string | undefined;
4874
- guard?: SExpr | undefined;
4875
- triggersId?: EventId | undefined;
4876
- payloadMapping?: Record<string, SExpr> | undefined;
4877
- }[] | undefined;
4878
4907
  description_visual_prompt?: string | undefined;
4879
4908
  entityRebindable?: boolean | undefined;
4880
4909
  entityContract?: {
@@ -4897,11 +4926,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4897
4926
  interval: string | number;
4898
4927
  description?: string | undefined;
4899
4928
  pages?: string[] | undefined;
4900
- priority?: number | undefined;
4929
+ emits?: string[] | undefined;
4901
4930
  guard?: SExpr | undefined;
4931
+ priority?: number | undefined;
4902
4932
  appliesTo?: string[] | undefined;
4903
4933
  pageIds?: PageId[] | undefined;
4904
- emits?: string[] | undefined;
4905
4934
  emitIds?: EventId[] | undefined;
4906
4935
  }[] | undefined;
4907
4936
  sourceBehavior?: {
@@ -4953,8 +4982,8 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4953
4982
  width?: string | undefined;
4954
4983
  title?: string | undefined;
4955
4984
  totalSteps?: number | undefined;
4956
- size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4957
4985
  step?: number | undefined;
4986
+ size?: "sm" | "md" | "lg" | "xl" | "full" | undefined;
4958
4987
  position?: "top" | "center" | "left" | "right" | "bottom" | undefined;
4959
4988
  showProgress?: boolean | undefined;
4960
4989
  closable?: boolean | undefined;
@@ -4962,6 +4991,42 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4962
4991
  }> | undefined;
4963
4992
  category?: "validation" | "notification" | "lifecycle" | "temporal" | "integration" | "interaction" | "agent" | "game-core" | "game-character" | "game-ai" | "game-combat" | "game-items" | "game-cards" | "game-board" | "game-puzzle" | undefined;
4964
4993
  config?: Readonly<Record<string, ConfigFieldDeclaration>> | undefined;
4994
+ emits?: {
4995
+ event: string;
4996
+ description?: string | undefined;
4997
+ synonyms?: string | undefined;
4998
+ eventId?: string | undefined;
4999
+ scope?: "internal" | "external" | undefined;
5000
+ tier?: string | undefined;
5001
+ payloadSchema?: EventPayloadField[] | undefined;
5002
+ definerKnob?: string | undefined;
5003
+ }[] | undefined;
5004
+ listens?: {
5005
+ event: string;
5006
+ triggers: string;
5007
+ description?: string | undefined;
5008
+ synonyms?: string | undefined;
5009
+ source?: {
5010
+ kind: "any";
5011
+ } | {
5012
+ trait: string;
5013
+ kind: "trait";
5014
+ traitId?: string | undefined;
5015
+ } | {
5016
+ orbital: string;
5017
+ trait: string;
5018
+ kind: "orbital";
5019
+ traitId?: string | undefined;
5020
+ orbitalId?: string | undefined;
5021
+ } | undefined;
5022
+ guard?: SExpr | undefined;
5023
+ eventId?: string | undefined;
5024
+ scope?: "internal" | "external" | undefined;
5025
+ tier?: string | undefined;
5026
+ triggersId?: string | undefined;
5027
+ payloadMapping?: Record<string, SExpr> | undefined;
5028
+ }[] | undefined;
5029
+ linkedEntity?: string | undefined;
4965
5030
  capabilities?: string[] | undefined;
4966
5031
  dataEntities?: {
4967
5032
  name: string;
@@ -4974,23 +5039,12 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4974
5039
  singleton?: boolean | undefined;
4975
5040
  }[] | undefined;
4976
5041
  stateMachine?: {
4977
- events: {
4978
- name: string;
4979
- key: string;
4980
- id?: string | undefined;
4981
- description?: string | undefined;
4982
- synonyms?: string | undefined;
4983
- tier?: string | undefined;
4984
- payloadSchema?: PayloadField[] | undefined;
4985
- classification?: "domain" | "system" | undefined;
4986
- semanticRole?: string | undefined;
4987
- }[];
4988
5042
  states: {
4989
5043
  name: string;
4990
5044
  description?: string | undefined;
4991
5045
  isInitial?: boolean | undefined;
4992
- isTerminal?: boolean | undefined;
4993
5046
  isFinal?: boolean | undefined;
5047
+ isTerminal?: boolean | undefined;
4994
5048
  onEntry?: string[] | undefined;
4995
5049
  onExit?: string[] | undefined;
4996
5050
  }[];
@@ -4999,9 +5053,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
4999
5053
  from: string;
5000
5054
  to: string;
5001
5055
  description?: string | null | undefined;
5002
- eventId?: string | undefined;
5003
5056
  guard?: SExpr | undefined;
5004
5057
  effects?: SExpr[][] | undefined;
5058
+ eventId?: string | undefined;
5059
+ }[];
5060
+ events: {
5061
+ name: string;
5062
+ key: string;
5063
+ id?: string | undefined;
5064
+ description?: string | undefined;
5065
+ synonyms?: string | undefined;
5066
+ tier?: string | undefined;
5067
+ payloadSchema?: PayloadField[] | undefined;
5068
+ classification?: "domain" | "system" | undefined;
5069
+ semanticRole?: string | undefined;
5005
5070
  }[];
5006
5071
  guards?: {
5007
5072
  name: string;
@@ -5009,42 +5074,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5009
5074
  description?: string | undefined;
5010
5075
  }[] | undefined;
5011
5076
  } | undefined;
5012
- emits?: {
5013
- event: string;
5014
- description?: string | undefined;
5015
- synonyms?: string | undefined;
5016
- eventId?: string | undefined;
5017
- scope?: "internal" | "external" | undefined;
5018
- tier?: string | undefined;
5019
- payloadSchema?: EventPayloadField[] | undefined;
5020
- }[] | undefined;
5021
- linkedEntity?: string | undefined;
5022
5077
  linkedEntityId?: string | undefined;
5023
- listens?: {
5024
- event: string;
5025
- triggers: string;
5026
- description?: string | undefined;
5027
- synonyms?: string | undefined;
5028
- source?: {
5029
- kind: "any";
5030
- } | {
5031
- trait: string;
5032
- kind: "trait";
5033
- traitId?: string | undefined;
5034
- } | {
5035
- orbital: string;
5036
- trait: string;
5037
- kind: "orbital";
5038
- traitId?: string | undefined;
5039
- orbitalId?: string | undefined;
5040
- } | undefined;
5041
- eventId?: string | undefined;
5042
- scope?: "internal" | "external" | undefined;
5043
- tier?: string | undefined;
5044
- guard?: SExpr | undefined;
5045
- triggersId?: string | undefined;
5046
- payloadMapping?: Record<string, SExpr> | undefined;
5047
- }[] | undefined;
5048
5078
  description_visual_prompt?: string | undefined;
5049
5079
  entityRebindable?: boolean | undefined;
5050
5080
  entityContract?: {
@@ -5067,11 +5097,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodEffects<z.Zod
5067
5097
  interval: string | number;
5068
5098
  description?: string | undefined;
5069
5099
  pages?: string[] | undefined;
5070
- priority?: number | undefined;
5100
+ emits?: string[] | undefined;
5071
5101
  guard?: SExpr | undefined;
5102
+ priority?: number | undefined;
5072
5103
  appliesTo?: string[] | undefined;
5073
5104
  pageIds?: string[] | undefined;
5074
- emits?: string[] | undefined;
5075
5105
  emitIds?: string[] | undefined;
5076
5106
  }[] | undefined;
5077
5107
  sourceBehavior?: {