@almadar/core 10.11.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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +18 -2
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-D9bQEgqN.d.ts → compose-behaviors-CmTHzC3Z.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +102 -73
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/{schema-CtOoanon.d.ts → schema-DisJeRQc.d.ts} +1 -1
- package/dist/{trait-BB1dc5A_.d.ts → trait-Bwhkhv3V.d.ts} +190 -47
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +22 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-COc0mLs1.d.ts → types-CIi6Vxmc.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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
|
|
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
|
-
/**
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
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
|
-
|
|
1016
|
-
|
|
1035
|
+
row: z.ZodNumber;
|
|
1036
|
+
frames: z.ZodNumber;
|
|
1037
|
+
frameRate: z.ZodNumber;
|
|
1017
1038
|
loop: z.ZodBoolean;
|
|
1018
1039
|
}, "strip", z.ZodTypeAny, {
|
|
1019
|
-
|
|
1020
|
-
|
|
1040
|
+
row: number;
|
|
1041
|
+
frames: number;
|
|
1042
|
+
frameRate: number;
|
|
1021
1043
|
loop: boolean;
|
|
1022
1044
|
}, {
|
|
1023
|
-
|
|
1024
|
-
|
|
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
|
-
|
|
1148
|
-
|
|
1255
|
+
row: z.ZodNumber;
|
|
1256
|
+
frames: z.ZodNumber;
|
|
1257
|
+
frameRate: z.ZodNumber;
|
|
1149
1258
|
loop: z.ZodBoolean;
|
|
1150
1259
|
}, "strip", z.ZodTypeAny, {
|
|
1151
|
-
|
|
1152
|
-
|
|
1260
|
+
row: number;
|
|
1261
|
+
frames: number;
|
|
1262
|
+
frameRate: number;
|
|
1153
1263
|
loop: boolean;
|
|
1154
1264
|
}, {
|
|
1155
|
-
|
|
1156
|
-
|
|
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
|
-
|
|
1164
|
-
|
|
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
|
-
|
|
1175
|
-
|
|
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
|
-
|
|
1204
|
-
|
|
1316
|
+
row: z.ZodNumber;
|
|
1317
|
+
frames: z.ZodNumber;
|
|
1318
|
+
frameRate: z.ZodNumber;
|
|
1205
1319
|
loop: z.ZodBoolean;
|
|
1206
1320
|
}, "strip", z.ZodTypeAny, {
|
|
1207
|
-
|
|
1208
|
-
|
|
1321
|
+
row: number;
|
|
1322
|
+
frames: number;
|
|
1323
|
+
frameRate: number;
|
|
1209
1324
|
loop: boolean;
|
|
1210
1325
|
}, {
|
|
1211
|
-
|
|
1212
|
-
|
|
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
|
-
|
|
1219
|
-
|
|
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
|
-
|
|
1229
|
-
|
|
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
|
-
|
|
1261
|
-
|
|
1378
|
+
row: z.ZodNumber;
|
|
1379
|
+
frames: z.ZodNumber;
|
|
1380
|
+
frameRate: z.ZodNumber;
|
|
1262
1381
|
loop: z.ZodBoolean;
|
|
1263
1382
|
}, "strip", z.ZodTypeAny, {
|
|
1264
|
-
|
|
1265
|
-
|
|
1383
|
+
row: number;
|
|
1384
|
+
frames: number;
|
|
1385
|
+
frameRate: number;
|
|
1266
1386
|
loop: boolean;
|
|
1267
1387
|
}, {
|
|
1268
|
-
|
|
1269
|
-
|
|
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
|
-
|
|
1276
|
-
|
|
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
|
-
|
|
1286
|
-
|
|
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
|
-
|
|
1301
|
-
|
|
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
|
-
|
|
1316
|
-
|
|
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
|
*
|
|
@@ -1721,6 +1847,23 @@ declare function isRuntimeEntity(entity: OrbitalEntity): boolean;
|
|
|
1721
1847
|
* isSingletonEntity({ persistence: 'persistent' }); // returns false
|
|
1722
1848
|
*/
|
|
1723
1849
|
declare function isSingletonEntity(entity: OrbitalEntity): boolean;
|
|
1850
|
+
/**
|
|
1851
|
+
* Checks whether an entity's persistence mode allows `persistence` /
|
|
1852
|
+
* `collection` overrides at the factory call site.
|
|
1853
|
+
*
|
|
1854
|
+
* Only `persistent` entities (explicit or default) support these overrides.
|
|
1855
|
+
* Runtime, singleton, instance, and local entities are fixed; callers must
|
|
1856
|
+
* not expose `persistence` or `collection` params for them.
|
|
1857
|
+
*
|
|
1858
|
+
* @param persistence - The entity persistence mode (undefined = default persistent)
|
|
1859
|
+
* @returns True when overrides are allowed, false otherwise
|
|
1860
|
+
*
|
|
1861
|
+
* @example
|
|
1862
|
+
* persistenceModeAllowsOverrides('persistent'); // returns true
|
|
1863
|
+
* persistenceModeAllowsOverrides('runtime'); // returns false
|
|
1864
|
+
* persistenceModeAllowsOverrides(undefined); // returns true (default persistent)
|
|
1865
|
+
*/
|
|
1866
|
+
declare function persistenceModeAllowsOverrides(persistence: EntityPersistence | undefined): boolean;
|
|
1724
1867
|
/**
|
|
1725
1868
|
* A single field value at runtime.
|
|
1726
1869
|
* Union of all possible types from FieldType: string, number, boolean, date, array, nested.
|
|
@@ -6418,4 +6561,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6418
6561
|
} | undefined;
|
|
6419
6562
|
}>]>;
|
|
6420
6563
|
|
|
6421
|
-
export {
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
export { A as
|
|
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-
|
|
11
|
-
export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-
|
|
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
|
package/dist/types/index.js
CHANGED
|
@@ -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
|
-
|
|
171
|
-
|
|
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),
|
|
@@ -289,6 +305,9 @@ function isRuntimeEntity(entity) {
|
|
|
289
305
|
function isSingletonEntity(entity) {
|
|
290
306
|
return entity.persistence === "singleton";
|
|
291
307
|
}
|
|
308
|
+
function persistenceModeAllowsOverrides(persistence) {
|
|
309
|
+
return persistence === "persistent" || persistence === void 0;
|
|
310
|
+
}
|
|
292
311
|
var UI_SLOTS = [
|
|
293
312
|
// App slots
|
|
294
313
|
"main",
|
|
@@ -1960,6 +1979,6 @@ function widenTier(tier) {
|
|
|
1960
1979
|
return tier;
|
|
1961
1980
|
}
|
|
1962
1981
|
|
|
1963
|
-
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, 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 };
|
|
1964
1983
|
//# sourceMappingURL=index.js.map
|
|
1965
1984
|
//# sourceMappingURL=index.js.map
|