@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
@@ -9384,7 +9384,9 @@ var patterns_registry_default = {
9384
9384
  "function",
9385
9385
  "string"
9386
9386
  ],
9387
- description: "Callback or declarative event key when clear button is clicked"
9387
+ description: "Callback or declarative event key when clear button is clicked",
9388
+ kind: "event-ref",
9389
+ emitPayloadSchema: []
9388
9390
  },
9389
9391
  options: {
9390
9392
  types: [
@@ -9425,7 +9427,22 @@ var patterns_registry_default = {
9425
9427
  "function",
9426
9428
  "string"
9427
9429
  ],
9428
- description: "onChange handler or declarative event key for trait dispatch"
9430
+ description: "onChange handler or declarative event key for trait dispatch",
9431
+ kind: "event-ref",
9432
+ emitPayloadSchema: [
9433
+ {
9434
+ name: "value",
9435
+ type: "string",
9436
+ required: true,
9437
+ typeWhen: [
9438
+ {
9439
+ knob: "inputType",
9440
+ equals: "number",
9441
+ type: "number"
9442
+ }
9443
+ ]
9444
+ }
9445
+ ]
9429
9446
  }
9430
9447
  }
9431
9448
  },
@@ -9478,7 +9495,15 @@ var patterns_registry_default = {
9478
9495
  "function",
9479
9496
  "string"
9480
9497
  ],
9481
- description: "onChange handler or declarative event key for trait dispatch"
9498
+ description: "onChange handler or declarative event key for trait dispatch",
9499
+ kind: "event-ref",
9500
+ emitPayloadSchema: [
9501
+ {
9502
+ name: "value",
9503
+ type: "string",
9504
+ required: true
9505
+ }
9506
+ ]
9482
9507
  }
9483
9508
  }
9484
9509
  },
@@ -9648,7 +9673,26 @@ var patterns_registry_default = {
9648
9673
  "function",
9649
9674
  "string"
9650
9675
  ],
9651
- description: "onChange handler (native ChangeEvent) or declarative event key for trait dispatch"
9676
+ description: "onChange handler (native ChangeEvent) or declarative event key for trait dispatch",
9677
+ kind: "event-ref",
9678
+ emitPayloadSchema: [
9679
+ {
9680
+ name: "value",
9681
+ type: "string",
9682
+ required: true,
9683
+ schema: {
9684
+ types: [
9685
+ "string",
9686
+ "array"
9687
+ ],
9688
+ items: {
9689
+ types: [
9690
+ "string"
9691
+ ]
9692
+ }
9693
+ }
9694
+ }
9695
+ ]
9652
9696
  },
9653
9697
  onValueChange: {
9654
9698
  types: [
@@ -9701,7 +9745,15 @@ var patterns_registry_default = {
9701
9745
  "function",
9702
9746
  "string"
9703
9747
  ],
9704
- description: "onChange handler or declarative event key for trait dispatch"
9748
+ description: "onChange handler or declarative event key for trait dispatch",
9749
+ kind: "event-ref",
9750
+ emitPayloadSchema: [
9751
+ {
9752
+ name: "checked",
9753
+ type: "boolean",
9754
+ required: true
9755
+ }
9756
+ ]
9705
9757
  }
9706
9758
  }
9707
9759
  },
@@ -12322,7 +12374,9 @@ var patterns_registry_default = {
12322
12374
  "function",
12323
12375
  "string"
12324
12376
  ],
12325
- description: "Callback or declarative event key when clear button is clicked"
12377
+ description: "Callback or declarative event key when clear button is clicked",
12378
+ kind: "event-ref",
12379
+ emitPayloadSchema: []
12326
12380
  },
