@almadar/core 10.12.0 → 10.13.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, l as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, m as EventPayloadField, n as ConfigFieldDeclaration, o as ServiceDefinition, a as Trait } from './trait-DecHZfpm.js';
2
+ import { T as TraitConfig, l as TraitConfigObject, S as ServiceRef, d as Entity, f as EntityField, g as EntityPersistence, i as TraitRef, m as EventPayloadField, n as ConfigFieldDeclaration, o as ServiceDefinition, a as Trait } from './trait-Bwhkhv3V.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -1001,29 +1001,137 @@ declare const GAME_TYPES: readonly ["platformer", "roguelike", "top-down", "puzz
1001
1001
  type GameType = (typeof GAME_TYPES)[number];
1002
1002
  declare const GameTypeSchema: z.ZodEnum<["platformer", "roguelike", "top-down", "puzzle", "racing", "card", "board", "shooter", "rpg"]>;
1003
1003
  /**
1004
- * Animation definition for sprites
1004
+ * Animation names matching a sprite sheet's row layout. Canonical home for
1005
+ * this vocabulary — `@almadar/ui`'s `spriteAnimationTypes.ts` re-exports it
1006
+ * rather than redeclaring, so board `.lolo` config and the render library
1007
+ * agree on one enum.
1008
+ */
1009
+ declare const ANIMATION_NAMES: readonly ["idle", "walk", "attack", "hit", "death"];
1010
+ type AnimationName = (typeof ANIMATION_NAMES)[number];
1011
+ declare const AnimationNameSchema: z.ZodEnum<["idle", "walk", "attack", "hit", "death"]>;
1012
+ /** Sheet file directions (physical PNG files a sprite sheet ships as). */
1013
+ declare const SPRITE_DIRECTIONS: readonly ["se", "sw"];
1014
+ type SpriteDirection = (typeof SPRITE_DIRECTIONS)[number];
1015
+ declare const SpriteDirectionSchema: z.ZodEnum<["se", "sw"]>;
1016
+ /**
1017
+ * Definition for a single named animation within a sprite sheet: which row
1018
+ * it occupies, how many frames it has, and its playback rate. This is the
1019
+ * shape actually consumed by `@almadar/ui`'s sprite-sheet renderer
1020
+ * (`spriteAnimation.ts`'s `frameRect`/`getCurrentFrameFromDef`) — moved here
1021
+ * verbatim rather than reconciled with a differently-shaped guess, since
1022
+ * `@almadar/ui`'s version is the one with real production consumers.
1005
1023
  */
1006
1024
  interface AnimationDef {
1007
- /** Frame indices or file names */
1008
- frames: number[] | string[];
1009
- /** Frames per second */
1010
- fps: number;
1011
- /** Whether animation loops */
1025
+ /** Row index in the sprite sheet (0-based; each animation occupies one row). */
1026
+ row: number;
1027
+ /** Number of frames in this animation. */
1028
+ frames: number;
1029
+ /** Frames per second. */
1030
+ frameRate: number;
1031
+ /** Whether the animation loops. */
1012
1032
  loop: boolean;
1013
1033
  }
1014
1034
  declare const AnimationDefSchema: z.ZodObject<{
1015
- frames: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodString, "many">]>;
1016
- fps: z.ZodNumber;
1035
+ row: z.ZodNumber;
1036
+ frames: z.ZodNumber;
1037
+ frameRate: z.ZodNumber;
1017
1038
  loop: z.ZodBoolean;
1018
1039
  }, "strip", z.ZodTypeAny, {
1019
- frames: string[] | number[];
1020
- fps: number;
1040
+ row: number;
1041
+ frames: number;
1042
+ frameRate: number;
1021
1043
  loop: boolean;
1022
1044
  }, {
1023
- frames: string[] | number[];
1024
- fps: number;
1045
+ row: number;
1046
+ frames: number;
1047
+ frameRate: number;
1025
1048
  loop: boolean;
1026
1049
  }>;
