@almadar/core 10.13.0 → 10.14.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 +38 -0
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CmTHzC3Z.d.ts → compose-behaviors-Ds6d_mMY.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 +38 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +39 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-DisJeRQc.d.ts → schema-BVcq7eXk.d.ts} +1459 -1459
- package/dist/{trait-Bwhkhv3V.d.ts → trait-Ctj2l6ma.d.ts} +271 -2
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +39 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CIi6Vxmc.d.ts → types-QQ9BTzkx.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1132,6 +1132,256 @@ declare const SpriteSheetAtlasSchema: z.ZodObject<{
|
|
|
1132
1132
|
type?: string | undefined;
|
|
1133
1133
|
unit?: string | undefined;
|
|
1134
1134
|
}>;
|
|
1135
|
+
/**
|
|
1136
|
+
* One named sub-rectangle inside a packed sheet. Mirrors the ShoeBox /
|
|
1137
|
+
* TexturePacker `<SubTexture>` element every Kenney `Spritesheet/*.xml` ships
|
|
1138
|
+
* (`x`/`y`/`width`/`height` = the rect in the sheet PNG; `frameX`/`frameY`/
|
|
1139
|
+
* `frameWidth`/`frameHeight` = the trim/pad offsets for sprites packed with
|
|
1140
|
+
* transparent edges removed — optional, present only on trimmed atlases).
|
|
1141
|
+
*/
|
|
1142
|
+
interface SubTexture {
|
|
1143
|
+
x: number;
|
|
1144
|
+
y: number;
|
|
1145
|
+
width: number;
|
|
1146
|
+
height: number;
|
|
1147
|
+
frameX?: number;
|
|
1148
|
+
frameY?: number;
|
|
1149
|
+
frameWidth?: number;
|
|
1150
|
+
frameHeight?: number;
|
|
1151
|
+
}
|
|
1152
|
+
declare const SubTextureSchema: z.ZodObject<{
|
|
1153
|
+
x: z.ZodNumber;
|
|
1154
|
+
y: z.ZodNumber;
|
|
1155
|
+
width: z.ZodNumber;
|
|
1156
|
+
height: z.ZodNumber;
|
|
1157
|
+
frameX: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
frameY: z.ZodOptional<z.ZodNumber>;
|
|
1159
|
+
frameWidth: z.ZodOptional<z.ZodNumber>;
|
|
1160
|
+
frameHeight: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
|
+
x: number;
|
|
1163
|
+
y: number;
|
|
1164
|
+
width: number;
|
|
1165
|
+
height: number;
|
|
1166
|
+
frameWidth?: number | undefined;
|
|
1167
|
+
frameHeight?: number | undefined;
|
|
1168
|
+
frameX?: number | undefined;
|
|
1169
|
+
frameY?: number | undefined;
|
|
1170
|
+
}, {
|
|
1171
|
+
x: number;
|
|
1172
|
+
y: number;
|
|
1173
|
+
width: number;
|
|
1174
|
+
height: number;
|
|
1175
|
+
frameWidth?: number | undefined;
|
|
1176
|
+
frameHeight?: number | undefined;
|
|
1177
|
+
frameX?: number | undefined;
|
|
1178
|
+
frameY?: number | undefined;
|
|
1179
|
+
}>;
|
|
1180
|
+
/**
|
|
1181
|
+
* A packed sheet + its named sub-rectangles — the canonical parse target for a
|
|
1182
|
+
* Kenney `Spritesheet/*.xml` atlas. A STATIC tile/prop/UI Asset references one
|
|
1183
|
+
* of these: `{ url: <sheet.png>, atlas: <this.json>, sprite: "grass.png" }` →
|
|
1184
|
+
* the renderer fetches the sheet + atlas ONCE and blits the named sub-rect,
|
|
1185
|
+
* instead of loading N individual PNGs. (Animated actors use `SpriteSheetAtlas`
|
|
1186
|
+
* instead; a uniform-grid tile page uses `Tilesheet`.)
|
|
1187
|
+
*/
|
|
1188
|
+
interface TextureAtlas {
|
|
1189
|
+
/** Relative path to the sheet PNG the sub-rects index into (the atlas's own `imagePath`). */
|
|
1190
|
+
imagePath: string;
|
|
1191
|
+
/** Sub-rectangles keyed by their atlas name (e.g. `"grass.png"`). */
|
|
1192
|
+
subTextures: Record<string, SubTexture>;
|
|
1193
|
+
}
|
|
1194
|
+
declare const TextureAtlasSchema: z.ZodObject<{
|
|
1195
|
+
imagePath: z.ZodString;
|
|
1196
|
+
subTextures: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1197
|
+
x: z.ZodNumber;
|
|
1198
|
+
y: z.ZodNumber;
|
|
1199
|
+
width: z.ZodNumber;
|
|
1200
|
+
height: z.ZodNumber;
|
|
1201
|
+
frameX: z.ZodOptional<z.ZodNumber>;
|
|
1202
|
+
frameY: z.ZodOptional<z.ZodNumber>;
|
|
1203
|
+
frameWidth: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
frameHeight: z.ZodOptional<z.ZodNumber>;
|
|
1205
|
+
}, "strip", z.ZodTypeAny, {
|
|
1206
|
+
x: number;
|
|
1207
|
+
y: number;
|
|
1208
|
+
width: number;
|
|
1209
|
+
height: number;
|
|
1210
|
+
frameWidth?: number | undefined;
|
|
1211
|
+
frameHeight?: number | undefined;
|
|
1212
|
+
frameX?: number | undefined;
|
|
1213
|
+
frameY?: number | undefined;
|
|
1214
|
+
}, {
|
|
1215
|
+
x: number;
|
|
1216
|
+
y: number;
|
|
1217
|
+
width: number;
|
|
1218
|
+
height: number;
|
|
1219
|
+
frameWidth?: number | undefined;
|
|
1220
|
+
frameHeight?: number | undefined;
|
|
1221
|
+
frameX?: number | undefined;
|
|
1222
|
+
frameY?: number | undefined;
|
|
1223
|
+
}>>;
|
|
1224
|
+
}, "strip", z.ZodTypeAny, {
|
|
1225
|
+
imagePath: string;
|
|
1226
|
+
subTextures: Record<string, {
|
|
1227
|
+
x: number;
|
|
1228
|
+
y: number;
|
|
1229
|
+
width: number;
|
|
1230
|
+
height: number;
|
|
1231
|
+
frameWidth?: number | undefined;
|
|
1232
|
+
frameHeight?: number | undefined;
|
|
1233
|
+
frameX?: number | undefined;
|
|
1234
|
+
frameY?: number | undefined;
|
|
1235
|
+
}>;
|
|
1236
|
+
}, {
|
|
1237
|
+
imagePath: string;
|
|
1238
|
+
subTextures: Record<string, {
|
|
1239
|
+
x: number;
|
|
1240
|
+
y: number;
|
|
1241
|
+
width: number;
|
|
1242
|
+
height: number;
|
|
1243
|
+
frameWidth?: number | undefined;
|
|
1244
|
+
frameHeight?: number | undefined;
|
|
1245
|
+
frameX?: number | undefined;
|
|
1246
|
+
frameY?: number | undefined;
|
|
1247
|
+
}>;
|
|
1248
|
+
}>;
|
|
1249
|
+
/**
|
|
1250
|
+
* A uniform-grid tile page — the shape a Kenney `Tilesheet/` sheet takes (e.g.
|
|
1251
|
+
* Pirate Pack: "each tile is 64×64, no margin"). Tiles are cut by `(col,row)`
|
|
1252
|
+
* index rather than by named rect. `names` is present only when a sibling
|
|
1253
|
+
* `.xml`/`.txt` supplies an index→name list; otherwise a tile is addressed by
|
|
1254
|
+
* its `"col,row"` (or flat index) via `Asset.sprite`.
|
|
1255
|
+
*/
|
|
1256
|
+
interface Tilesheet {
|
|
1257
|
+
/** Relative path to the tile sheet PNG. */
|
|
1258
|
+
imagePath: string;
|
|
1259
|
+
/** Width of one tile cell in pixels. */
|
|
1260
|
+
tileWidth: number;
|
|
1261
|
+
/** Height of one tile cell in pixels. */
|
|
1262
|
+
tileHeight: number;
|
|
1263
|
+
/** Number of columns in the grid. */
|
|
1264
|
+
columns: number;
|
|
1265
|
+
/** Number of rows in the grid. */
|
|
1266
|
+
rows: number;
|
|
1267
|
+
/** Outer margin before the first tile, in pixels (default 0). */
|
|
1268
|
+
margin?: number;
|
|
1269
|
+
/** Gap between adjacent tiles, in pixels (default 0). */
|
|
1270
|
+
spacing?: number;
|
|
1271
|
+
/** Optional index→name labels when a descriptor supplies them. */
|
|
1272
|
+
names?: string[];
|
|
1273
|
+
}
|
|
1274
|
+
declare const TilesheetSchema: z.ZodObject<{
|
|
1275
|
+
imagePath: z.ZodString;
|
|
1276
|
+
tileWidth: z.ZodNumber;
|
|
1277
|
+
tileHeight: z.ZodNumber;
|
|
1278
|
+
columns: z.ZodNumber;
|
|
1279
|
+
rows: z.ZodNumber;
|
|
1280
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
1281
|
+
spacing: z.ZodOptional<z.ZodNumber>;
|
|
1282
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
columns: number;
|
|
1285
|
+
rows: number;
|
|
1286
|
+
imagePath: string;
|
|
1287
|
+
tileWidth: number;
|
|
1288
|
+
tileHeight: number;
|
|
1289
|
+
margin?: number | undefined;
|
|
1290
|
+
spacing?: number | undefined;
|
|
1291
|
+
names?: string[] | undefined;
|
|
1292
|
+
}, {
|
|
1293
|
+
columns: number;
|
|
1294
|
+
rows: number;
|
|
1295
|
+
imagePath: string;
|
|
1296
|
+
tileWidth: number;
|
|
1297
|
+
tileHeight: number;
|
|
1298
|
+
margin?: number | undefined;
|
|
1299
|
+
spacing?: number | undefined;
|
|
1300
|
+
names?: string[] | undefined;
|
|
1301
|
+
}>;
|
|
1302
|
+
/**
|
|
1303
|
+
* The three roles a source pack plays, decided by the systematic per-folder
|
|
1304
|
+
* scan (see `docs/Almadar_Std_Assets.md`):
|
|
1305
|
+
* - `board-tileset` — a genre/canvas-matched terrain/level set, often ~1:1 with a board.
|
|
1306
|
+
* - `character-kit` — modular layered character parts assembled into one figure.
|
|
1307
|
+
* - `shared-primitive` — backgrounds / effects / UI / particles fanned out to many boards.
|
|
1308
|
+
*/
|
|
1309
|
+
declare const PACK_CLASSES: readonly ["board-tileset", "character-kit", "shared-primitive"];
|
|
1310
|
+
type PackClass = (typeof PACK_CLASSES)[number];
|
|
1311
|
+
declare const PackClassSchema: z.ZodEnum<["board-tileset", "character-kit", "shared-primitive"]>;
|
|
1312
|
+
/**
|
|
1313
|
+
* A modular character-kit layer: one selectable part (`head`/`hair`/`shirt`/…)
|
|
1314
|
+
* resolved to a sub-texture ref. Recorded now so the analysis can RECOGNIZE
|
|
1315
|
+
* modular packs; the layered compositor that stacks these is a later follow-up.
|
|
1316
|
+
*/
|
|
1317
|
+
interface CharacterKitLayer {
|
|
1318
|
+
/** Which body slot this layer fills. */
|
|
1319
|
+
slot: 'body' | 'head' | 'face' | 'hair' | 'facialHair' | 'shirt' | 'pants' | 'shoes' | 'accessory';
|
|
1320
|
+
/** Sheet PNG the part lives on. */
|
|
1321
|
+
url: AssetUrl;
|
|
1322
|
+
/** Atlas JSON next to the sheet. */
|
|
1323
|
+
atlas?: AssetUrl;
|
|
1324
|
+
/** Sub-texture name within the atlas. */
|
|
1325
|
+
sprite?: string;
|
|
1326
|
+
}
|
|
1327
|
+
declare const CharacterKitLayerSchema: z.ZodObject<{
|
|
1328
|
+
slot: z.ZodEnum<["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]>;
|
|
1329
|
+
url: z.ZodString;
|
|
1330
|
+
atlas: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
sprite: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1334
|
+
url: string;
|
|
1335
|
+
atlas?: string | undefined;
|
|
1336
|
+
sprite?: string | undefined;
|
|
1337
|
+
}, {
|
|
1338
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1339
|
+
url: string;
|
|
1340
|
+
atlas?: string | undefined;
|
|
1341
|
+
sprite?: string | undefined;
|
|
1342
|
+
}>;
|
|
1343
|
+
/** A recognized modular-character pack: an ordered, back-to-front layer stack. */
|
|
1344
|
+
interface CharacterKit {
|
|
1345
|
+
/** Source pack slug the kit came from. */
|
|
1346
|
+
pack: string;
|
|
1347
|
+
/** Layers in back-to-front draw order. */
|
|
1348
|
+
layers: CharacterKitLayer[];
|
|
1349
|
+
}
|
|
1350
|
+
declare const CharacterKitSchema: z.ZodObject<{
|
|
1351
|
+
pack: z.ZodString;
|
|
1352
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
1353
|
+
slot: z.ZodEnum<["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]>;
|
|
1354
|
+
url: z.ZodString;
|
|
1355
|
+
atlas: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
sprite: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1359
|
+
url: string;
|
|
1360
|
+
atlas?: string | undefined;
|
|
1361
|
+
sprite?: string | undefined;
|
|
1362
|
+
}, {
|
|
1363
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1364
|
+
url: string;
|
|
1365
|
+
atlas?: string | undefined;
|
|
1366
|
+
sprite?: string | undefined;
|
|
1367
|
+
}>, "many">;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
pack: string;
|
|
1370
|
+
layers: {
|
|
1371
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1372
|
+
url: string;
|
|
1373
|
+
atlas?: string | undefined;
|
|
1374
|
+
sprite?: string | undefined;
|
|
1375
|
+
}[];
|
|
1376
|
+
}, {
|
|
1377
|
+
pack: string;
|
|
1378
|
+
layers: {
|
|
1379
|
+
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1380
|
+
url: string;
|
|
1381
|
+
atlas?: string | undefined;
|
|
1382
|
+
sprite?: string | undefined;
|
|
1383
|
+
}[];
|
|
1384
|
+
}>;
|
|
1135
1385
|
/**
|
|
1136
1386
|
* Semantic reference to an asset (not a hardcoded path).
|
|
1137
1387
|
* Resolved to actual paths at compile time via asset maps.
|
|
@@ -1186,8 +1436,21 @@ declare const SemanticAssetRefSchema: z.ZodObject<{
|
|
|
1186
1436
|
* pixel-dimension or filename heuristics needed to know sheet-vs-frame / 2d-vs-3d).
|
|
1187
1437
|
*/
|
|
1188
1438
|
interface Asset extends SemanticAssetRef {
|
|
1189
|
-
/** The resolved asset URL. */
|
|
1439
|
+
/** The resolved asset URL. When `atlas`/`sprite` are set this is the SHEET png; otherwise a standalone image. */
|
|
1190
1440
|
url: AssetUrl;
|
|
1441
|
+
/**
|
|
1442
|
+
* Optional atlas JSON (a `TextureAtlas` or `Tilesheet`) that slices `url`.
|
|
1443
|
+
* When present with `sprite`, the renderer fetches sheet + atlas once and
|
|
1444
|
+
* blits one sub-rect instead of loading a standalone PNG. Absent → `url` is
|
|
1445
|
+
* a plain whole-image asset (the existing, non-atlas path).
|
|
1446
|
+
*/
|
|
1447
|
+
atlas?: AssetUrl;
|
|
1448
|
+
/**
|
|
1449
|
+
* The sub-texture selector within `atlas`: a `SubTexture` name for a
|
|
1450
|
+
* `TextureAtlas` (e.g. `"grass.png"`), or a `"col,row"`/flat index for a
|
|
1451
|
+
* `Tilesheet`. Only meaningful alongside `atlas`.
|
|
1452
|
+
*/
|
|
1453
|
+
sprite?: string;
|
|
1191
1454
|
/** Optional display name (inspector picker). */
|
|
1192
1455
|
name?: string;
|
|
1193
1456
|
/** Optional thumbnail URL (inspector picker grid). */
|
|
@@ -1203,6 +1466,8 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
1203
1466
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
1204
1467
|
} & {
|
|
1205
1468
|
url: z.ZodString;
|
|
1469
|
+
atlas: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
sprite: z.ZodOptional<z.ZodString>;
|
|
1206
1471
|
name: z.ZodOptional<z.ZodString>;
|
|
1207
1472
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
1208
1473
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1211,6 +1476,8 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
1211
1476
|
category: string;
|
|
1212
1477
|
name?: string | undefined;
|
|
1213
1478
|
animations?: string[] | undefined;
|
|
1479
|
+
atlas?: string | undefined;
|
|
1480
|
+
sprite?: string | undefined;
|
|
1214
1481
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
1215
1482
|
variant?: string | undefined;
|
|
1216
1483
|
dimension?: "2d" | "3d" | undefined;
|
|
@@ -1222,6 +1489,8 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
1222
1489
|
category: string;
|
|
1223
1490
|
name?: string | undefined;
|
|
1224
1491
|
animations?: string[] | undefined;
|
|
1492
|
+
atlas?: string | undefined;
|
|
1493
|
+
sprite?: string | undefined;
|
|
1225
1494
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
1226
1495
|
variant?: string | undefined;
|
|
1227
1496
|
dimension?: "2d" | "3d" | undefined;
|
|
@@ -6561,4 +6830,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6561
6830
|
} | undefined;
|
|
6562
6831
|
}>]>;
|
|
6563
6832
|
|
|
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,
|
|
6833
|
+
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, type OrbitalEntity as a$, type CharacterKit as a0, type CharacterKitLayer as a1, CharacterKitLayerSchema as a2, CharacterKitSchema as a3, type CheckpointLoadEffect as a4, type CheckpointSaveEffect as a5, ConfigFieldDeclarationSchema as a6, type DeclaredTraitConfig as a7, DeclaredTraitConfigSchema as a8, type DerefEffect as a9, type FetchEffect as aA, type FetchOptions as aB, type FetchResult as aC, type Field as aD, type FieldFormat as aE, FieldFormatSchema as aF, FieldSchema as aG, type FieldType as aH, FieldTypeSchema as aI, type FieldValue as aJ, type ForwardConfig as aK, type ForwardEffect as aL, GAME_TYPES as aM, type GameType as aN, GameTypeSchema as aO, type Guard as aP, type GuardInput as aQ, GuardSchema as aR, type ListenSource as aS, ListenSourceSchema as aT, type LogEffect as aU, type McpServiceDef as aV, McpServiceDefSchema as aW, type NavigateEffect as aX, type NnConfig as aY, type NnLayer as aZ, type NotifyEffect as a_, type DespawnEffect as aa, type DoEffect as ab, ENTITY_ROLES as ac, type EffectInput as ad, EffectSchema as ae, type EmitConfig as af, type EmitEffect as ag, type EntityData as ah, type EntityFieldContract as ai, EntityFieldContractSchema as aj, type EntityFieldInput as ak, EntityFieldSchema as al, EntityPersistenceSchema as am, type EntityRole as an, EntityRoleSchema as ao, EntitySchema as ap, type EntityWith as aq, type EnumEntityField as ar, type EvaluateConfig as as, type EvaluateEffect as at, type Event as au, type EventInput as av, EventPayloadFieldSchema as aw, EventSchema as ax, type EventScope as ay, EventScopeSchema as az, type RenderUIEffect as b, type SwapEffect as b$, type OrbitalEntityInput as b0, OrbitalEntitySchema as b1, type OrbitalTraitRef as b2, OrbitalTraitRefSchema as b3, type OsEffect as b4, PACK_CLASSES as b5, type PackClass as b6, PackClassSchema as b7, type PayloadField as b8, PayloadFieldSchema as b9, ServiceDefinitionSchema as bA, type ServiceParams as bB, type ServiceParamsValue as bC, type ServiceRefObject as bD, ServiceRefObjectSchema as bE, ServiceRefSchema as bF, ServiceRefStringSchema as bG, type ServiceType as bH, ServiceTypeSchema as bI, type SetEffect as bJ, type SocketEvents as bK, SocketEventsSchema as bL, type SocketServiceDef as bM, SocketServiceDefSchema as bN, type SpawnEffect as bO, type SpriteDirection as bP, SpriteDirectionSchema as bQ, type SpriteSheetAtlas as bR, type SpriteSheetAtlasInput as bS, SpriteSheetAtlasSchema as bT, type StateInput as bU, type StateMachine as bV, type StateMachineInput as bW, StateMachineSchema as bX, StateSchema as bY, type SubTexture as bZ, SubTextureSchema as b_, type PersistData as ba, type PersistEffect as bb, type PersistEmitConfig as bc, type PresentationType as bd, type RefEffect as be, RelationConfigSchema as bf, type RelationEntityField as bg, type RenderItemLambda as bh, type RenderUIConfig as bi, type RenderUINode as bj, type RequiredField as bk, RequiredFieldSchema as bl, type ResolvedAsset as bm, type ResolvedAssetInput as bn, ResolvedAssetSchema as bo, type ResolvedPatternProps as bp, type RestAuthConfig as bq, RestAuthConfigSchema as br, type RestServiceDef as bs, RestServiceDefSchema as bt, SERVICE_TYPES as bu, SPRITE_DIRECTIONS as bv, type ScalarEntityField as bw, type SemanticAssetRef as bx, type SemanticAssetRefInput as by, SemanticAssetRefSchema as bz, type TraitEventContract as c, normalizeTraitRef as c$, type TextureAtlas as c0, TextureAtlasSchema as c1, type Tilesheet as c2, TilesheetSchema as c3, type TrainConfig as c4, type TrainEffect as c5, type TraitCategory as c6, TraitCategorySchema as c7, TraitConfigSchema as c8, type TraitConfigValue as c9, atomic as cA, callService as cB, createAssetKey as cC, deref as cD, deriveCollection as cE, despawn as cF, doEffects as cG, emit as cH, findService as cI, getDefaultAnimationsForRole as cJ, getServiceNames as cK, getTraitConfig as cL, getTraitName as cM, hasService as cN, isCallSiteConfigDeclaration as cO, isCircuitEvent as cP, isEffect as cQ, isInlineTrait as cR, isMcpService as cS, isRestService as cT, isRuntimeEntity as cU, isSExprEffect as cV, isServiceReference as cW, isServiceReferenceObject as cX, isSingletonEntity as cY, isSocketService as cZ, navigate as c_, TraitConfigValueSchema as ca, type TraitDataEntity as cb, TraitDataEntitySchema as cc, type TraitEntityField as cd, TraitEntityFieldSchema as ce, TraitEventContractSchema as cf, TraitEventListenerSchema as cg, type TraitInput as ch, TraitRefSchema as ci, type TraitReferenceInput as cj, TraitReferenceSchema as ck, TraitSchema as cl, type TraitTick as cm, TraitTickSchema as cn, type TraitUIBinding as co, type Transition as cp, type TransitionInput as cq, TransitionSchema as cr, type TypedEffect as cs, UISlotSchema as ct, UI_SLOTS as cu, VISUAL_STYLES as cv, type VisualStyle as cw, VisualStyleSchema as cx, type WatchEffect as cy, type WatchOptions as cz, type Entity as d, notify as d0, parseAssetKey as d1, parseServiceRef as d2, persist as d3, persistenceModeAllowsOverrides as d4, ref as d5, renderUI as d6, set as d7, spawn as d8, swap as d9, validateAssetAnimations as da, watch as db, type TraitScope as dc, 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 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
|
|
1
|
+
import { O as OrbitalSchema, a7 as Orbital, b as Page, L as DomainContext, a as OrbitalDefinition, b0 as PageTraitRef } from '../schema-BVcq7eXk.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-BVcq7eXk.js';
|
|
3
|
+
import { bB as ServiceParams, a as Trait, d as Entity, h as EntityRow, aJ as FieldValue, a7 as DeclaredTraitConfig, T as TraitConfig, E as Effect, n as ConfigFieldDeclaration, p as State, cp as Transition, f as EntityField, au as Event, c9 as TraitConfigValue, g as EntityPersistence, c6 as TraitCategory, dc as TraitScope } from '../trait-Ctj2l6ma.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 CharacterKit, a1 as CharacterKitLayer, a2 as CharacterKitLayerSchema, a3 as CharacterKitSchema, a4 as CheckpointLoadEffect, a5 as CheckpointSaveEffect, a6 as ConfigFieldDeclarationSchema, a8 as DeclaredTraitConfigSchema, a9 as DerefEffect, aa as DespawnEffect, ab as DoEffect, ac as ENTITY_ROLES, ad as EffectInput, ae as EffectSchema, af as EmitConfig, ag as EmitEffect, ah as EntityData, ai as EntityFieldContract, aj as EntityFieldContractSchema, ak as EntityFieldInput, al as EntityFieldSchema, am as EntityPersistenceSchema, an as EntityRole, ao as EntityRoleSchema, ap as EntitySchema, aq as EntityWith, ar as EnumEntityField, as as EvaluateConfig, at as EvaluateEffect, av as EventInput, m as EventPayloadField, aw as EventPayloadFieldSchema, ax as EventSchema, ay as EventScope, az as EventScopeSchema, aA as FetchEffect, aB as FetchOptions, aC as FetchResult, aD as Field, aE as FieldFormat, aF as FieldFormatSchema, aG as FieldSchema, aH as FieldType, aI as FieldTypeSchema, aK as ForwardConfig, aL as ForwardEffect, aM as GAME_TYPES, aN as GameType, aO as GameTypeSchema, aP as Guard, aQ as GuardInput, aR as GuardSchema, aS as ListenSource, aT as ListenSourceSchema, aU as LogEffect, aV as McpServiceDef, aW as McpServiceDefSchema, aX as NavigateEffect, aY as NnConfig, aZ as NnLayer, a_ as NotifyEffect, a$ as OrbitalEntity, b0 as OrbitalEntityInput, b1 as OrbitalEntitySchema, b2 as OrbitalTraitRef, b3 as OrbitalTraitRefSchema, b4 as OsEffect, b5 as PACK_CLASSES, b6 as PackClass, b7 as PackClassSchema, b8 as PayloadField, b9 as PayloadFieldSchema, ba as PersistData, bb as PersistEffect, bc as PersistEmitConfig, bd as PresentationType, be as RefEffect, k as RelationConfig, bf as RelationConfigSchema, bg as RelationEntityField, R as RenderBinding, bh as RenderItemLambda, bi as RenderUIConfig, b as RenderUIEffect, bj as RenderUINode, bk as RequiredField, bl as RequiredFieldSchema, bm as ResolvedAsset, bn as ResolvedAssetInput, bo as ResolvedAssetSchema, bp as ResolvedPatternProps, bq as RestAuthConfig, br as RestAuthConfigSchema, bs as RestServiceDef, bt as RestServiceDefSchema, bu as SERVICE_TYPES, bv as SPRITE_DIRECTIONS, bw as ScalarEntityField, bx as SemanticAssetRef, by as SemanticAssetRefInput, bz as SemanticAssetRefSchema, o as ServiceDefinition, bA as ServiceDefinitionSchema, bC as ServiceParamsValue, S as ServiceRef, bD as ServiceRefObject, bE as ServiceRefObjectSchema, bF as ServiceRefSchema, bG as ServiceRefStringSchema, bH as ServiceType, bI as ServiceTypeSchema, bJ as SetEffect, bK as SocketEvents, bL as SocketEventsSchema, bM as SocketServiceDef, bN as SocketServiceDefSchema, bO as SpawnEffect, bP as SpriteDirection, bQ as SpriteDirectionSchema, bR as SpriteSheetAtlas, bS as SpriteSheetAtlasInput, bT as SpriteSheetAtlasSchema, bU as StateInput, bV as StateMachine, bW as StateMachineInput, bX as StateMachineSchema, bY as StateSchema, bZ as SubTexture, b_ as SubTextureSchema, b$ as SwapEffect, c0 as TextureAtlas, c1 as TextureAtlasSchema, c2 as Tilesheet, c3 as TilesheetSchema, c4 as TrainConfig, c5 as TrainEffect, c7 as TraitCategorySchema, l as TraitConfigObject, c8 as TraitConfigSchema, ca as TraitConfigValueSchema, cb as TraitDataEntity, cc as TraitDataEntitySchema, cd as TraitEntityField, ce as TraitEntityFieldSchema, c as TraitEventContract, cf as TraitEventContractSchema, e as TraitEventListener, cg as TraitEventListenerSchema, ch as TraitInput, i as TraitRef, ci as TraitRefSchema, j as TraitReference, cj as TraitReferenceInput, ck as TraitReferenceSchema, cl as TraitSchema, cm as TraitTick, cn as TraitTickSchema, co as TraitUIBinding, cq as TransitionInput, cr as TransitionSchema, cs as TypedEffect, U as UISlot, ct as UISlotSchema, cu as UI_SLOTS, cv as VISUAL_STYLES, cw as VisualStyle, cx as VisualStyleSchema, cy as WatchEffect, cz as WatchOptions, cA as atomic, cB as callService, cC as createAssetKey, cD as deref, cE as deriveCollection, cF as despawn, cG as doEffects, cH as emit, cI as findService, cJ as getDefaultAnimationsForRole, cK as getServiceNames, cL as getTraitConfig, cM as getTraitName, cN as hasService, cO as isCallSiteConfigDeclaration, cP as isCircuitEvent, cQ as isEffect, cR as isInlineTrait, cS as isMcpService, cT as isRestService, cU as isRuntimeEntity, cV as isSExprEffect, cW as isServiceReference, cX as isServiceReferenceObject, cY as isSingletonEntity, cZ as isSocketService, c_ as navigate, c$ as normalizeTraitRef, d0 as notify, d1 as parseAssetKey, d2 as parseServiceRef, d3 as persist, d4 as persistenceModeAllowsOverrides, d5 as ref, d6 as renderUI, d7 as set, d8 as spawn, d9 as swap, da as validateAssetAnimations, db as watch } from '../trait-Ctj2l6ma.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-QQ9BTzkx.js';
|
|
11
|
+
export { t as isJsonArray, u as isJsonObject, v as isJsonPrimitive } from '../types-QQ9BTzkx.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* S-Expression Bindings
|
package/dist/types/index.js
CHANGED
|
@@ -187,6 +187,42 @@ var SpriteSheetAtlasSchema = z.object({
|
|
|
187
187
|
sheets: z.record(SpriteDirectionSchema, z.string()),
|
|
188
188
|
animations: z.record(AnimationNameSchema, AnimationDefSchema)
|
|
189
189
|
});
|
|
190
|
+
var SubTextureSchema = z.object({
|
|
191
|
+
x: z.number().nonnegative(),
|
|
192
|
+
y: z.number().nonnegative(),
|
|
193
|
+
width: z.number().positive(),
|
|
194
|
+
height: z.number().positive(),
|
|
195
|
+
frameX: z.number().optional(),
|
|
196
|
+
frameY: z.number().optional(),
|
|
197
|
+
frameWidth: z.number().positive().optional(),
|
|
198
|
+
frameHeight: z.number().positive().optional()
|
|
199
|
+
});
|
|
200
|
+
var TextureAtlasSchema = z.object({
|
|
201
|
+
imagePath: z.string(),
|
|
202
|
+
subTextures: z.record(z.string(), SubTextureSchema)
|
|
203
|
+
});
|
|
204
|
+
var TilesheetSchema = z.object({
|
|
205
|
+
imagePath: z.string(),
|
|
206
|
+
tileWidth: z.number().positive(),
|
|
207
|
+
tileHeight: z.number().positive(),
|
|
208
|
+
columns: z.number().int().positive(),
|
|
209
|
+
rows: z.number().int().positive(),
|
|
210
|
+
margin: z.number().nonnegative().optional(),
|
|
211
|
+
spacing: z.number().nonnegative().optional(),
|
|
212
|
+
names: z.array(z.string()).optional()
|
|
213
|
+
});
|
|
214
|
+
var PACK_CLASSES = ["board-tileset", "character-kit", "shared-primitive"];
|
|
215
|
+
var PackClassSchema = z.enum(PACK_CLASSES);
|
|
216
|
+
var CharacterKitLayerSchema = z.object({
|
|
217
|
+
slot: z.enum(["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]),
|
|
218
|
+
url: z.string(),
|
|
219
|
+
atlas: z.string().optional(),
|
|
220
|
+
sprite: z.string().optional()
|
|
221
|
+
});
|
|
222
|
+
var CharacterKitSchema = z.object({
|
|
223
|
+
pack: z.string(),
|
|
224
|
+
layers: z.array(CharacterKitLayerSchema)
|
|
225
|
+
});
|
|
190
226
|
var SemanticAssetRefSchema = z.object({
|
|
191
227
|
role: EntityRoleSchema,
|
|
192
228
|
category: z.string().min(1),
|
|
@@ -198,6 +234,8 @@ var SemanticAssetRefSchema = z.object({
|
|
|
198
234
|
});
|
|
199
235
|
var AssetSchema = SemanticAssetRefSchema.extend({
|
|
200
236
|
url: z.string(),
|
|
237
|
+
atlas: z.string().optional(),
|
|
238
|
+
sprite: z.string().optional(),
|
|
201
239
|
name: z.string().optional(),
|
|
202
240
|
thumbnailUrl: z.string().optional()
|
|
203
241
|
});
|
|
@@ -1979,6 +2017,6 @@ function widenTier(tier) {
|
|
|
1979
2017
|
return tier;
|
|
1980
2018
|
}
|
|
1981
2019
|
|
|
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 };
|
|
2020
|
+
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, CharacterKitLayerSchema, CharacterKitSchema, 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, PACK_CLASSES, PackClassSchema, 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, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TilesheetSchema, 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 };
|
|
1983
2021
|
//# sourceMappingURL=index.js.map
|
|
1984
2022
|
//# sourceMappingURL=index.js.map
|