12327
12381
  options: {
12328
12382
  types: [
@@ -12362,7 +12416,22 @@ var patterns_registry_default = {
12362
12416
  "function",
12363
12417
  "string"
12364
12418
  ],
12365
- description: "onChange handler or declarative event key for trait dispatch"
12419
+ description: "onChange handler or declarative event key for trait dispatch",
12420
+ kind: "event-ref",
12421
+ emitPayloadSchema: [
12422
+ {
12423
+ name: "value",
12424
+ type: "string",
12425
+ required: true,
12426
+ typeWhen: [
12427
+ {
12428
+ knob: "inputType",
12429
+ equals: "number",
12430
+ type: "number"
12431
+ }
12432
+ ]
12433
+ }
12434
+ ]
12366
12435
  },
12367
12436
  leftAddon: {
12368
12437
  types: [
@@ -54645,6 +54714,390 @@ var patterns_registry_default = {
54645
54714
  default: "replace"
54646
54715
  }
54647
54716
  }
54717
+ },
54718
+ "draw-skinned-mesh": {
54719
+ type: "draw-skinned-mesh",
54720
+ category: "game",
54721
+ sourceFile: "components/game/atoms/DrawSkinnedMesh.tsx",
54722
+ tier: "atoms",
54723
+ family: "game",
54724
+ description: "DrawSkinnedMesh component",
54725
+ suggestedFor: [
54726
+ "draw",
54727
+ "skinned",
54728
+ "mesh",
54729
+ "draw skinned mesh"
54730
+ ],
54731
+ typicalSize: "small",
54732
+ propsSchema: {
54733
+ id: {
54734
+ types: [
54735
+ "string"
54736
+ ],
54737
+ description: "Optional source-tagged hit-test handle \u2014 the host indexes the drawable's ScenePos\u2192id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id \u2192 the host emits only the coordinate (tile click)."
54738
+ },
54739
+ type: {
54740
+ types: [
54741
+ "string"
54742
+ ],
54743
+ description: "type prop",
54744
+ required: true,
54745
+ enumValues: [
54746
+ "draw-skinned-mesh"
54747
+ ]
54748
+ },
54749
+ position: {
54750
+ types: [
54751
+ "object"
54752
+ ],
54753
+ description: "Logical scene position; mesh local coords are world units relative to its projected top-left.",
54754
+ required: true,
54755
+ properties: {
54756
+ x: {
54757
+ types: [
54758
+ "number"
54759
+ ]
54760
+ },
54761
+ y: {
54762
+ types: [
54763
+ "number"
54764
+ ]
54765
+ },
54766
+ z: {
54767
+ types: [
54768
+ "number"
54769
+ ]
54770
+ }
54771
+ },
54772
+ propertyRequired: [
54773
+ "x",
54774
+ "y"
54775
+ ],
54776
+ scenePos: true
54777
+ },
54778
+ asset: {
54779
+ types: [
54780
+ "object"
54781
+ ],
54782
+ description: "The texture the mesh UVs cut into.",
54783
+ required: true,
54784
+ properties: {
54785
+ url: {
54786
+ types: [
54787
+ "asset"
54788
+ ]
54789
+ },
54790
+ role: {
54791
+ types: [
54792
+ "string"
54793
+ ]
54794
+ },
54795
+ category: {
54796
+ types: [
54797
+ "string"
54798
+ ]
54799
+ },
54800
+ animations: {
54801
+ types: [
54802
+ "array"
54803
+ ],
54804
+ items: {
54805
+ types: [
54806
+ "string"
54807
+ ]
54808
+ }
54809
+ },
54810
+ style: {
54811
+ types: [
54812
+ "string"
54813
+ ],
54814
+ enumValues: [
54815
+ "pixel",
54816
+ "vector",
54817
+ "hd",
54818
+ "1-bit",
54819
+ "isometric"
54820
+ ]
54821
+ },
54822
+ variant: {
54823
+ types: [
54824
+ "string"
54825
+ ]
54826
+ },
54827
+ dimension: {
54828
+ types: [
54829
+ "string"
54830
+ ],
54831
+ enumValues: [
54832
+ "2d",
54833
+ "3d"
54834
+ ]
54835
+ },
54836
+ aspect: {
54837
+ types: [
54838
+ "string"
54839
+ ],
54840
+ enumValues: [
54841
+ "1:1",
54842
+ "16:9",
54843
+ "5:7",
54844
+ "8:1"
54845
+ ]
54846
+ },
54847
+ atlas: {
54848
+ types: [
54849
+ "asset"
54850
+ ]
54851
+ },
54852
+ sprite: {
54853
+ types: [
54854
+ "string"
54855
+ ]
54856
+ },
54857
+ name: {
54858
+ types: [
54859
+ "string"
54860
+ ]
54861
+ },
54862
+ thumbnailUrl: {
54863
+ types: [
54864
+ "string"
54865
+ ]
54866
+ }
54867
+ },
54868
+ propertyRequired: [
54869
+ "url",
54870
+ "role",
54871
+ "category"
54872
+ ]
54873
+ },
54874
+ mesh: {
54875
+ types: [
54876
+ "object"
54877
+ ],
54878
+ description: "Inline bind mesh; wins over `meshUrl`.",
54879
+ properties: {
54880
+ vertices: {
54881
+ types: [
54882
+ "array"
54883
+ ],
54884
+ items: {
54885
+ types: [
54886
+ "object"
54887
+ ],
54888
+ properties: {
54889
+ x: {
54890
+ types: [
54891
+ "number"
54892
+ ]
54893
+ },
54894
+ y: {
54895
+ types: [
54896
+ "number"
54897
+ ]
54898
+ },
54899
+ u: {
54900
+ types: [
54901
+ "number"
54902
+ ]
54903
+ },
54904
+ v: {
54905
+ types: [
54906
+ "number"
54907
+ ]
54908
+ },
54909
+ weights: {
54910
+ types: [
54911
+ "array"
54912
+ ],
54913
+ items: {
54914
+ types: [
54915
+ "object"
54916
+ ],
54917
+ properties: {
54918
+ bone: {
54919
+ types: [
54920
+ "number"
54921
+ ]
54922
+ },
54923
+ w: {
54924
+ types: [
54925
+ "number"
54926
+ ]
54927
+ }
54928
+ },
54929
+ required: [
54930
+ "bone",
54931
+ "w"
54932
+ ]
54933
+ }
54934
+ }
54935
+ },
54936
+ required: [
54937
+ "x",
54938
+ "y",
54939
+ "u",
54940
+ "v",
54941
+ "weights"
54942
+ ]
54943
+ }
54944
+ },
54945
+ triangles: {
54946
+ types: [
54947
+ "array"
54948
+ ],
54949
+ items: {
54950
+ types: [
54951
+ "array"
54952
+ ],
54953
+ items: {
54954
+ types: [
54955
+ "number"
54956
+ ]
54957
+ }
54958
+ }
54959
+ }
54960
+ },
54961
+ propertyRequired: [
54962
+ "vertices",
54963
+ "triangles"
54964
+ ]
54965
+ },
54966
+ meshUrl: {
54967
+ types: [
54968
+ "string"
54969
+ ],
54970
+ description: "URL of a JSON `SkinMesh` (fetched + cached); used when `mesh` is absent."
54971
+ },
54972
+ bones: {
54973
+ types: [
54974
+ "array"
54975
+ ],
54976
+ description: "The skeleton (bind pose; FK chain via `parent` names).",
54977
+ required: true,
54978
+ items: {
54979
+ types: [
54980
+ "object"
54981
+ ],
54982
+ properties: {
54983
+ name: {
54984
+ types: [
54985
+ "string"
54986
+ ]
54987
+ },
54988
+ parent: {
54989
+ types: [
54990
+ "string"
54991
+ ]
54992
+ },
54993
+ pivot: {
54994
+ types: [
54995
+ "array"
54996
+ ],
54997
+ items: {
54998
+ types: [
54999
+ "number"
55000
+ ]
55001
+ }
55002
+ },
55003
+ tip: {
55004
+ types: [
55005
+ "array"
55006
+ ],
55007
+ items: {
55008
+ types: [
55009
+ "number"
55010
+ ]
55011
+ }
55012
+ }
55013
+ },
55014
+ required: [
55015
+ "name",
55016
+ "parent",
55017
+ "pivot",
55018
+ "tip"
55019
+ ]
55020
+ }
55021
+ },
55022
+ pose: {
55023
+ types: [
55024
+ "object"
55025
+ ],
55026
+ description: "Static pose (bone name \u2192 degrees relative to bind). Overridden by `clip` + `frame`.",
55027
+ mapValue: {
55028
+ types: [
55029
+ "number"
55030
+ ]
55031
+ }
55032
+ },
55033
+ clip: {
55034
+ types: [
55035
+ "object"
55036
+ ],
55037
+ description: "Pose animation clip; with `frame`, pose = `frames[frame % frames.length]`.",
55038
+ properties: {
55039
+ frames: {
55040
+ types: [
55041
+ "array"
55042
+ ],
55043
+ items: {
55044
+ types: [
55045
+ "object"
55046
+ ],
55047
+ mapValue: {
55048
+ types: [
55049
+ "number"
55050
+ ]
55051
+ }
55052
+ }
55053
+ }
55054
+ },
55055
+ propertyRequired: [
55056
+ "frames"
55057
+ ]
55058
+ },
55059
+ frame: {
55060
+ types: [
55061
+ "number"
55062
+ ],
55063
+ description: "Clip frame counter (host-driven paint clock frame)."
55064
+ },
55065
+ opacity: {
55066
+ types: [
55067
+ "number"
55068
+ ],
55069
+ description: "0..1 opacity."
55070
+ },
55071
+ weightsOverlay: {
55072
+ types: [
55073
+ "boolean"
55074
+ ],
55075
+ description: "Paint per-triangle dominant-bone colors instead of the texture (rig inspection)."
55076
+ },
55077
+ ghost: {
55078
+ types: [
55079
+ "object"
55080
+ ],
55081
+ description: "Onion skin: render the mesh at this clip frame underneath, at this opacity.",
55082
+ properties: {
55083
+ frame: {
55084
+ types: [
55085
+ "number"
55086
+ ]
55087
+ },
55088
+ opacity: {
55089
+ types: [
55090
+ "number"
55091
+ ]
55092
+ }
55093
+ },
55094
+ propertyRequired: [
55095
+ "frame",
55096
+ "opacity"
55097
+ ]
55098
+ }
55099
+ },
55100
+ drawable: true
54648
55101
  }
54649
55102
  }};
