@almadar/core 10.7.0 → 10.9.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,5 +1,5 @@
1
1
  import { E as Expression, S as SExpr } from './expression-BUIi9ezJ.js';
2
- import { T as TraitConfig, k as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, l as EventPayloadField, C as ConfigFieldDeclaration, m as ServiceDefinition, a as Trait } from './trait-BkW6nFHo.js';
2
+ import { T as TraitConfig, k as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, l as EventPayloadField, m as ConfigFieldDeclaration, n as ServiceDefinition, a as Trait } from './trait-CWjT0yBO.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -19522,7 +19522,6 @@ declare const PageRefObjectSchema: z.ZodObject<{
19522
19522
  ref: string;
19523
19523
  path?: string | undefined;
19524
19524
  from?: string | undefined;
19525
- linkedEntity?: string | undefined;
19526
19525
  traits?: (string | {
19527
19526
  name: string;
19528
19527
  scope: "instance" | "collection";
@@ -19677,11 +19676,11 @@ declare const PageRefObjectSchema: z.ZodObject<{
19677
19676
  events?: Record<string, string> | undefined;
19678
19677
  linkedEntity?: string | undefined;
19679
19678
  })[] | undefined;
19679
+ linkedEntity?: string | undefined;
19680
19680
  }, {
19681
19681
  ref: string;
19682
19682
  path?: string | undefined;
19683
19683
  from?: string | undefined;
19684
- linkedEntity?: string | undefined;
19685
19684
  traits?: (string | {
19686
19685
  name: string;
19687
19686
  scope: "instance" | "collection";
@@ -19836,6 +19835,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
19836
19835
  events?: Record<string, string> | undefined;
19837
19836
  linkedEntity?: string | undefined;
19838
19837
  })[] | undefined;
19838
+ linkedEntity?: string | undefined;
19839
19839
  }>;
19840
19840
  declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
19841
19841
  name: z.ZodString;
@@ -20728,7 +20728,6 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
20728
20728
  ref: string;
20729
20729
  path?: string | undefined;
20730
20730
  from?: string | undefined;
20731
- linkedEntity?: string | undefined;
20732
20731
  traits?: (string | {
20733
20732
  name: string;
20734
20733
  scope: "instance" | "collection";
@@ -20883,11 +20882,11 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
20883
20882
  events?: Record<string, string> | undefined;
20884
20883
  linkedEntity?: string | undefined;
20885
20884
  })[] | undefined;
20885
+ linkedEntity?: string | undefined;
20886
20886
  }, {
20887
20887
  ref: string;
20888
20888
  path?: string | undefined;
20889
20889
  from?: string | undefined;
20890
- linkedEntity?: string | undefined;
20891
20890
  traits?: (string | {
20892
20891
  name: string;
20893
20892
  scope: "instance" | "collection";
@@ -21042,6 +21041,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
21042
21041
  events?: Record<string, string> | undefined;
21043
21042
  linkedEntity?: string | undefined;
21044
21043
  })[] | undefined;
21044
+ linkedEntity?: string | undefined;
21045
21045
  }>]>;
