@almadar/core 10.19.0 → 10.20.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 +16 -47
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-DEeRtnHP.d.ts → compose-behaviors-mP-vUG61.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 +16 -47
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +16 -47
- package/dist/index.js.map +1 -1
- package/dist/{schema-BOGLyI7O.d.ts → schema-BEL2Gr4v.d.ts} +1530 -1530
- package/dist/{trait-BnNByIRE.d.ts → trait-BcRvHKLW.d.ts} +156 -371
- package/dist/types/index.d.ts +376 -255
- package/dist/types/index.js +16 -47
- package/dist/types/index.js.map +1 -1
- package/dist/{types-By4AQApw.d.ts → types-DBzaYmuJ.d.ts} +57 -57
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
|
@@ -154,18 +154,6 @@ var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
|
154
154
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
155
155
|
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
156
156
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
157
|
-
var GAME_TYPES = [
|
|
158
|
-
"platformer",
|
|
159
|
-
"roguelike",
|
|
160
|
-
"top-down",
|
|
161
|
-
"puzzle",
|
|
162
|
-
"racing",
|
|
163
|
-
"card",
|
|
164
|
-
"board",
|
|
165
|
-
"shooter",
|
|
166
|
-
"rpg"
|
|
167
|
-
];
|
|
168
|
-
var GameTypeSchema = z.enum(GAME_TYPES);
|
|
169
157
|
var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
|
|
170
158
|
var AnimationNameSchema = z.enum(ANIMATION_NAMES);
|
|
171
159
|
var SPRITE_DIRECTIONS = ["se", "sw"];
|
|
@@ -211,20 +199,8 @@ var TilesheetSchema = z.object({
|
|
|
211
199
|
spacing: z.number().nonnegative().optional(),
|
|
212
200
|
names: z.array(z.string()).optional()
|
|
213
201
|
});
|
|
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
|
-
});
|
|
226
202
|
var SemanticAssetRefSchema = z.object({
|
|
227
|
-
role:
|
|
203
|
+
role: z.string().min(1),
|
|
228
204
|
category: z.string().min(1),
|
|
229
205
|
animations: z.array(z.string()).optional(),
|
|
230
206
|
style: VisualStyleSchema.optional(),
|
|
@@ -239,27 +215,6 @@ var AssetSchema = SemanticAssetRefSchema.extend({
|
|
|
239
215
|
name: z.string().optional(),
|
|
240
216
|
thumbnailUrl: z.string().optional()
|
|
241
217
|
});
|
|
242
|
-
var ResolvedAssetSchema = z.object({
|
|
243
|
-
basePath: z.string(),
|
|
244
|
-
path: z.string(),
|
|
245
|
-
tiles: z.array(z.number()).optional(),
|
|
246
|
-
tileSize: z.number().positive().optional(),
|
|
247
|
-
files: z.array(z.string()).optional(),
|
|
248
|
-
animations: z.record(AnimationDefSchema).optional()
|
|
249
|
-
});
|
|
250
|
-
var AssetMappingSchema = z.object({
|
|
251
|
-
path: z.string(),
|
|
252
|
-
tiles: z.array(z.number()).optional(),
|
|
253
|
-
tileSize: z.number().positive().optional(),
|
|
254
|
-
files: z.array(z.string()).optional(),
|
|
255
|
-
animations: z.record(AnimationDefSchema).optional()
|
|
256
|
-
});
|
|
257
|
-
var AssetMapSchema = z.object({
|
|
258
|
-
gameType: GameTypeSchema,
|
|
259
|
-
style: VisualStyleSchema,
|
|
260
|
-
basePath: z.string(),
|
|
261
|
-
mappings: z.record(AssetMappingSchema)
|
|
262
|
-
});
|
|
263
218
|
var AssetCatalogEntrySchema = z.object({
|
|
264
219
|
url: z.string(),
|
|
265
220
|
name: z.string(),
|
|
@@ -270,6 +225,20 @@ var AssetCatalogEntrySchema = z.object({
|
|
|
270
225
|
aspect: AssetAspectSchema.optional()
|
|
271
226
|
});
|
|
272
227
|
var AssetCatalogSchema = z.array(AssetCatalogEntrySchema);
|
|
228
|
+
var ScenePosSchema = z.object({
|
|
229
|
+
x: z.number(),
|
|
230
|
+
y: z.number(),
|
|
231
|
+
z: z.number().optional()
|
|
232
|
+
});
|
|
233
|
+
var CAMERA_MODES = ["isometric", "perspective", "top-down", "follow", "chase"];
|
|
234
|
+
var CameraModeSchema = z.enum(CAMERA_MODES);
|
|
235
|
+
var CameraSchema = z.object({
|
|
236
|
+
pos: ScenePosSchema.optional(),
|
|
237
|
+
target: ScenePosSchema.optional(),
|
|
238
|
+
zoom: z.number().optional(),
|
|
239
|
+
fov: z.number().optional(),
|
|
240
|
+
mode: CameraModeSchema.optional()
|
|
241
|
+
});
|
|
273
242
|
function createAssetKey(role, category) {
|
|
274
243
|
return `${role}:${category}`;
|
|
275
244
|
}
|
|
@@ -2012,6 +1981,6 @@ function widenTier(tier) {
|
|
|
2012
1981
|
return tier;
|
|
2013
1982
|
}
|
|
2014
1983
|
|
|
2015
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema,
|
|
1984
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, CORE_BINDINGS, CameraModeSchema, CameraSchema, 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, GameSubCategorySchema, 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, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, 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, 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 };
|
|
2016
1985
|
//# sourceMappingURL=index.js.map
|
|
2017
1986
|
//# sourceMappingURL=index.js.map
|