1050
+ /**
1051
+ * Parsed sprite-sheet atlas JSON — the contract a `spriteSheet`-role `Asset.url`
1052
+ * resolves to when fetched (see `Asset.url` usage in `@almadar/ui`'s
1053
+ * `useUnitSpriteAtlas`). A unit's `sprite?: Asset` stays the static single-pose
1054
+ * image; `spriteSheet?: Asset` is a SEPARATE reference whose URL points at a
1055
+ * `SpriteSheetAtlas`-shaped JSON manifest (e.g. `.../guardian-sprite-sheet.json`),
1056
+ * not a PNG. Frame-cutting geometry lives here, not inlined onto `Asset` — an
1057
+ * `Asset` traveling through `render-ui` every tick stays small.
1058
+ */
1059
+ interface SpriteSheetAtlas {
1060
+ /** Unit archetype key. */
1061
+ unit?: string;
1062
+ /** Visual type key. */
1063
+ type?: string;
1064
+ /** Width of a single frame in pixels. */
1065
+ frameWidth: number;
1066
+ /** Height of a single frame in pixels. */
1067
+ frameHeight: number;
1068
+ /** Number of columns (frames per row). */
1069
+ columns: number;
1070
+ /** Number of rows (animations). */
1071
+ rows: number;
1072
+ /** Directions present as physical PNG files. */
1073
+ directions: SpriteDirection[];
1074
+ /** Relative PNG sheet paths per direction. */
1075
+ sheets: Partial<Record<SpriteDirection, string>>;
1076
+ /** Animation row layout keyed by animation name. */
1077
+ animations: Partial<Record<AnimationName, AnimationDef>>;
1078
+ }
1079
+ declare const SpriteSheetAtlasSchema: z.ZodObject<{
1080
+ unit: z.ZodOptional<z.ZodString>;
1081
+ type: z.ZodOptional<z.ZodString>;
1082
+ frameWidth: z.ZodNumber;
1083
+ frameHeight: z.ZodNumber;
1084
+ columns: z.ZodNumber;
1085
+ rows: z.ZodNumber;
1086
+ directions: z.ZodArray<z.ZodEnum<["se", "sw"]>, "many">;
1087
+ sheets: z.ZodRecord<z.ZodEnum<["se", "sw"]>, z.ZodString>;
1088
+ animations: z.ZodRecord<z.ZodEnum<["idle", "walk", "attack", "hit", "death"]>, z.ZodObject<{
1089
+ row: z.ZodNumber;
1090
+ frames: z.ZodNumber;
1091
+ frameRate: z.ZodNumber;
1092
+ loop: z.ZodBoolean;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ row: number;
1095
+ frames: number;
1096
+ frameRate: number;
1097
+ loop: boolean;
1098
+ }, {
1099
+ row: number;
1100
+ frames: number;
1101
+ frameRate: number;
1102
+ loop: boolean;
1103
+ }>>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ frameWidth: number;
1106
+ frameHeight: number;
1107
+ columns: number;
1108
+ rows: number;
1109
+ directions: ("se" | "sw")[];
1110
+ sheets: Partial<Record<"se" | "sw", string>>;
1111
+ animations: Partial<Record<"idle" | "walk" | "attack" | "hit" | "death", {
1112
+ row: number;
1113
+ frames: number;
1114
+ frameRate: number;
1115
+ loop: boolean;
1116
+ }>>;
1117
+ type?: string | undefined;
1118
+ unit?: string | undefined;
1119
+ }, {
1120
+ frameWidth: number;
1121
+ frameHeight: number;
1122
+ columns: number;
1123
+ rows: number;
1124
+ directions: ("se" | "sw")[];
1125
+ sheets: Partial<Record<"se" | "sw", string>>;
1126
+ animations: Partial<Record<"idle" | "walk" | "attack" | "hit" | "death", {
1127
+ row: number;
1128
+ frames: number;
1129
+ frameRate: number;
1130
+ loop: boolean;
1131
+ }>>;
1132
+ type?: string | undefined;
1133
+ unit?: string | undefined;
1134
+ }>;
1027
1135
  /**
1028
1136
  * Semantic reference to an asset (not a hardcoded path).
1029
1137
  * Resolved to actual paths at compile time via asset maps.
@@ -1144,24 +1252,28 @@ declare const ResolvedAssetSchema: z.ZodObject<{
1144
1252
  tileSize: z.ZodOptional<z.ZodNumber>;
1145
1253
  files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1146
1254
  animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1147
- frames: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodString, "many">]>;
1148
- fps: z.ZodNumber;
1255
+ row: z.ZodNumber;
1256
+ frames: z.ZodNumber;
1257
+ frameRate: z.ZodNumber;
1149
1258
  loop: z.ZodBoolean;
1150
1259
  }, "strip", z.ZodTypeAny, {
1151
- frames: string[] | number[];
1152
- fps: number;
1260
+ row: number;
1261
+ frames: number;
1262
+ frameRate: number;
1153
1263
  loop: boolean;
1154
1264
  }, {
1155
- frames: string[] | number[];
1156
- fps: number;
1265
+ row: number;
1266
+ frames: number;
1267
+ frameRate: number;
1157
1268
  loop: boolean;
1158
1269
  }>>>;
1159
1270
  }, "strip", z.ZodTypeAny, {
1160
1271
  path: string;
1161
1272
  basePath: string;
1162
1273
  animations?: Record<string, {
1163
- frames: string[] | number[];
1164
- fps: number;
1274
+ row: number;
1275
+ frames: number;
1276
+ frameRate: number;
1165
1277
  loop: boolean;
1166
1278
  }> | undefined;
1167
1279
  tiles?: number[] | undefined;
@@ -1171,8 +1283,9 @@ declare const ResolvedAssetSchema: z.ZodObject<{
1171
1283
  path: string;
1172
1284
  basePath: string;
1173
1285
  animations?: Record<string, {
1174
- frames: string[] | number[];
1175
- fps: number;
1286
+ row: number;
1287
+ frames: number;
1288
+ frameRate: number;
1176
1289
  loop: boolean;
1177
1290
  }> | undefined;
1178
1291
  tiles?: number[] | undefined;
@@ -1200,23 +1313,27 @@ declare const AssetMappingSchema: z.ZodObject<{
1200
1313
  tileSize: z.ZodOptional<z.ZodNumber>;
1201
1314
  files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1202
1315
  animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1203
- frames: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodString, "many">]>;
1204
- fps: z.ZodNumber;
1316
+ row: z.ZodNumber;
1317
+ frames: z.ZodNumber;
1318
+ frameRate: z.ZodNumber;
1205
1319
  loop: z.ZodBoolean;
1206
1320
  }, "strip", z.ZodTypeAny, {
1207
- frames: string[] | number[];
1208
- fps: number;
1321
+ row: number;
1322
+ frames: number;
1323
+ frameRate: number;
1209
1324
  loop: boolean;
1210
1325
  }, {
1211
- frames: string[] | number[];
1212
- fps: number;
1326
+ row: number;
1327
+ frames: number;
1328
+ frameRate: number;
1213
1329
  loop: boolean;
1214
1330
  }>>>;
1215
1331
  }, "strip", z.ZodTypeAny, {
1216
1332
  path: string;
1217
1333
  animations?: Record<string, {
1218
- frames: string[] | number[];
1219
- fps: number;
1334
+ row: number;
1335
+ frames: number;
1336
+ frameRate: number;
1220
1337
  loop: boolean;
1221
1338
  }> | undefined;
1222
1339
  tiles?: number[] | undefined;
@@ -1225,8 +1342,9 @@ declare const AssetMappingSchema: z.ZodObject<{
1225
1342
  }, {
1226
1343
  path: string;
1227
1344
  animations?: Record<string, {
1228
- frames: string[] | number[];
1229
- fps: number;
1345
+ row: number;
1346
+ frames: number;
1347
+ frameRate: number;
1230
1348
  loop: boolean;
1231
1349
  }> | undefined;
1232
1350
  tiles?: number[] | undefined;
@@ -1257,23 +1375,27 @@ declare const AssetMapSchema: z.ZodObject<{
1257
1375
  tileSize: z.ZodOptional<z.ZodNumber>;
1258
1376
  files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1259
1377
  animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1260
- frames: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodString, "many">]>;
1261
- fps: z.ZodNumber;
1378
+ row: z.ZodNumber;
1379
+ frames: z.ZodNumber;
1380
+ frameRate: z.ZodNumber;
1262
1381
  loop: z.ZodBoolean;
1263
1382
  }, "strip", z.ZodTypeAny, {
1264
- frames: string[] | number[];
1265
- fps: number;
1383
+ row: number;
1384
+ frames: number;
1385
+ frameRate: number;
1266
1386
  loop: boolean;
1267
1387
  }, {
1268
- frames: string[] | number[];
1269
- fps: number;
1388
+ row: number;
1389
+ frames: number;
1390
+ frameRate: number;
1270
1391
  loop: boolean;
1271
1392
  }>>>;
1272
1393
  }, "strip", z.ZodTypeAny, {
1273
1394
  path: string;
1274
1395
  animations?: Record<string, {
1275
- frames: string[] | number[];
1276
- fps: number;
1396
+ row: number;
1397
+ frames: number;
1398
+ frameRate: number;
1277
1399
  loop: boolean;
1278
1400
  }> | undefined;
1279
1401
  tiles?: number[] | undefined;
@@ -1282,8 +1404,9 @@ declare const AssetMapSchema: z.ZodObject<{
1282
1404
  }, {
1283
1405
  path: string;
1284
1406
  animations?: Record<string, {
1285
- frames: string[] | number[];
1286
- fps: number;
1407
+ row: number;
1408
+ frames: number;
1409
+ frameRate: number;
1287
1410
  loop: boolean;
1288
1411
  }> | undefined;
1289
1412
  tiles?: number[] | undefined;
@@ -1297,8 +1420,9 @@ declare const AssetMapSchema: z.ZodObject<{
1297
1420
  mappings: Record<string, {
1298
1421
  path: string;
1299
1422
  animations?: Record<string, {
1300
- frames: string[] | number[];
1301
- fps: number;
1423
+ row: number;
1424
+ frames: number;
1425
+ frameRate: number;
1302
1426
  loop: boolean;
1303
1427
  }> | undefined;
1304
1428
  tiles?: number[] | undefined;
@@ -1312,8 +1436,9 @@ declare const AssetMapSchema: z.ZodObject<{
1312
1436
  mappings: Record<string, {
1313
1437
  path: string;
1314
1438
  animations?: Record<string, {
1315
- frames: string[] | number[];
1316
- fps: number;
1439
+ row: number;
1440
+ frames: number;
1441
+ frameRate: number;
1317
1442
  loop: boolean;
1318
1443
  }> | undefined;
1319
1444
  tiles?: number[] | undefined;
@@ -1414,6 +1539,7 @@ type AssetMappingInput = z.input<typeof AssetMappingSchema>;
1414
1539
  type AssetMapInput = z.input<typeof AssetMapSchema>;
1415
1540
  type AnimationDefInput = z.input<typeof AnimationDefSchema>;
1416
1541
  type AssetCatalogEntryInput = z.input<typeof AssetCatalogEntrySchema>;
1542
+ type SpriteSheetAtlasInput = z.input<typeof SpriteSheetAtlasSchema>;
1417
1543
  /**
1418
1544
  * Creates a semantic asset key from role and category.
1419
1545
  *
@@ -6435,4 +6561,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
6435
6561
  } | undefined;
6436
6562
  }>]>;
6437
6563
 
6438
- export { ConfigFieldDeclarationSchema as $, ASSET_ASPECTS as A, type AssetCatalogEntry as B, type CallSiteConfig as C, type AssetCatalogEntryInput as D, type Effect as E, AssetCatalogEntrySchema as F, AssetCatalogSchema as G, type AssetDimension as H, AssetDimensionSchema as I, type AssetMap as J, type AssetMapInput as K, AssetMapSchema as L, type AssetMapping as M, type AssetMappingInput as N, AssetMappingSchema as O, AssetSchema as P, type AssetUrl as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, type AtomicEffect as V, type CallServiceConfig as W, type CallServiceEffect as X, type CallSiteConfigEntry as Y, type CheckpointLoadEffect as Z, type CheckpointSaveEffect as _, type Trait as a, PayloadFieldSchema as a$, type DeclaredTraitConfig as a0, DeclaredTraitConfigSchema as a1, type DerefEffect as a2, type DespawnEffect as a3, type DoEffect as a4, ENTITY_ROLES as a5, type EffectInput as a6, EffectSchema as a7, type EmitConfig as a8, type EmitEffect as a9, type FieldType as aA, FieldTypeSchema as aB, type FieldValue as aC, type ForwardConfig as aD, type ForwardEffect as aE, GAME_TYPES as aF, type GameType as aG, GameTypeSchema as aH, type Guard as aI, type GuardInput as aJ, GuardSchema as aK, type ListenSource as aL, ListenSourceSchema as aM, type LogEffect as aN, type McpServiceDef as aO, McpServiceDefSchema as aP, type NavigateEffect as aQ, type NnConfig as aR, type NnLayer as aS, type NotifyEffect as aT, type OrbitalEntity as aU, type OrbitalEntityInput as aV, OrbitalEntitySchema as aW, type OrbitalTraitRef as aX, OrbitalTraitRefSchema as aY, type OsEffect as aZ, type PayloadField as a_, type EntityData as aa, type EntityFieldContract as ab, EntityFieldContractSchema as ac, type EntityFieldInput as ad, EntityFieldSchema as ae, EntityPersistenceSchema as af, type EntityRole as ag, EntityRoleSchema as ah, EntitySchema as ai, type EntityWith as aj, type EnumEntityField as ak, type EvaluateConfig as al, type EvaluateEffect as am, type Event as an, type EventInput as ao, EventPayloadFieldSchema as ap, EventSchema as aq, type EventScope as ar, EventScopeSchema as as, type FetchEffect as at, type FetchOptions as au, type FetchResult as av, type Field as aw, type FieldFormat as ax, FieldFormatSchema as ay, FieldSchema as az, type RenderUIEffect as b, TraitSchema as b$, type PersistData as b0, type PersistEffect as b1, type PersistEmitConfig as b2, type PresentationType as b3, type RefEffect 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, persistenceModeAllowsOverrides as cK, ref as cL, renderUI as cM, set as cN, spawn as cO, swap as cP, validateAssetAnimations as cQ, watch as cR, type TraitScope as cS, 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 RelationConfig as k, type TraitConfigObject as l, type EventPayloadField as m, type ConfigFieldDeclaration as n, type ServiceDefinition as o, type State as p, ASSET_DIMENSIONS as q, type AgentEffect as r, type AnimationDef as s, type AnimationDefInput as t, AnimationDefSchema as u, type ArrayEntityField as v, type Asset as w, type AssetAspect as x, AssetAspectSchema as y, type AssetCatalog as z };
6564
+ export { type CallSiteConfigEntry as $, ANIMATION_NAMES as A, type AssetAspect as B, type CallSiteConfig as C, AssetAspectSchema as D, type Effect as E, type AssetCatalog as F, type AssetCatalogEntry as G, type AssetCatalogEntryInput as H, AssetCatalogEntrySchema as I, AssetCatalogSchema as J, type AssetDimension as K, AssetDimensionSchema as L, type AssetMap as M, type AssetMapInput as N, AssetMapSchema as O, type AssetMapping as P, type AssetMappingInput as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, AssetMappingSchema as V, AssetSchema as W, type AssetUrl as X, type AtomicEffect as Y, type CallServiceConfig as Z, type CallServiceEffect as _, type Trait as a, OrbitalTraitRefSchema as a$, type CheckpointLoadEffect as a0, type CheckpointSaveEffect as a1, ConfigFieldDeclarationSchema as a2, type DeclaredTraitConfig as a3, DeclaredTraitConfigSchema as a4, type DerefEffect as a5, type DespawnEffect as a6, type DoEffect as a7, ENTITY_ROLES as a8, type EffectInput as a9, type FieldFormat as aA, FieldFormatSchema as aB, FieldSchema as aC, type FieldType as aD, FieldTypeSchema as aE, type FieldValue as aF, type ForwardConfig as aG, type ForwardEffect as aH, GAME_TYPES as aI, type GameType as aJ, GameTypeSchema as aK, type Guard as aL, type GuardInput as aM, GuardSchema as aN, type ListenSource as aO, ListenSourceSchema as aP, type LogEffect as aQ, type McpServiceDef as aR, McpServiceDefSchema as aS, type NavigateEffect as aT, type NnConfig as aU, type NnLayer as aV, type NotifyEffect as aW, type OrbitalEntity as aX, type OrbitalEntityInput as aY, OrbitalEntitySchema as aZ, type OrbitalTraitRef as a_, EffectSchema as aa, type EmitConfig as ab, type EmitEffect as ac, type EntityData as ad, type EntityFieldContract as ae, EntityFieldContractSchema as af, type EntityFieldInput as ag, EntityFieldSchema as ah, EntityPersistenceSchema as ai, type EntityRole as aj, EntityRoleSchema as ak, EntitySchema as al, type EntityWith as am, type EnumEntityField as an, type EvaluateConfig as ao, type EvaluateEffect as ap, type Event as aq, type EventInput as ar, EventPayloadFieldSchema as as, EventSchema as at, type EventScope as au, EventScopeSchema as av, type FetchEffect as aw, type FetchOptions as ax, type FetchResult as ay, type Field as az, type RenderUIEffect as b, TraitDataEntitySchema as b$, type OsEffect as b0, type PayloadField as b1, PayloadFieldSchema as b2, type PersistData as b3, type PersistEffect as b4, type PersistEmitConfig as b5, type PresentationType as b6, type RefEffect as b7, RelationConfigSchema as b8, type RelationEntityField as b9, type ServiceType as bA, ServiceTypeSchema as bB, type SetEffect as bC, type SocketEvents as bD, SocketEventsSchema as bE, type SocketServiceDef as bF, SocketServiceDefSchema as bG, type SpawnEffect as bH, type SpriteDirection as bI, SpriteDirectionSchema as bJ, type SpriteSheetAtlas as bK, type SpriteSheetAtlasInput as bL, SpriteSheetAtlasSchema as bM, type StateInput as bN, type StateMachine as bO, type StateMachineInput as bP, StateMachineSchema as bQ, StateSchema as bR, type SwapEffect as bS, type TrainConfig as bT, type TrainEffect as bU, type TraitCategory as bV, TraitCategorySchema as bW, TraitConfigSchema as bX, type TraitConfigValue as bY, TraitConfigValueSchema as bZ, type TraitDataEntity as b_, type RenderItemLambda as ba, type RenderUIConfig as bb, type RenderUINode as bc, type RequiredField as bd, RequiredFieldSchema as be, type ResolvedAsset as bf, type ResolvedAssetInput as bg, ResolvedAssetSchema as bh, type ResolvedPatternProps as bi, type RestAuthConfig as bj, RestAuthConfigSchema as bk, type RestServiceDef as bl, RestServiceDefSchema as bm, SERVICE_TYPES as bn, SPRITE_DIRECTIONS as bo, type ScalarEntityField as bp, type SemanticAssetRef as bq, type SemanticAssetRefInput as br, SemanticAssetRefSchema as bs, ServiceDefinitionSchema as bt, type ServiceParams as bu, type ServiceParamsValue as bv, type ServiceRefObject as bw, ServiceRefObjectSchema as bx, ServiceRefSchema as by, ServiceRefStringSchema as bz, type TraitEventContract as c, type TraitScope as c$, type TraitEntityField as c0, TraitEntityFieldSchema as c1, TraitEventContractSchema as c2, TraitEventListenerSchema as c3, type TraitInput as c4, TraitRefSchema as c5, type TraitReferenceInput as c6, TraitReferenceSchema as c7, TraitSchema as c8, type TraitTick as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isInlineTrait as cE, isMcpService as cF, isRestService as cG, isRuntimeEntity as cH, isSExprEffect as cI, isServiceReference as cJ, isServiceReferenceObject as cK, isSingletonEntity as cL, isSocketService as cM, navigate as cN, normalizeTraitRef as cO, notify as cP, parseAssetKey as cQ, parseServiceRef as cR, persist as cS, persistenceModeAllowsOverrides as cT, ref as cU, renderUI as cV, set as cW, spawn as cX, swap as cY, validateAssetAnimations as cZ, watch as c_, TraitTickSchema as ca, type TraitUIBinding as cb, type Transition as cc, type TransitionInput as cd, TransitionSchema as ce, type TypedEffect as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName 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 RelationConfig as k, type TraitConfigObject as l, type EventPayloadField as m, type ConfigFieldDeclaration as n, type ServiceDefinition as o, type State as p, ASSET_ASPECTS as q, ASSET_DIMENSIONS as r, type AgentEffect as s, type AnimationDef as t, type AnimationDefInput as u, AnimationDefSchema as v, type AnimationName as w, AnimationNameSchema as x, type ArrayEntityField as y, type Asset as z };
@@ -1,14 +1,14 @@
1
- import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-CSn8gU27.js';
2
- export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-CSn8gU27.js';
3
- import { bq as ServiceParams, a as Trait, d as Entity, h as EntityRow, aC as FieldValue, a0 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, p as State, c3 as Transition, f as EntityField, an as Event, bP as TraitConfigValue, g as EntityPersistence, bM as TraitCategory, cS as TraitScope } from '../trait-DecHZfpm.js';
4
- export { A as ASSET_ASPECTS, q as ASSET_DIMENSIONS, r as AgentEffect, s as AnimationDef, t as AnimationDefInput, u as AnimationDefSchema, v as ArrayEntityField, w as Asset, x as AssetAspect, y as AssetAspectSchema, z as AssetCatalog, B as AssetCatalogEntry, D as AssetCatalogEntryInput, F as AssetCatalogEntrySchema, G as AssetCatalogSchema, H as AssetDimension, I as AssetDimensionSchema, J as AssetMap, K as AssetMapInput, L as AssetMapSchema, M as AssetMapping, N as AssetMappingInput, O as AssetMappingSchema, P as AssetSchema, Q as AssetUrl, V as AtomicEffect, W as CallServiceConfig, X as CallServiceEffect, C as CallSiteConfig, Y as CallSiteConfigEntry, Z as CheckpointLoadEffect, _ as CheckpointSaveEffect, $ as ConfigFieldDeclarationSchema, a1 as DeclaredTraitConfigSchema, a2 as DerefEffect, a3 as DespawnEffect, a4 as DoEffect, a5 as ENTITY_ROLES, a6 as EffectInput, a7 as EffectSchema, a8 as EmitConfig, a9 as EmitEffect, aa as EntityData, ab as EntityFieldContract, ac as EntityFieldContractSchema, ad as EntityFieldInput, ae as EntityFieldSchema, af as EntityPersistenceSchema, ag as EntityRole, ah as EntityRoleSchema, ai as EntitySchema, aj as EntityWith, ak as EnumEntityField, al as EvaluateConfig, am as EvaluateEffect, ao as EventInput, m as EventPayloadField, ap as EventPayloadFieldSchema, aq as EventSchema, ar as EventScope, as as EventScopeSchema, at as FetchEffect, au as FetchOptions, av as FetchResult, aw as Field, ax as FieldFormat, ay as FieldFormatSchema, az as FieldSchema, aA as FieldType, aB as FieldTypeSchema, aD as ForwardConfig, aE as ForwardEffect, aF as GAME_TYPES, aG as GameType, aH as GameTypeSchema, aI as Guard, aJ as GuardInput, aK as GuardSchema, aL as ListenSource, aM as ListenSourceSchema, aN as LogEffect, aO as McpServiceDef, aP as McpServiceDefSchema, aQ as NavigateEffect, aR as NnConfig, aS as NnLayer, aT as NotifyEffect, aU as OrbitalEntity, aV as OrbitalEntityInput, aW as OrbitalEntitySchema, aX as OrbitalTraitRef, aY as OrbitalTraitRefSchema, aZ as OsEffect, a_ as PayloadField, a$ as PayloadFieldSchema, b0 as PersistData, b1 as PersistEffect, b2 as PersistEmitConfig, b3 as PresentationType, b4 as RefEffect, k as RelationConfig, b5 as RelationConfigSchema, b6 as RelationEntityField, R as RenderBinding, b7 as RenderItemLambda, b8 as RenderUIConfig, b as RenderUIEffect, b9 as RenderUINode, ba as RequiredField, bb as RequiredFieldSchema, bc as ResolvedAsset, bd as ResolvedAssetInput, be as ResolvedAssetSchema, bf as ResolvedPatternProps, bg as RestAuthConfig, bh as RestAuthConfigSchema, bi as RestServiceDef, bj as RestServiceDefSchema, bk as SERVICE_TYPES, bl as ScalarEntityField, bm as SemanticAssetRef, bn as SemanticAssetRefInput, bo as SemanticAssetRefSchema, o as ServiceDefinition, bp as ServiceDefinitionSchema, br as ServiceParamsValue, S as ServiceRef, bs as ServiceRefObject, bt as ServiceRefObjectSchema, bu as ServiceRefSchema, bv as ServiceRefStringSchema, bw as ServiceType, bx as ServiceTypeSchema, by as SetEffect, bz as SocketEvents, bA as SocketEventsSchema, bB as SocketServiceDef, bC as SocketServiceDefSchema, bD as SpawnEffect, bE as StateInput, bF as StateMachine, bG as StateMachineInput, bH as StateMachineSchema, bI as StateSchema, bJ as SwapEffect, bK as TrainConfig, bL as TrainEffect, bN as TraitCategorySchema, l as TraitConfigObject, bO as TraitConfigSchema, bQ as TraitConfigValueSchema, bR as TraitDataEntity, bS as TraitDataEntitySchema, bT as TraitEntityField, bU as TraitEntityFieldSchema, c as TraitEventContract, bV as TraitEventContractSchema, e as TraitEventListener, bW as TraitEventListenerSchema, bX as TraitInput, i as TraitRef, bY as TraitRefSchema, j as TraitReference, bZ as TraitReferenceInput, b_ as TraitReferenceSchema, b$ as TraitSchema, c0 as TraitTick, c1 as TraitTickSchema, c2 as TraitUIBinding, c4 as TransitionInput, c5 as TransitionSchema, c6 as TypedEffect, U as UISlot, c7 as UISlotSchema, c8 as UI_SLOTS, c9 as VISUAL_STYLES, ca as VisualStyle, cb as VisualStyleSchema, cc as WatchEffect, cd as WatchOptions, ce as atomic, cf as callService, cg as createAssetKey, ch as deref, ci as deriveCollection, cj as despawn, ck as doEffects, cl as emit, cm as findService, cn as getDefaultAnimationsForRole, co as getServiceNames, cp as getTraitConfig, cq as getTraitName, cr as hasService, cs as isCallSiteConfigDeclaration, ct as isCircuitEvent, cu as isEffect, cv as isInlineTrait, cw as isMcpService, cx as isRestService, cy as isRuntimeEntity, cz as isSExprEffect, cA as isServiceReference, cB as isServiceReferenceObject, cC as isSingletonEntity, cD as isSocketService, cE as navigate, cF as normalizeTraitRef, cG as notify, cH as parseAssetKey, cI as parseServiceRef, cJ as persist, cK as persistenceModeAllowsOverrides, cL as ref, cM as renderUI, cN as set, cO as spawn, cP as swap, cQ as validateAssetAnimations, cR as watch } from '../trait-DecHZfpm.js';
1
+ import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-DisJeRQc.js';
2
+ export { A as AGENT_DOMAIN_CATEGORIES, d as ALLOWED_CUSTOM_COMPONENTS, e as AgentDomainCategory, f as AgentDomainCategorySchema, g as AllowedCustomComponent, C as ColorSlice, h as ColorSliceSchema, i as ColorTokens, j as ColorTokensSchema, k as ComputedEventContract, l as ComputedEventContractSchema, m as ComputedEventListener, n as ComputedEventListenerSchema, o as ConfigProvenanceRecord, p as ConfigProvenanceRecordSchema, q as CustomPatternDefinition, r as CustomPatternDefinitionInput, s as CustomPatternDefinitionSchema, t as CustomPatternMap, u as CustomPatternMapInput, v as CustomPatternMapSchema, D as DensitySlice, w as DensitySliceSchema, x as DensityTokens, y as DensityTokensSchema, z as DesignPreferences, B as DesignPreferencesInput, F as DesignPreferencesSchema, G as DesignTokens, H as DesignTokensInput, I as DesignTokensSchema, J as DomainCategory, K as DomainCategorySchema, M as DomainContextInput, N as DomainContextSchema, Q as DomainVocabulary, R as DomainVocabularySchema, S as ElevationSlice, T as ElevationSliceSchema, V as ElevationTokens, W as ElevationTokensSchema, X as EntityCall, Y as EntityCallSchema, E as EntityRef, Z as EntityRefSchema, _ as EntityRefStringSchema, $ as EntitySemanticRole, a0 as EntitySemanticRoleSchema, a1 as EventListener, a2 as EventListenerSchema, a3 as EventSemanticRole, a4 as EventSemanticRoleSchema, a5 as EventSource, a6 as EventSourceSchema, a8 as GameSubCategory, a9 as GameSubCategorySchema, aa as GeometrySlice, ab as GeometrySliceSchema, ac as GeometryTokens, ad as GeometryTokensSchema, ae as IconFamily, af as IconFamilySchema, ag as IconographySlice, ah as IconographySliceSchema, ai as IconographyTokens, aj as IconographyTokensSchema, ak as IllustrationSlice, al as IllustrationSliceSchema, am as IllustrationStyle, an as IllustrationStyleSchema, ao as IllustrationTokens, ap as IllustrationTokensSchema, aq as MotionDurationKey, ar as MotionDurationKeySchema, as as MotionDurationPalette, at as MotionDurationPaletteSchema, au as MotionEasingKey, av as MotionEasingKeySchema, aw as MotionEasingPalette, ax as MotionEasingPaletteSchema, ay as MotionIntent, az as MotionIntentMap, aA as MotionIntentMapSchema, aB as MotionIntentSchema, aC as MotionSlice, aD as MotionSliceSchema, aE as MotionTokens, aF as MotionTokensSchema, aG as NodeClassification, aH as NodeClassificationSchema, aI as OrbitalConfig, aJ as OrbitalConfigInput, aK as OrbitalConfigSchema, aL as OrbitalDefinitionSchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalSchemaWithTraits, aV as OrbitalUnit, aW as OrbitalUnitSchema, aX as OrbitalZodSchema, P as PageRef, c as PageRefObject, aY as PageRefObjectSchema, aZ as PageRefSchema, a_ as PageRefStringSchema, a$ as PageSchema, b1 as PageTraitRefSchema, b2 as RelatedLink, b3 as RelatedLinkSchema, b4 as SchemaMetadata, b5 as SchemaMetadataSchema, b6 as SkinSpec, b7 as SkinSpecSchema, b8 as SpacingScale, b9 as SpacingScaleSchema, ba as StateSemanticRole, bb as StateSemanticRoleSchema, bc as SuggestedGuard, bd as SuggestedGuardSchema, be as ThemeDefinition, bf as ThemeDefinitionSchema, bg as ThemeRef, bh as ThemeRefSchema, bi as ThemeRefStringSchema, bj as ThemeTokens, bk as ThemeTokensSchema, bl as ThemeVariant, bm as ThemeVariantSchema, bn as TypeIntent, bo as TypeIntentMap, bp as TypeIntentMapSchema, bq as TypeIntentSchema, br as TypeScale, bs as TypeScaleEntry, bt as TypeScaleEntrySchema, bu as TypeScaleSchema, bv as TypeScaleTokens, bw as TypeScaleTokensSchema, bx as TypeSizeKey, by as TypeSizeKeySchema, bz as TypeSlice, bA as TypeSliceSchema, bB as TypeSlot, bC as TypeSlotSchema, bD as TypeWeight, bE as TypeWeightSchema, bF as UXHints, bG as UXHintsSchema, U as UseDeclaration, bH as UseDeclarationSchema, bI as UserPersona, bJ as UserPersonaInput, bK as UserPersonaSchema, bL as ViewType, bM as ViewTypeSchema, bN as isEntityCall, bO as isEntityReference, bP as isEntityReferenceAny, bQ as isImportedTraitRef, bR as isOrbitalDefinition, bS as isPageReference, bT as isPageReferenceObject, bU as isPageReferenceString, bV as isThemeReference, bW as parseEntityRef, bX as parseImportedTraitRef, bY as parseOrbitalSchema, bZ as parsePageRef, b_ as safeParseOrbitalSchema } from '../schema-DisJeRQc.js';
3
+ import { bu as ServiceParams, a as Trait, d as Entity, h as EntityRow, aF as FieldValue, a3 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, p as State, cc as Transition, f as EntityField, aq as Event, bY as TraitConfigValue, g as EntityPersistence, bV as TraitCategory, c$ as TraitScope } from '../trait-Bwhkhv3V.js';
4
+ export { A as ANIMATION_NAMES, q as ASSET_ASPECTS, r as ASSET_DIMENSIONS, s as AgentEffect, t as AnimationDef, u as AnimationDefInput, v as AnimationDefSchema, w as AnimationName, x as AnimationNameSchema, y as ArrayEntityField, z as Asset, B as AssetAspect, D as AssetAspectSchema, F as AssetCatalog, G as AssetCatalogEntry, H as AssetCatalogEntryInput, I as AssetCatalogEntrySchema, J as AssetCatalogSchema, K as AssetDimension, L as AssetDimensionSchema, M as AssetMap, N as AssetMapInput, O as AssetMapSchema, P as AssetMapping, Q as AssetMappingInput, V as AssetMappingSchema, W as AssetSchema, X as AssetUrl, Y as AtomicEffect, Z as CallServiceConfig, _ as CallServiceEffect, C as CallSiteConfig, $ as CallSiteConfigEntry, a0 as CheckpointLoadEffect, a1 as CheckpointSaveEffect, a2 as ConfigFieldDeclarationSchema, a4 as DeclaredTraitConfigSchema, a5 as DerefEffect, a6 as DespawnEffect, a7 as DoEffect, a8 as ENTITY_ROLES, a9 as EffectInput, aa as EffectSchema, ab as EmitConfig, ac as EmitEffect, ad as EntityData, ae as EntityFieldContract, af as EntityFieldContractSchema, ag as EntityFieldInput, ah as EntityFieldSchema, ai as EntityPersistenceSchema, aj as EntityRole, ak as EntityRoleSchema, al as EntitySchema, am as EntityWith, an as EnumEntityField, ao as EvaluateConfig, ap as EvaluateEffect, ar as EventInput, m as EventPayloadField, as as EventPayloadFieldSchema, at as EventSchema, au as EventScope, av as EventScopeSchema, aw as FetchEffect, ax as FetchOptions, ay as FetchResult, az as Field, aA as FieldFormat, aB as FieldFormatSchema, aC as FieldSchema, aD as FieldType, aE as FieldTypeSchema, aG as ForwardConfig, aH as ForwardEffect, aI as GAME_TYPES, aJ as GameType, aK as GameTypeSchema, aL as Guard, aM as GuardInput, aN as GuardSchema, aO as ListenSource, aP as ListenSourceSchema, aQ as LogEffect, aR as McpServiceDef, aS as McpServiceDefSchema, aT as NavigateEffect, aU as NnConfig, aV as NnLayer, aW as NotifyEffect, aX as OrbitalEntity, aY as OrbitalEntityInput, aZ as OrbitalEntitySchema, a_ as OrbitalTraitRef, a$ as OrbitalTraitRefSchema, b0 as OsEffect, b1 as PayloadField, b2 as PayloadFieldSchema, b3 as PersistData, b4 as PersistEffect, b5 as PersistEmitConfig, b6 as PresentationType, b7 as RefEffect, k as RelationConfig, b8 as RelationConfigSchema, b9 as RelationEntityField, R as RenderBinding, ba as RenderItemLambda, bb as RenderUIConfig, b as RenderUIEffect, bc as RenderUINode, bd as RequiredField, be as RequiredFieldSchema, bf as ResolvedAsset, bg as ResolvedAssetInput, bh as ResolvedAssetSchema, bi as ResolvedPatternProps, bj as RestAuthConfig, bk as RestAuthConfigSchema, bl as RestServiceDef, bm as RestServiceDefSchema, bn as SERVICE_TYPES, bo as SPRITE_DIRECTIONS, bp as ScalarEntityField, bq as SemanticAssetRef, br as SemanticAssetRefInput, bs as SemanticAssetRefSchema, o as ServiceDefinition, bt as ServiceDefinitionSchema, bv as ServiceParamsValue, S as ServiceRef, bw as ServiceRefObject, bx as ServiceRefObjectSchema, by as ServiceRefSchema, bz as ServiceRefStringSchema, bA as ServiceType, bB as ServiceTypeSchema, bC as SetEffect, bD as SocketEvents, bE as SocketEventsSchema, bF as SocketServiceDef, bG as SocketServiceDefSchema, bH as SpawnEffect, bI as SpriteDirection, bJ as SpriteDirectionSchema, bK as SpriteSheetAtlas, bL as SpriteSheetAtlasInput, bM as SpriteSheetAtlasSchema, bN as StateInput, bO as StateMachine, bP as StateMachineInput, bQ as StateMachineSchema, bR as StateSchema, bS as SwapEffect, bT as TrainConfig, bU as TrainEffect, bW as TraitCategorySchema, l as TraitConfigObject, bX as TraitConfigSchema, bZ as TraitConfigValueSchema, b_ as TraitDataEntity, b$ as TraitDataEntitySchema, c0 as TraitEntityField, c1 as TraitEntityFieldSchema, c as TraitEventContract, c2 as TraitEventContractSchema, e as TraitEventListener, c3 as TraitEventListenerSchema, c4 as TraitInput, i as TraitRef, c5 as TraitRefSchema, j as TraitReference, c6 as TraitReferenceInput, c7 as TraitReferenceSchema, c8 as TraitSchema, c9 as TraitTick, ca as TraitTickSchema, cb as TraitUIBinding, cd as TransitionInput, ce as TransitionSchema, cf as TypedEffect, U as UISlot, cg as UISlotSchema, ch as UI_SLOTS, ci as VISUAL_STYLES, cj as VisualStyle, ck as VisualStyleSchema, cl as WatchEffect, cm as WatchOptions, cn as atomic, co as callService, cp as createAssetKey, cq as deref, cr as deriveCollection, cs as despawn, ct as doEffects, cu as emit, cv as findService, cw as getDefaultAnimationsForRole, cx as getServiceNames, cy as getTraitConfig, cz as getTraitName, cA as hasService, cB as isCallSiteConfigDeclaration, cC as isCircuitEvent, cD as isEffect, cE as isInlineTrait, cF as isMcpService, cG as isRestService, cH as isRuntimeEntity, cI as isSExprEffect, cJ as isServiceReference, cK as isServiceReferenceObject, cL as isSingletonEntity, cM as isSocketService, cN as navigate, cO as normalizeTraitRef, cP as notify, cQ as parseAssetKey, cR as parseServiceRef, cS as persist, cT as persistenceModeAllowsOverrides, cU as ref, cV as renderUI, cW as set, cX as spawn, cY as swap, cZ as validateAssetAnimations, c_ as watch } from '../trait-Bwhkhv3V.js';
5
5
  import { d as EventPayloadValue, c as EventPayload, L as LogMeta, S as SExpr, b as EvalContext } from '../expression-BUIi9ezJ.js';
6
6
  export { C as CORE_BINDINGS, a as CoreBinding, E as Expression, e as ExpressionInput, f as ExpressionSchema, P as ParsedBinding, g as SExprAtom, h as SExprAtomSchema, i as SExprInput, j as SExprSchema, k as collectBindings, l as getArgs, m as getOperator, n as isBinding, o as isSExpr, p as isSExprAtom, q as isSExprCall, r as isValidBinding, s as parseBinding, t as sexpr, w as walkSExpr } from '../expression-BUIi9ezJ.js';
7
7
  import { z } from 'zod';
8
8
  import { AnyPatternConfig } from '@almadar/patterns';
9
9
  export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
10
- import { l as JsonObject, T as ToolArgs, J as JsonValue, c as FactoryConfigTier } from '../types-C16w56HW.js';
11
- export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-C16w56HW.js';
10
+ import { l as JsonObject, T as ToolArgs, J as JsonValue, c as FactoryConfigTier } from '../types-CIi6Vxmc.js';
11
+ export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-CIi6Vxmc.js';
12
12
 
13
13
  /**
14
14
  * S-Expression Bindings
@@ -166,11 +166,27 @@ var GAME_TYPES = [
166
166
  "rpg"
167
167
  ];
168
168
  var GameTypeSchema = z.enum(GAME_TYPES);
169
+ var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
170
+ var AnimationNameSchema = z.enum(ANIMATION_NAMES);
171
+ var SPRITE_DIRECTIONS = ["se", "sw"];
172
+ var SpriteDirectionSchema = z.enum(SPRITE_DIRECTIONS);
169
173
  var AnimationDefSchema = z.object({
170
- frames: z.union([z.array(z.number()), z.array(z.string())]),
171
- fps: z.number().positive(),
174
+ row: z.number().int().nonnegative(),
175
+ frames: z.number().int().positive(),
176
+ frameRate: z.number().positive(),
172
177
  loop: z.boolean()
173
178
  });
179
+ var SpriteSheetAtlasSchema = z.object({
180
+ unit: z.string().optional(),
181
+ type: z.string().optional(),
182
+ frameWidth: z.number().positive(),
183
+ frameHeight: z.number().positive(),
184
+ columns: z.number().int().positive(),
185
+ rows: z.number().int().positive(),
186
+ directions: z.array(SpriteDirectionSchema),
187
+ sheets: z.record(SpriteDirectionSchema, z.string()),
188
+ animations: z.record(AnimationNameSchema, AnimationDefSchema)
189
+ });
174
190
  var SemanticAssetRefSchema = z.object({
175
191
  role: EntityRoleSchema,
176
192
  category: z.string().min(1),
@@ -1963,6 +1979,6 @@ function widenTier(tier) {
1963
1979
  return tier;
1964
1980
  }
1965
1981
 
1966
- export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetMapSchema, AssetMappingSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
1982
+ export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetMapSchema, AssetMappingSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CORE_BINDINGS, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isEffect, isEntityCall, isEntityReference, isEntityReferenceAny, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isServiceReferenceObject, isSingletonEntity, isSocketService, isThemeReference, isTraitFieldRef, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, persistenceModeAllowsOverrides, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, toBindingRoot, validateAssetAnimations, validateBindingInContext, walkSExpr, watch, widenTier };
1967
1983
  //# sourceMappingURL=index.js.map
1968
1984
  //# sourceMappingURL=index.js.map