21046
21046
  /**
21047
21047
  * Checks if a trait reference is an imported reference.
@@ -27308,7 +27308,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27308
27308
  ref: string;
27309
27309
  path?: string | undefined;
27310
27310
  from?: string | undefined;
27311
- linkedEntity?: string | undefined;
27312
27311
  traits?: (string | {
27313
27312
  name: string;
27314
27313
  scope: "instance" | "collection";
@@ -27463,11 +27462,11 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27463
27462
  events?: Record<string, string> | undefined;
27464
27463
  linkedEntity?: string | undefined;
27465
27464
  })[] | undefined;
27465
+ linkedEntity?: string | undefined;
27466
27466
  }, {
27467
27467
  ref: string;
27468
27468
  path?: string | undefined;
27469
27469
  from?: string | undefined;
27470
- linkedEntity?: string | undefined;
27471
27470
  traits?: (string | {
27472
27471
  name: string;
27473
27472
  scope: "instance" | "collection";
@@ -27622,6 +27621,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27622
27621
  events?: Record<string, string> | undefined;
27623
27622
  linkedEntity?: string | undefined;
27624
27623
  })[] | undefined;
27624
+ linkedEntity?: string | undefined;
27625
27625
  }>]>, "many">;
27626
27626
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
27627
27627
  event: z.ZodString;
@@ -28062,7 +28062,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28062
28062
  ref: string;
28063
28063
  path?: string | undefined;
28064
28064
  from?: string | undefined;
28065
- linkedEntity?: string | undefined;
28066
28065
  traits?: (string | {
28067
28066
  name: string;
28068
28067
  scope: "instance" | "collection";
@@ -28217,6 +28216,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28217
28216
  events?: Record<string, string> | undefined;
28218
28217
  linkedEntity?: string | undefined;
28219
28218
  })[] | undefined;
28219
+ linkedEntity?: string | undefined;
28220
28220
  })[];
28221
28221
  description?: string | undefined;
28222
28222
  visual_prompt?: string | undefined;
@@ -28976,7 +28976,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28976
28976
  ref: string;
28977
28977
  path?: string | undefined;
28978
28978
  from?: string | undefined;
28979
- linkedEntity?: string | undefined;
28980
28979
  traits?: (string | {
28981
28980
  name: string;
28982
28981
  scope: "instance" | "collection";
@@ -29131,6 +29130,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
29131
29130
  events?: Record<string, string> | undefined;
29132
29131
  linkedEntity?: string | undefined;
29133
29132
  })[] | undefined;
29133
+ linkedEntity?: string | undefined;
29134
29134
  })[];
29135
29135
  description?: string | undefined;
29136
29136
  visual_prompt?: string | undefined;
@@ -35565,7 +35565,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
35565
35565
  ref: string;
35566
35566
  path?: string | undefined;
35567
35567
  from?: string | undefined;
35568
- linkedEntity?: string | undefined;
35569
35568
  traits?: (string | {
35570
35569
  name: string;
35571
35570
  scope: "instance" | "collection";
@@ -35720,11 +35719,11 @@ declare const OrbitalSchema$1: z.ZodObject<{
35720
35719
  events?: Record<string, string> | undefined;
35721
35720
  linkedEntity?: string | undefined;
35722
35721
  })[] | undefined;
35722
+ linkedEntity?: string | undefined;
35723
35723
  }, {
35724
35724
  ref: string;
35725
35725
  path?: string | undefined;
35726
35726
  from?: string | undefined;
35727
- linkedEntity?: string | undefined;
35728
35727
  traits?: (string | {
35729
35728
  name: string;
35730
35729
  scope: "instance" | "collection";
@@ -35879,6 +35878,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
35879
35878
  events?: Record<string, string> | undefined;
35880
35879
  linkedEntity?: string | undefined;
35881
35880
  })[] | undefined;
35881
+ linkedEntity?: string | undefined;
35882
35882
  }>]>, "many">;
35883
35883
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
35884
35884
  event: z.ZodString;
@@ -36319,7 +36319,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
36319
36319
  ref: string;
36320
36320
  path?: string | undefined;
36321
36321
  from?: string | undefined;
36322
- linkedEntity?: string | undefined;
36323
36322
  traits?: (string | {
36324
36323
  name: string;
36325
36324
  scope: "instance" | "collection";
@@ -36474,6 +36473,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
36474
36473
  events?: Record<string, string> | undefined;
36475
36474
  linkedEntity?: string | undefined;
36476
36475
  })[] | undefined;
36476
+ linkedEntity?: string | undefined;
36477
36477
  })[];
36478
36478
  description?: string | undefined;
36479
36479
  visual_prompt?: string | undefined;
@@ -37233,7 +37233,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
37233
37233
  ref: string;
37234
37234
  path?: string | undefined;
37235
37235
  from?: string | undefined;
37236
- linkedEntity?: string | undefined;
37237
37236
  traits?: (string | {
37238
37237
  name: string;
37239
37238
  scope: "instance" | "collection";
@@ -37388,6 +37387,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
37388
37387
  events?: Record<string, string> | undefined;
37389
37388
  linkedEntity?: string | undefined;
37390
37389
  })[] | undefined;
37390
+ linkedEntity?: string | undefined;
37391
37391
  })[];
37392
37392
  description?: string | undefined;
37393
37393
  visual_prompt?: string | undefined;
@@ -43829,7 +43829,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43829
43829
  ref: string;
43830
43830
  path?: string | undefined;
43831
43831
  from?: string | undefined;
43832
- linkedEntity?: string | undefined;
43833
43832
  traits?: (string | {
43834
43833
  name: string;
43835
43834
  scope: "instance" | "collection";
@@ -43984,11 +43983,11 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43984
43983
  events?: Record<string, string> | undefined;
43985
43984
  linkedEntity?: string | undefined;
43986
43985
  })[] | undefined;
43986
+ linkedEntity?: string | undefined;
43987
43987
  }, {
43988
43988
  ref: string;
43989
43989
  path?: string | undefined;
43990
43990
  from?: string | undefined;
43991
- linkedEntity?: string | undefined;
43992
43991
  traits?: (string | {
43993
43992
  name: string;
43994
43993
  scope: "instance" | "collection";
@@ -44143,6 +44142,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44143
44142
  events?: Record<string, string> | undefined;
44144
44143
  linkedEntity?: string | undefined;
44145
44144
  })[] | undefined;
44145
+ linkedEntity?: string | undefined;
44146
44146
  }>]>, "many">;
44147
44147
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
44148
44148
  event: z.ZodString;
@@ -44583,7 +44583,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44583
44583
  ref: string;
44584
44584
  path?: string | undefined;
44585
44585
  from?: string | undefined;
44586
- linkedEntity?: string | undefined;
44587
44586
  traits?: (string | {
44588
44587
  name: string;
44589
44588
  scope: "instance" | "collection";
@@ -44738,6 +44737,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44738
44737
  events?: Record<string, string> | undefined;
44739
44738
  linkedEntity?: string | undefined;
44740
44739
  })[] | undefined;
44740
+ linkedEntity?: string | undefined;
44741
44741
  })[];
44742
44742
  description?: string | undefined;
44743
44743
  visual_prompt?: string | undefined;
@@ -45497,7 +45497,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45497
45497
  ref: string;
45498
45498
  path?: string | undefined;
45499
45499
  from?: string | undefined;
45500
- linkedEntity?: string | undefined;
45501
45500
  traits?: (string | {
45502
45501
  name: string;
45503
45502
  scope: "instance" | "collection";
@@ -45652,6 +45651,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45652
45651
  events?: Record<string, string> | undefined;
45653
45652
  linkedEntity?: string | undefined;
45654
45653
  })[] | undefined;
45654
+ linkedEntity?: string | undefined;
45655
45655
  })[];
45656
45656
  description?: string | undefined;
45657
45657
  visual_prompt?: string | undefined;
@@ -52430,7 +52430,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52430
52430
  ref: string;
52431
52431
  path?: string | undefined;
52432
52432
  from?: string | undefined;
52433
- linkedEntity?: string | undefined;
52434
52433
  traits?: (string | {
52435
52434
  name: string;
52436
52435
  scope: "instance" | "collection";
@@ -52585,11 +52584,11 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52585
52584
  events?: Record<string, string> | undefined;
52586
52585
  linkedEntity?: string | undefined;
52587
52586
  })[] | undefined;
52587
+ linkedEntity?: string | undefined;
52588
52588
  }, {
52589
52589
  ref: string;
52590
52590
  path?: string | undefined;
52591
52591
  from?: string | undefined;
52592
- linkedEntity?: string | undefined;
52593
52592
  traits?: (string | {
52594
52593
  name: string;
52595
52594
  scope: "instance" | "collection";
@@ -52744,6 +52743,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52744
52743
  events?: Record<string, string> | undefined;
52745
52744
  linkedEntity?: string | undefined;
52746
52745
  })[] | undefined;
52746
+ linkedEntity?: string | undefined;
52747
52747
  }>]>, "many">;
52748
52748
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
52749
52749
  event: z.ZodString;
@@ -53184,7 +53184,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53184
53184
  ref: string;
53185
53185
  path?: string | undefined;
53186
53186
  from?: string | undefined;
53187
- linkedEntity?: string | undefined;
53188
53187
  traits?: (string | {
53189
53188
  name: string;
53190
53189
  scope: "instance" | "collection";
@@ -53339,6 +53338,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53339
53338
  events?: Record<string, string> | undefined;
53340
53339
  linkedEntity?: string | undefined;
53341
53340
  })[] | undefined;
53341
+ linkedEntity?: string | undefined;
53342
53342
  })[];
53343
53343
  description?: string | undefined;
53344
53344
  visual_prompt?: string | undefined;
@@ -54098,7 +54098,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
54098
54098
  ref: string;
54099
54099
  path?: string | undefined;
54100
54100
  from?: string | undefined;
54101
- linkedEntity?: string | undefined;
54102
54101
  traits?: (string | {
54103
54102
  name: string;
54104
54103
  scope: "instance" | "collection";
@@ -54253,6 +54252,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
54253
54252
  events?: Record<string, string> | undefined;
54254
54253
  linkedEntity?: string | undefined;
54255
54254
  })[] | undefined;
54255
+ linkedEntity?: string | undefined;
54256
54256
  })[];
54257
54257
  description?: string | undefined;
54258
54258
  visual_prompt?: string | undefined;
@@ -55234,7 +55234,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55234
55234
  ref: string;
55235
55235
  path?: string | undefined;
55236
55236
  from?: string | undefined;
55237
- linkedEntity?: string | undefined;
55238
55237
  traits?: (string | {
55239
55238
  name: string;
55240
55239
  scope: "instance" | "collection";
@@ -55389,6 +55388,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55389
55388
  events?: Record<string, string> | undefined;
55390
55389
  linkedEntity?: string | undefined;
55391
55390
  })[] | undefined;
55391
+ linkedEntity?: string | undefined;
55392
55392
  })[];
55393
55393
  description?: string | undefined;
55394
55394
  visual_prompt?: string | undefined;
@@ -56250,7 +56250,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
56250
56250
  ref: string;
56251
56251
  path?: string | undefined;
56252
56252
  from?: string | undefined;
56253
- linkedEntity?: string | undefined;
56254
56253
  traits?: (string | {
56255
56254
  name: string;
56256
56255
  scope: "instance" | "collection";
@@ -56405,6 +56404,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
56405
56404
  events?: Record<string, string> | undefined;
56406
56405
  linkedEntity?: string | undefined;
56407
56406
  })[] | undefined;
56407
+ linkedEntity?: string | undefined;
56408
56408
  })[];
56409
56409
  description?: string | undefined;
56410
56410
  visual_prompt?: string | undefined;
@@ -57331,7 +57331,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57331
57331
  ref: string;
57332
57332
  path?: string | undefined;
57333
57333
  from?: string | undefined;
57334
- linkedEntity?: string | undefined;
57335
57334
  traits?: (string | {
57336
57335
  name: string;
57337
57336
  scope: "instance" | "collection";
@@ -57486,6 +57485,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57486
57485
  events?: Record<string, string> | undefined;
57487
57486
  linkedEntity?: string | undefined;
57488
57487
  })[] | undefined;
57488
+ linkedEntity?: string | undefined;
57489
57489
  })[];
57490
57490
  description?: string | undefined;
57491
57491
  visual_prompt?: string | undefined;
@@ -58347,7 +58347,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58347
58347
  ref: string;
58348
58348
  path?: string | undefined;
58349
58349
  from?: string | undefined;
58350
- linkedEntity?: string | undefined;
58351
58350
  traits?: (string | {
58352
58351
  name: string;
58353
58352
  scope: "instance" | "collection";
@@ -58502,6 +58501,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58502
58501
  events?: Record<string, string> | undefined;
58503
58502
  linkedEntity?: string | undefined;
58504
58503
  })[] | undefined;
58504
+ linkedEntity?: string | undefined;
58505
58505
  })[];
58506
58506
  description?: string | undefined;
58507
58507
  visual_prompt?: string | undefined;
@@ -1069,6 +1069,57 @@ declare const SemanticAssetRefSchema: z.ZodObject<{
1069
1069
  dimension?: "2d" | "3d" | undefined;
1070
1070
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1071
1071
  }>;
1072
+ /**
1073
+ * The single asset type: a `SemanticAssetRef` (role/dimension/animations/aspect/style)
1074
+ * WITH its resolved URL folded in. Used everywhere an asset is referenced — a lolo
1075
+ * board `assetManifest` (`Map string Asset`), every `@almadar/ui` game prop, the
1076
+ * asset-workflow's resolved/pool assets, and the inspector picker. Replaces the bare
1077
+ * `AssetUrl`-string asset field so the render metadata travels WITH the asset (no
1078
+ * pixel-dimension or filename heuristics needed to know sheet-vs-frame / 2d-vs-3d).
1079
+ */
1080
+ interface Asset extends SemanticAssetRef {
1081
+ /** The resolved asset URL. */
1082
+ url: AssetUrl;
1083
+ /** Optional display name (inspector picker). */
1084
+ name?: string;
1085
+ /** Optional thumbnail URL (inspector picker grid). */
1086
+ thumbnailUrl?: string;
1087
+ }
1088
+ declare const AssetSchema: z.ZodObject<{
1089
+ role: z.ZodEnum<["player", "enemy", "npc", "item", "tile", "projectile", "effect", "ui", "decoration", "vehicle"]>;
1090
+ category: z.ZodString;
1091
+ animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1092
+ style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
1093
+ variant: z.ZodOptional<z.ZodString>;
1094
+ dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
1095
+ aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
1096
+ } & {
1097
+ url: z.ZodString;
1098
+ name: z.ZodOptional<z.ZodString>;
1099
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ url: string;
1102
+ role: "player" | "enemy" | "npc" | "item" | "tile" | "projectile" | "effect" | "ui" | "decoration" | "vehicle";
1103
+ category: string;
1104
+ name?: string | undefined;
1105
+ animations?: string[] | undefined;
1106
+ style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1107
+ variant?: string | undefined;
1108
+ dimension?: "2d" | "3d" | undefined;
1109
+ aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1110
+ thumbnailUrl?: string | undefined;
1111
+ }, {
1112
+ url: string;
1113
+ role: "player" | "enemy" | "npc" | "item" | "tile" | "projectile" | "effect" | "ui" | "decoration" | "vehicle";
1114
+ category: string;
1115
+ name?: string | undefined;
1116
+ animations?: string[] | undefined;
1117
+ style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
1118
+ variant?: string | undefined;
1119
+ dimension?: "2d" | "3d" | undefined;
1120
+ aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
1121
+ thumbnailUrl?: string | undefined;
1122
+ }>;
1072
1123
  /**
1073
1124
  * Result of resolving a SemanticAssetRef to actual asset paths
1074
1125
  */