54650
55103
  var JsonValueSchema = z.lazy(
@@ -54904,7 +55357,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
54904
55357
  var VisualStyleSchema = z.enum(VISUAL_STYLES);
54905
55358
  var ASSET_DIMENSIONS = ["2d", "3d"];
54906
55359
  var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
54907
- var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
55360
+ var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
54908
55361
  var AssetAspectSchema = z.enum(ASSET_ASPECTS);
54909
55362
  var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
54910
55363
  z.enum(ANIMATION_NAMES);
@@ -54974,7 +55427,9 @@ SemanticAssetRefSchema.extend({
54974
55427
  atlas: z.string().optional(),
54975
55428
  sprite: z.string().optional(),
54976
55429
  name: z.string().optional(),
54977
- thumbnailUrl: z.string().optional()
55430
+ thumbnailUrl: z.string().optional(),
55431
+ prompt: z.string().optional(),
55432
+ choreography: z.record(z.string(), z.array(z.string())).optional()
54978
55433
  });
54979
55434
  var AssetCatalogEntrySchema = z.object({
54980
55435
  url: z.string(),
@@ -55107,6 +55562,9 @@ z.object({
55107
55562
  function persistenceModeAllowsOverrides(persistence) {
55108
55563
  return persistence === "persistent" || persistence === void 0;
55109
55564
  }
55565
+ var FieldValueSchema = z.lazy(
55566
+ () => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
55567
+ );
55110
55568
  var UI_SLOTS = [
55111
55569
  // App slots
55112
55570
  "main",