@almadar/core 10.89.0 → 10.91.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 +11 -3
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-CdLBg9zL.d.ts → effect-Bt8vKHwd.d.ts} +66 -42
  5. package/dist/{entityAccess-BmZHpQUv.d.ts → entityAccess-BdDX85rM.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +662 -49
  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 +11 -3
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/i18n/index.js +12 -0
  13. package/dist/i18n/index.js.map +1 -1
  14. package/dist/{index-CV_iM5Cm.d.ts → index-rOBf1Oag.d.ts} +83 -6
  15. package/dist/index.d.ts +34 -12
  16. package/dist/index.js +975 -57
  17. package/dist/index.js.map +1 -1
  18. package/dist/mock/index.d.ts +60 -5
  19. package/dist/mock/index.js +35 -4
  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 +1875 -53
  24. package/dist/patterns/index.js +930 -51
  25. package/dist/patterns/index.js.map +1 -1
  26. package/dist/patterns/integrators-registry.json +264 -1
  27. package/dist/patterns/patterns-registry.json +654 -47
  28. package/dist/patterns/registry.json +654 -47
  29. package/dist/patterns/services-registry.json +284 -1
  30. package/dist/{schema-DYC_RnBX.d.ts → schema-ovDTDQz9.d.ts} +495 -323
  31. package/dist/{trait-DmWdtKlP.d.ts → trait-C3e3btfn.d.ts} +98 -55
  32. package/dist/types/index.d.ts +5 -5
  33. package/dist/types/index.js +13 -7
  34. package/dist/types/index.js.map +1 -1
  35. package/dist/{types-DdK77hq2.d.ts → types-rh0naR6C.d.ts} +2 -2
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-DYC_RnBX.js';
2
- import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-DmWdtKlP.js';
3
- import { E as EntityField, a as EntityPersistence } from '../effect-CdLBg9zL.js';
1
+ import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-ovDTDQz9.js';
2
+ import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-C3e3btfn.js';
3
+ import { E as EntityField, a as EntityPersistence } from '../effect-Bt8vKHwd.js';
4
4
  import { MakeTraitRefOpts } from '../builders.js';
5
5
  import '../json-D8gmyK3l.js';
6
6
  import '../expression-WfTp2arD.js';
@@ -167,7 +167,8 @@ var EntityFieldSchema = z.lazy(() => {
167
167
  properties: z.record(EntityFieldSchema).optional(),
168
168
  intrinsic: z.boolean().optional(),
169
169
  description: z.string().optional(),
170
- synonyms: z.string().optional()
170
+ synonyms: z.string().optional(),
171
+ mergedFrom: z.string().optional()
171
172
  };
172
173
  function scalarVariant(t) {
173
174
  return z.object({
@@ -264,7 +265,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
264
265
  var VisualStyleSchema = z.enum(VISUAL_STYLES);
265
266
  var ASSET_DIMENSIONS = ["2d", "3d"];
266
267
  var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
267
- var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
268
+ var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
268
269
  var AssetAspectSchema = z.enum(ASSET_ASPECTS);
269
270
  var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
270
271
  z.enum(ANIMATION_NAMES);
@@ -334,7 +335,9 @@ SemanticAssetRefSchema.extend({
334
335
  atlas: z.string().optional(),
335
336
  sprite: z.string().optional(),
336
337
  name: z.string().optional(),
337
- thumbnailUrl: z.string().optional()
338
+ thumbnailUrl: z.string().optional(),
339
+ prompt: z.string().optional(),
340
+ choreography: z.record(z.string(), z.array(z.string())).optional()
338
341
  });
339
342
  var AssetCatalogEntrySchema = z.object({
340
343
  url: z.string(),
@@ -469,6 +472,9 @@ var EntitySchema = OrbitalEntitySchema;
469
472
  function persistenceModeAllowsOverrides(persistence) {
470
473
  return persistence === "persistent" || persistence === void 0;
471
474
  }
475
+ var FieldValueSchema = z.lazy(
476
+ () => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
477
+ );
472
478
  var UI_SLOTS = [
473
479
  // App slots
474
480
  "main",
@@ -878,6 +884,8 @@ var TraitSchema = z.object({
878
884
  entityBindingSynonyms: z.string().optional(),
879
885
  capabilities: z.array(z.string()).optional(),
880
886
  scope: TraitScopeSchema,
887
+ /** `local` trait-header flag — declares client-only dispatch (mirrors Rust `OirTrait::local`). Undeclared = server-gated dispatch. */
888
+ local: z.boolean().optional(),
881
889
  linkedEntity: z.string().optional(),
882
890
  linkedEntityId: EntityIdSchema.optional(),
883
891
  entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),