@@ -2857,6 +2908,27 @@ type TraitConfig = TraitConfigObject;
2857
2908
  /** Zod schema for TraitConfig. Recursive via z.lazy to allow nested structures. */
2858
2909
  declare const TraitConfigValueSchema: z.ZodType<TraitConfigValue>;
2859
2910
  declare const TraitConfigSchema: z.ZodType<TraitConfig>;
2911
+ /**
2912
+ * A single entry in a call-site `config { }` override block. Either a plain
2913
+ * wiring value (`TraitConfigValue` — string, number, bool, array, object) or
2914
+ * a fully-annotated re-declaration (`ConfigFieldDeclaration` — carries `type`,
2915
+ * optional `label`/`description`/`synonyms`/`tier`). Disambiguated at runtime
2916
+ * by `isCallSiteConfigDeclaration`: the presence of a `"type"` string key
2917
+ * marks the annotated form.
2918
+ *
2919
+ * The `.orb` compiler emits plain values for wiring entries and
2920
+ * `{ type, default, ... }` objects for annotated entries. Consumers that only
2921
+ * need the value (e.g. `apply-params-to-orb.ts`) read `entry` directly for
2922
+ * primitives or `entry.default` for the declaration form.
2923
+ */
2924
+ type CallSiteConfigEntry = TraitConfigValue | ConfigFieldDeclaration;
2925
+ /** Typed map of call-site config entries (one per knob). */
2926
+ type CallSiteConfig = Readonly<Record<string, CallSiteConfigEntry>>;
2927
+ /**
2928
+ * Type guard: returns `true` when `entry` is an annotated `ConfigFieldDeclaration`
2929
+ * (has a `"type"` string key) rather than a plain wiring value.
2930
+ */
2931
+ declare function isCallSiteConfigDeclaration(entry: CallSiteConfigEntry): entry is ConfigFieldDeclaration;
2860
2932
  /**
2861
2933
  * Per-field entry in a trait's DECLARED `config { }` schema as it lives
2862
2934
  * on the `.orb` JSON: `{ type: "string" | "[string]" | "object" | ...,
@@ -3422,7 +3494,17 @@ interface TraitReference {
3422
3494
  * fields. Applied during inline substitution alongside `linkedEntity`.
3423
3495
  */
