@almadar/core 10.89.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.
Files changed (36) hide show
  1. package/dist/builders.d.ts +3 -3
  2. package/dist/builders.js +9 -2
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-CdLBg9zL.d.ts → effect-7jQQxiIt.d.ts} +58 -42
  5. package/dist/{entityAccess-BmZHpQUv.d.ts → entityAccess-CpHfCQA3.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +467 -9
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory-runtime/index.d.ts +3 -3
  10. package/dist/factory-runtime/index.js +9 -2
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/i18n/index.js +6 -0
  13. package/dist/i18n/index.js.map +1 -1
  14. package/dist/{index-CV_iM5Cm.d.ts → index-BresfHJy.d.ts} +63 -6
  15. package/dist/index.d.ts +34 -12
  16. package/dist/index.js +582 -17
  17. package/dist/index.js.map +1 -1
  18. package/dist/mock/index.d.ts +54 -5
  19. package/dist/mock/index.js +33 -3
  20. package/dist/mock/index.js.map +1 -1
  21. package/dist/patterns/component-mapping.json +6 -1
  22. package/dist/patterns/event-contracts.json +1 -1
  23. package/dist/patterns/index.d.ts +1160 -14
  24. package/dist/patterns/index.js +545 -12
  25. package/dist/patterns/index.js.map +1 -1
  26. package/dist/patterns/integrators-registry.json +72 -1
  27. package/dist/patterns/patterns-registry.json +461 -8
  28. package/dist/patterns/registry.json +461 -8
  29. package/dist/patterns/services-registry.json +150 -64
  30. package/dist/{schema-DYC_RnBX.d.ts → schema-C52juBr8.d.ts} +495 -323
  31. package/dist/{trait-DmWdtKlP.d.ts → trait-CFiL1YUN.d.ts} +98 -55
  32. package/dist/types/index.d.ts +5 -5
  33. package/dist/types/index.js +11 -6
  34. package/dist/types/index.js.map +1 -1
  35. package/dist/{types-DdK77hq2.d.ts → types-BgC8ETnl.d.ts} +2 -2
  36. package/package.json +1 -1
@@ -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-CdLBg9zL.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-DYC_RnBX.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-DmWdtKlP.js';
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(),