@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.
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-DMA97JxX.d.ts → effect-7jQQxiIt.d.ts} +58 -42
  5. package/dist/{entityAccess-B5_Y9zF5.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-CYE40P_7.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-ex9koAoK.d.ts → schema-C52juBr8.d.ts} +500 -325
  31. package/dist/{trait-BJAX5TJK.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-kHQhEEXQ.d.ts → types-BgC8ETnl.d.ts} +2 -2
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-ex9koAoK.js';
2
- import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-BJAX5TJK.js';
3
- import { E as EntityField, a as EntityPersistence } from '../effect-DMA97JxX.js';
1
+ import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-C52juBr8.js';
2
+ import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-CFiL1YUN.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-7jQQxiIt.js';
4
4
  import { MakeTraitRefOpts } from '../builders.js';
5
5
  import '../json-D8gmyK3l.js';
6
6
  import '../expression-WfTp2arD.js';
@@ -264,7 +264,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
264
264
  var VisualStyleSchema = z.enum(VISUAL_STYLES);
265
265
  var ASSET_DIMENSIONS = ["2d", "3d"];
266
266
  var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
267
- var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
267
+ var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
268
268
  var AssetAspectSchema = z.enum(ASSET_ASPECTS);
269
269
  var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
270
270
  z.enum(ANIMATION_NAMES);
@@ -334,7 +334,9 @@ SemanticAssetRefSchema.extend({
334
334
  atlas: z.string().optional(),
335
335
  sprite: z.string().optional(),
336
336
  name: z.string().optional(),
337
- thumbnailUrl: z.string().optional()
337
+ thumbnailUrl: z.string().optional(),
338
+ prompt: z.string().optional(),
339
+ choreography: z.record(z.string(), z.array(z.string())).optional()
338
340
  });
339
341
  var AssetCatalogEntrySchema = z.object({
340
342
  url: z.string(),
@@ -469,6 +471,9 @@ var EntitySchema = OrbitalEntitySchema;
469
471
  function persistenceModeAllowsOverrides(persistence) {
470
472
  return persistence === "persistent" || persistence === void 0;
471
473
  }
474
+ var FieldValueSchema = z.lazy(
475
+ () => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
476
+ );
472
477
  var UI_SLOTS = [
473
478
  // App slots
474
479
  "main",
@@ -878,6 +883,8 @@ var TraitSchema = z.object({
878
883
  entityBindingSynonyms: z.string().optional(),
879
884
  capabilities: z.array(z.string()).optional(),
880
885
  scope: TraitScopeSchema,
886
+ /** `local` trait-header flag — declares client-only dispatch (mirrors Rust `OirTrait::local`). Undeclared = server-gated dispatch. */
887
+ local: z.boolean().optional(),
881
888
  linkedEntity: z.string().optional(),
882
889
  linkedEntityId: EntityIdSchema.optional(),
883
890
  entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),