3424
3496
  fields?: Record<string, string>;
3425
- config?: TraitConfig;
3497
+ /**
3498
+ * Call-site config overrides. Each entry is either a plain wiring value
3499
+ * (`TraitConfigValue`) or a fully-annotated re-declaration
3500
+ * (`ConfigFieldDeclaration` with `type`, optional `label`/`description`/
3501
+ * `synonyms`/`tier`). Use `isCallSiteConfigDeclaration` to discriminate.
3502
+ *
3503
+ * Plain wiring (existing callers): `config: { icon: "star", count: 5 }`.
3504
+ * Annotated (new): `config: { icon: { type: "string", default: "star",
3505
+ * label: "Icon", tier: "presentation" } }`.
3506
+ */
3507
+ config?: CallSiteConfig;
3426
3508
  appliesTo?: string[];
3427
3509
  /**
3428
3510
  * Phase F.7: replace the imported trait's `listens` array with the
@@ -3473,7 +3555,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
3473
3555
  name: z.ZodOptional<z.ZodString>;
3474
3556
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3475
3557
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3476
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
3558
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
3477
3559
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3478
3560
  listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3479
3561
  emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
@@ -3482,49 +3564,49 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
3482
3564
  ref: string;
3483
3565
  name?: string | undefined;
3484
3566
  fields?: Record<string, string> | undefined;
3485
- config?: TraitConfigObject | undefined;
3567
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3486
3568
  events?: Record<string, string> | undefined;
3487
3569
  from?: string | undefined;
3488
3570
  effects?: Record<string, unknown[]> | undefined;
3489
3571
  listens?: unknown[] | undefined;
3490
- linkedEntity?: string | undefined;
3491
3572
  appliesTo?: string[] | undefined;
3573
+ linkedEntity?: string | undefined;
3492
3574
  emitsScope?: "internal" | "external" | undefined;
3493
3575
  }, {
3494
3576
  ref: string;
3495
3577
  name?: string | undefined;
3496
3578
  fields?: Record<string, string> | undefined;
3497
- config?: TraitConfigObject | undefined;
3579
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3498
3580
  events?: Record<string, string> | undefined;
3499
3581
  from?: string | undefined;
3500
3582
  effects?: Record<string, unknown[]> | undefined;
3501
3583
  listens?: unknown[] | undefined;
3502
- linkedEntity?: string | undefined;
3503
3584
  appliesTo?: string[] | undefined;
3585
+ linkedEntity?: string | undefined;
3504
3586
  emitsScope?: "internal" | "external" | undefined;
3505
3587
  }>, {
3506
3588
  ref: string;
3507
3589
  name?: string | undefined;
3508
3590
  fields?: Record<string, string> | undefined;
3509
- config?: TraitConfigObject | undefined;
3591
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3510
3592
  events?: Record<string, string> | undefined;
3511
3593
  from?: string | undefined;
3512
3594
  effects?: Record<string, unknown[]> | undefined;
3513
3595
  listens?: unknown[] | undefined;
3514
- linkedEntity?: string | undefined;
3515
3596
  appliesTo?: string[] | undefined;
3597
+ linkedEntity?: string | undefined;
3516
3598
  emitsScope?: "internal" | "external" | undefined;
3517
3599
  }, {
3518
3600
  ref: string;
3519
3601
  name?: string | undefined;
3520
3602
  fields?: Record<string, string> | undefined;
3521
- config?: TraitConfigObject | undefined;
3603
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
3522
3604
  events?: Record<string, string> | undefined;
3523
3605
  from?: string | undefined;
3524
3606
  effects?: Record<string, unknown[]> | undefined;
3525
3607
  listens?: unknown[] | undefined;
3526
- linkedEntity?: string | undefined;
3527
3608
  appliesTo?: string[] | undefined;
3609
+ linkedEntity?: string | undefined;
3528
3610
  emitsScope?: "internal" | "external" | undefined;
3529
3611
  }>;
3530
3612
  /**
@@ -3538,7 +3620,7 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
3538
3620
  */
