@almadar/core 10.88.0 → 10.90.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 +9 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DMA97JxX.d.ts → effect-7jQQxiIt.d.ts} +58 -42
- package/dist/{entityAccess-B5_Y9zF5.d.ts → entityAccess-CpHfCQA3.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +467 -9
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +9 -2
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/i18n/index.js +6 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-CYE40P_7.d.ts → index-BresfHJy.d.ts} +63 -6
- package/dist/index.d.ts +34 -12
- package/dist/index.js +582 -17
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +54 -5
- package/dist/mock/index.js +33 -3
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +6 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1160 -14
- package/dist/patterns/index.js +545 -12
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +72 -1
- package/dist/patterns/patterns-registry.json +461 -8
- package/dist/patterns/registry.json +461 -8
- package/dist/patterns/services-registry.json +150 -64
- package/dist/{schema-ex9koAoK.d.ts → schema-C52juBr8.d.ts} +500 -325
- package/dist/{trait-BJAX5TJK.d.ts → trait-CFiL1YUN.d.ts} +98 -55
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +11 -6
- package/dist/types/index.js.map +1 -1
- package/dist/{types-kHQhEEXQ.d.ts → types-BgC8ETnl.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, i as RenderBinding, j as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, i as RenderBinding, j as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-7jQQxiIt.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-C52juBr8.js';
|
|
3
|
+
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-CFiL1YUN.js';
|
|
4
4
|
import { S as SExpr } from './expression-WfTp2arD.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './json-D8gmyK3l.js';
|
package/dist/builders.js
CHANGED
|
@@ -254,7 +254,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
|
|
|
254
254
|
var VisualStyleSchema = z.enum(VISUAL_STYLES);
|
|
255
255
|
var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
256
256
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
257
|
-
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
257
|
+
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
|
|
258
258
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
259
259
|
var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
|
|
260
260
|
z.enum(ANIMATION_NAMES);
|
|
@@ -324,7 +324,9 @@ SemanticAssetRefSchema.extend({
|
|
|
324
324
|
atlas: z.string().optional(),
|
|
325
325
|
sprite: z.string().optional(),
|
|
326
326
|
name: z.string().optional(),
|
|
327
|
-
thumbnailUrl: z.string().optional()
|
|
327
|
+
thumbnailUrl: z.string().optional(),
|
|
328
|
+
prompt: z.string().optional(),
|
|
329
|
+
choreography: z.record(z.string(), z.array(z.string())).optional()
|
|
328
330
|
});
|
|
329
331
|
var AssetCatalogEntrySchema = z.object({
|
|
330
332
|
url: z.string(),
|
|
@@ -456,6 +458,9 @@ var OrbitalEntitySchema = z.object({
|
|
|
456
458
|
assetRef: SemanticAssetRefSchema.optional()
|
|
457
459
|
});
|
|
458
460
|
var EntitySchema = OrbitalEntitySchema;
|
|
461
|
+
var FieldValueSchema = z.lazy(
|
|
462
|
+
() => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
|
|
463
|
+
);
|
|
459
464
|
var UI_SLOTS = [
|
|
460
465
|
// App slots
|
|
461
466
|
"main",
|
|
@@ -852,6 +857,8 @@ var TraitSchema = z.object({
|
|
|
852
857
|
entityBindingSynonyms: z.string().optional(),
|
|
853
858
|
capabilities: z.array(z.string()).optional(),
|
|
854
859
|
scope: TraitScopeSchema,
|
|
860
|
+
/** `local` trait-header flag — declares client-only dispatch (mirrors Rust `OirTrait::local`). Undeclared = server-gated dispatch. */
|
|
861
|
+
local: z.boolean().optional(),
|
|
855
862
|
linkedEntity: z.string().optional(),
|
|
856
863
|
linkedEntityId: EntityIdSchema.optional(),
|
|
857
864
|
entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),
|