3539
3621
  type TraitRef = string | {
3540
3622
  ref: string;
3541
- config?: TraitConfig;
3623
+ config?: CallSiteConfig;
3542
3624
  linkedEntity?: string;
3543
3625
  name?: string;
3544
3626
  events?: Record<string, string>;
@@ -5448,7 +5530,7 @@ declare function getTraitName(traitRef: TraitRef): string;
5448
5530
  * getTraitConfig({ name: 'MyTrait' }); // returns undefined
5449
5531
  * getTraitConfig({ ref: 'MyTrait', config: { option: 'value' } }); // returns config object
5450
5532
  */
5451
- declare function getTraitConfig(traitRef: TraitRef): TraitConfig | undefined;
5533
+ declare function getTraitConfig(traitRef: TraitRef): CallSiteConfig | undefined;
5452
5534
  /**
5453
5535
  * Normalizes a trait reference to object form.
5454
5536
  *
@@ -5465,7 +5547,7 @@ declare function getTraitConfig(traitRef: TraitRef): TraitConfig | undefined;
5465
5547
  */
5466
5548
  declare function normalizeTraitRef(traitRef: TraitRef): {
5467
5549
  ref: string;
5468
- config?: TraitConfig;
5550
+ config?: CallSiteConfig;
5469
5551
  };
5470
5552
  type TraitInput = z.input<typeof TraitSchema>;
5471
5553
  type TraitReferenceInput = z.input<typeof TraitReferenceSchema>;
@@ -6326,4 +6408,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
6326
6408
  } | undefined;
6327
6409
  }>]>;
6328
6410
 
6329
- export { type DoEffect as $, ASSET_ASPECTS as A, AssetCatalogSchema as B, type ConfigFieldDeclaration as C, type AssetDimension as D, type Effect as E, AssetDimensionSchema as F, type AssetMap as G, type AssetMapInput as H, AssetMapSchema as I, type AssetMapping as J, type AssetMappingInput as K, AssetMappingSchema as L, type AssetUrl as M, type AtomicEffect as N, type CallServiceConfig as O, type CallServiceEffect as P, type CheckpointLoadEffect as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, type CheckpointSaveEffect as V, ConfigFieldDeclarationSchema as W, type DeclaredTraitConfig as X, DeclaredTraitConfigSchema as Y, type DerefEffect as Z, type DespawnEffect as _, type Trait as a, type RefEffect as a$, ENTITY_ROLES as a0, type EffectInput as a1, EffectSchema as a2, type EmitConfig as a3, type EmitEffect as a4, type EntityData as a5, type EntityFieldContract as a6, EntityFieldContractSchema as a7, type EntityFieldInput as a8, EntityFieldSchema as a9, GAME_TYPES as aA, type GameType as aB, GameTypeSchema as aC, type Guard as aD, type GuardInput as aE, GuardSchema as aF, type ListenSource as aG, ListenSourceSchema as aH, type LogEffect as aI, type McpServiceDef as aJ, McpServiceDefSchema as aK, type NavigateEffect as aL, type NnConfig as aM, type NnLayer as aN, type NotifyEffect as aO, type OrbitalEntity as aP, type OrbitalEntityInput as aQ, OrbitalEntitySchema as aR, type OrbitalTraitRef as aS, OrbitalTraitRefSchema as aT, type OsEffect as aU, type PayloadField as aV, PayloadFieldSchema as aW, type PersistData as aX, type PersistEffect as aY, type PersistEmitConfig as aZ, type PresentationType as a_, EntityPersistenceSchema as aa, type EntityRole as ab, EntityRoleSchema as ac, EntitySchema as ad, type EntityWith as ae, type EnumEntityField as af, type EvaluateConfig as ag, type EvaluateEffect as ah, type Event as ai, type EventInput as aj, EventPayloadFieldSchema as ak, EventSchema as al, type EventScope as am, EventScopeSchema as an, type FetchEffect as ao, type FetchOptions as ap, type FetchResult as aq, type Field as ar, type FieldFormat as as, FieldFormatSchema as at, FieldSchema as au, type FieldType as av, FieldTypeSchema as aw, type FieldValue as ax, type ForwardConfig as ay, type ForwardEffect as az, type RenderUIEffect as b, type Transition as b$, type RelationConfig as b0, RelationConfigSchema as b1, type RelationEntityField as b2, type RenderItemLambda as b3, type RenderUIConfig as b4, type RenderUINode as b5, type RequiredField as b6, RequiredFieldSchema as b7, type ResolvedAsset as b8, type ResolvedAssetInput as b9, type StateInput as bA, type StateMachine as bB, type StateMachineInput as bC, StateMachineSchema as bD, StateSchema as bE, type SwapEffect as bF, type TrainConfig as bG, type TrainEffect as bH, type TraitCategory as bI, TraitCategorySchema as bJ, TraitConfigSchema as bK, type TraitConfigValue as bL, TraitConfigValueSchema as bM, type TraitDataEntity as bN, TraitDataEntitySchema as bO, type TraitEntityField as bP, TraitEntityFieldSchema as bQ, TraitEventContractSchema as bR, TraitEventListenerSchema as bS, type TraitInput as bT, TraitRefSchema as bU, type TraitReferenceInput as bV, TraitReferenceSchema as bW, TraitSchema as bX, type TraitTick as bY, TraitTickSchema as bZ, type TraitUIBinding as b_, ResolvedAssetSchema as ba, type ResolvedPatternProps as bb, type RestAuthConfig as bc, RestAuthConfigSchema as bd, type RestServiceDef as be, RestServiceDefSchema as bf, SERVICE_TYPES as bg, type ScalarEntityField as bh, type SemanticAssetRef as bi, type SemanticAssetRefInput as bj, SemanticAssetRefSchema as bk, ServiceDefinitionSchema as bl, type ServiceParams as bm, type ServiceParamsValue as bn, type ServiceRefObject as bo, ServiceRefObjectSchema as bp, ServiceRefSchema as bq, ServiceRefStringSchema as br, type ServiceType as bs, ServiceTypeSchema as bt, type SetEffect as bu, type SocketEvents as bv, SocketEventsSchema as bw, type SocketServiceDef as bx, SocketServiceDefSchema as by, type SpawnEffect as bz, type TraitEventContract as c, type TransitionInput as c0, TransitionSchema as c1, type TypedEffect as c2, UISlotSchema as c3, UI_SLOTS as c4, VISUAL_STYLES as c5, type VisualStyle as c6, VisualStyleSchema as c7, type WatchEffect as c8, type WatchOptions as c9, normalizeTraitRef as cA, notify as cB, parseAssetKey as cC, parseServiceRef as cD, persist as cE, ref as cF, renderUI as cG, set as cH, spawn as cI, swap as cJ, validateAssetAnimations as cK, watch as cL, type TraitScope as cM, atomic as ca, callService as cb, createAssetKey as cc, deref as cd, deriveCollection as ce, despawn as cf, doEffects as cg, emit as ch, findService as ci, getDefaultAnimationsForRole as cj, getServiceNames as ck, getTraitConfig as cl, getTraitName as cm, hasService as cn, isCircuitEvent as co, isEffect as cp, isInlineTrait as cq, isMcpService as cr, isRestService as cs, isRuntimeEntity as ct, isSExprEffect as cu, isServiceReference as cv, isServiceReferenceObject as cw, isSingletonEntity as cx, isSocketService as cy, navigate as cz, type Entity as d, type TraitEventListener as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type TraitConfigObject as k, type EventPayloadField as l, type ServiceDefinition as m, type State as n, ASSET_DIMENSIONS as o, type AgentEffect as p, type AnimationDef as q, type AnimationDefInput as r, AnimationDefSchema as s, type ArrayEntityField as t, type AssetAspect as u, AssetAspectSchema as v, type AssetCatalog as w, type AssetCatalogEntry as x, type AssetCatalogEntryInput as y, AssetCatalogEntrySchema as z };
6411
+ export { type DeclaredTraitConfig as $, ASSET_ASPECTS as A, type AssetCatalogEntryInput as B, type CallSiteConfig as C, AssetCatalogEntrySchema as D, type Effect as E, AssetCatalogSchema as F, type AssetDimension as G, AssetDimensionSchema as H, type AssetMap as I, type AssetMapInput as J, AssetMapSchema as K, type AssetMapping as L, type AssetMappingInput as M, AssetMappingSchema as N, AssetSchema as O, type AssetUrl as P, type AtomicEffect as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, type CallServiceConfig as V, type CallServiceEffect as W, type CallSiteConfigEntry as X, type CheckpointLoadEffect as Y, type CheckpointSaveEffect as Z, ConfigFieldDeclarationSchema as _, type Trait as a, type PersistData as a$, DeclaredTraitConfigSchema as a0, type DerefEffect as a1, type DespawnEffect as a2, type DoEffect as a3, ENTITY_ROLES as a4, type EffectInput as a5, EffectSchema as a6, type EmitConfig as a7, type EmitEffect as a8, type EntityData as a9, FieldTypeSchema as aA, type FieldValue as aB, type ForwardConfig as aC, type ForwardEffect as aD, GAME_TYPES as aE, type GameType as aF, GameTypeSchema as aG, type Guard as aH, type GuardInput as aI, GuardSchema as aJ, type ListenSource as aK, ListenSourceSchema as aL, type LogEffect as aM, type McpServiceDef as aN, McpServiceDefSchema as aO, type NavigateEffect as aP, type NnConfig as aQ, type NnLayer as aR, type NotifyEffect as aS, type OrbitalEntity as aT, type OrbitalEntityInput as aU, OrbitalEntitySchema as aV, type OrbitalTraitRef as aW, OrbitalTraitRefSchema as aX, type OsEffect as aY, type PayloadField as aZ, PayloadFieldSchema as a_, type EntityFieldContract as aa, EntityFieldContractSchema as ab, type EntityFieldInput as ac, EntityFieldSchema as ad, EntityPersistenceSchema as ae, type EntityRole as af, EntityRoleSchema as ag, EntitySchema as ah, type EntityWith as ai, type EnumEntityField as aj, type EvaluateConfig as ak, type EvaluateEffect as al, type Event as am, type EventInput as an, EventPayloadFieldSchema as ao, EventSchema as ap, type EventScope as aq, EventScopeSchema as ar, type FetchEffect as as, type FetchOptions as at, type FetchResult as au, type Field as av, type FieldFormat as aw, FieldFormatSchema as ax, FieldSchema as ay, type FieldType as az, type RenderUIEffect as b, TraitSchema as b$, type PersistEffect as b0, type PersistEmitConfig as b1, type PresentationType as b2, type RefEffect as b3, type RelationConfig as b4, RelationConfigSchema as b5, type RelationEntityField as b6, type RenderItemLambda as b7, type RenderUIConfig as b8, type RenderUINode as b9, SocketEventsSchema as bA, type SocketServiceDef as bB, SocketServiceDefSchema as bC, type SpawnEffect as bD, type StateInput as bE, type StateMachine as bF, type StateMachineInput as bG, StateMachineSchema as bH, StateSchema as bI, type SwapEffect as bJ, type TrainConfig as bK, type TrainEffect as bL, type TraitCategory as bM, TraitCategorySchema as bN, TraitConfigSchema as bO, type TraitConfigValue as bP, TraitConfigValueSchema as bQ, type TraitDataEntity as bR, TraitDataEntitySchema as bS, type TraitEntityField as bT, TraitEntityFieldSchema as bU, TraitEventContractSchema as bV, TraitEventListenerSchema as bW, type TraitInput as bX, TraitRefSchema as bY, type TraitReferenceInput as bZ, TraitReferenceSchema as b_, type RequiredField as ba, RequiredFieldSchema as bb, type ResolvedAsset as bc, type ResolvedAssetInput as bd, ResolvedAssetSchema as be, type ResolvedPatternProps as bf, type RestAuthConfig as bg, RestAuthConfigSchema as bh, type RestServiceDef as bi, RestServiceDefSchema as bj, SERVICE_TYPES as bk, type ScalarEntityField as bl, type SemanticAssetRef as bm, type SemanticAssetRefInput as bn, SemanticAssetRefSchema as bo, ServiceDefinitionSchema as bp, type ServiceParams as bq, type ServiceParamsValue as br, type ServiceRefObject as bs, ServiceRefObjectSchema as bt, ServiceRefSchema as bu, ServiceRefStringSchema as bv, type ServiceType as bw, ServiceTypeSchema as bx, type SetEffect as by, type SocketEvents as bz, type TraitEventContract as c, type TraitTick as c0, TraitTickSchema as c1, type TraitUIBinding as c2, type Transition as c3, type TransitionInput as c4, TransitionSchema as c5, type TypedEffect as c6, UISlotSchema as c7, UI_SLOTS as c8, VISUAL_STYLES as c9, isServiceReference as cA, isServiceReferenceObject as cB, isSingletonEntity as cC, isSocketService as cD, navigate as cE, normalizeTraitRef as cF, notify as cG, parseAssetKey as cH, parseServiceRef as cI, persist as cJ, ref as cK, renderUI as cL, set as cM, spawn as cN, swap as cO, validateAssetAnimations as cP, watch as cQ, type TraitScope as cR, type VisualStyle as ca, VisualStyleSchema as cb, type WatchEffect as cc, type WatchOptions as cd, atomic as ce, callService as cf, createAssetKey as cg, deref as ch, deriveCollection as ci, despawn as cj, doEffects as ck, emit as cl, findService as cm, getDefaultAnimationsForRole as cn, getServiceNames as co, getTraitConfig as cp, getTraitName as cq, hasService as cr, isCallSiteConfigDeclaration as cs, isCircuitEvent as ct, isEffect as cu, isInlineTrait as cv, isMcpService as cw, isRestService as cx, isRuntimeEntity as cy, isSExprEffect as cz, type Entity as d, type TraitEventListener as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type TraitConfigObject as k, type EventPayloadField as l, type ConfigFieldDeclaration as m, type ServiceDefinition as n, type State as o, ASSET_DIMENSIONS as p, type AgentEffect as q, type AnimationDef as r, type AnimationDefInput as s, AnimationDefSchema as t, type ArrayEntityField as u, type Asset as v, type AssetAspect as w, AssetAspectSchema as x, type AssetCatalog as y, type AssetCatalogEntry as z };