@almadar/core 10.46.0 → 10.48.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/index.js CHANGED
@@ -600,6 +600,13 @@ var OrbitalEntitySchema = z.object({
600
600
  create_policy: SExprSchema.optional(),
601
601
  update_policy: SExprSchema.optional(),
602
602
  delete_policy: SExprSchema.optional(),
603
+ // Snake_case for the same cross-language reason as the four policies above.
604
+ access_waivers: z.object({
605
+ read: z.string().optional(),
606
+ create: z.string().optional(),
607
+ update: z.string().optional(),
608
+ delete: z.string().optional()
609
+ }).optional(),
603
610
  collection: z.string().optional(),
604
611
  fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
605
612
  instances: z.array(z.record(JsonValueSchema)).optional(),
@@ -2160,7 +2167,7 @@ function getInteractionModelForDomain(domain) {
2160
2167
  // src/patterns/patterns-registry.json
2161
2168
  var patterns_registry_default = {
2162
2169
  version: "1.0.0",
2163
- exportedAt: "2026-07-31T03:04:39.259Z",
2170
+ exportedAt: "2026-07-31T10:02:24.207Z",
2164
2171
  patterns: {
2165
2172
  "entity-table": {
2166
2173
  type: "entity-table",
@@ -41538,7 +41545,8 @@ var patterns_registry_default = {
41538
41545
  ],
41539
41546
  enumValues: [
41540
41547
  "linear",
41541
- "radial"
41548
+ "radial",
41549
+ "conic"
41542
41550
  ]
41543
41551
  },
41544
41552
  from: {
@@ -41561,6 +41569,11 @@ var patterns_registry_default = {
41561
41569
  "number"
41562
41570
  ]
41563
41571
  },
41572
+ angle: {
41573
+ types: [
41574
+ "number"
41575
+ ]
41576
+ },
41564
41577
  stops: {
41565
41578
  types: [
41566
41579
  "array"
@@ -41577,6 +41590,46 @@ var patterns_registry_default = {
41577
41590
  "stops"
41578
41591
  ]
41579
41592
  },
41593
+ fillPattern: {
41594
+ types: [
41595
+ "object"
41596
+ ],
41597
+ description: "Repeating texture painted over the fill (grain / tiling image).",
41598
+ properties: {
41599
+ kind: {
41600
+ types: [
41601
+ "string"
41602
+ ],
41603
+ enumValues: [
41604
+ "noise",
41605
+ "image"
41606
+ ]
41607
+ },
41608
+ url: {
41609
+ types: [
41610
+ "string"
41611
+ ]
41612
+ },
41613
+ scale: {
41614
+ types: [
41615
+ "number"
41616
+ ]
41617
+ },
41618
+ alpha: {
41619
+ types: [
41620
+ "number"
41621
+ ]
41622
+ },
41623
+ color: {
41624
+ types: [
41625
+ "string"
41626
+ ]
41627
+ }
41628
+ },
41629
+ propertyRequired: [
41630
+ "kind"
41631
+ ]
41632
+ },
41580
41633
  stroke: {
41581
41634
  types: [
41582
41635
  "string"
@@ -41589,6 +41642,115 @@ var patterns_registry_default = {
41589
41642
  ],
41590
41643
  description: "strokeWidth prop"
41591
41644
  },
41645
+ strokeGradient: {
41646
+ types: [
41647
+ "object"
41648
+ ],
41649
+ description: "Gradient stroke in world units; overrides `stroke` when present.",
41650
+ properties: {
41651
+ kind: {
41652
+ types: [
41653
+ "string"
41654
+ ],
41655
+ enumValues: [
41656
+ "linear",
41657
+ "radial",
41658
+ "conic"
41659
+ ]
41660
+ },
41661
+ from: {
41662
+ types: [
41663
+ "object"
41664
+ ]
41665
+ },
41666
+ to: {
41667
+ types: [
41668
+ "object"
41669
+ ]
41670
+ },
41671
+ center: {
41672
+ types: [
41673
+ "object"
41674
+ ]
41675
+ },
41676
+ radius: {
41677
+ types: [
41678
+ "number"
41679
+ ]
41680
+ },
41681
+ angle: {
41682
+ types: [
41683
+ "number"
41684
+ ]
41685
+ },
41686
+ stops: {
41687
+ types: [
41688
+ "array"
41689
+ ],
41690
+ items: {
41691
+ types: [
41692
+ "object"
41693
+ ]
41694
+ }
41695
+ }
41696
+ },
41697
+ propertyRequired: [
41698
+ "kind",
41699
+ "stops"
41700
+ ]
41701
+ },
41702
+ strokeDash: {
41703
+ types: [
41704
+ "array"
41705
+ ],
41706
+ description: "Dash pattern in painter-px (constant under group scale, like `strokeWidth`).",
41707
+ items: {
41708
+ types: [
41709
+ "number"
41710
+ ]
41711
+ }
41712
+ },
41713
+ strokeDashOffset: {
41714
+ types: [
41715
+ "number"
41716
+ ],
41717
+ description: "Dash phase offset in painter-px; animatable (marching ants)."
41718
+ },
41719
+ blendMode: {
41720
+ types: [
41721
+ "string"
41722
+ ],
41723
+ description: "Composite/blend mode for this shape's draws (`lighter`, `multiply`, `screen`, \u2026).",
41724
+ enumValues: [
41725
+ "source-over",
41726
+ "lighter",
41727
+ "multiply",
41728
+ "screen",
41729
+ "overlay",
41730
+ "darken",
41731
+ "lighten",
41732
+ "color-dodge",
41733
+ "color-burn",
41734
+ "hard-light",
41735
+ "soft-light",
41736
+ "difference",
41737
+ "exclusion",
41738
+ "hue",
41739
+ "saturation",
41740
+ "color",
41741
+ "luminosity",
41742
+ "source-atop",
41743
+ "destination-over",
41744
+ "destination-out",
41745
+ "xor"
41746
+ ]
41747
+ },
41748
+ blur: {
41749
+ types: [
41750
+ "number"
41751
+ ],
41752
+ description: "Gaussian blur in painter-px. Expensive \u2014 forces an intermediate raster; use sparingly."
41753
+ },
41592
41754
  rotate: {
41593
41755
  types: [
41594
41756
  "number"
@@ -41698,6 +41860,16 @@ var patterns_registry_default = {
41698
41860
  "number"
41699
41861
  ]
41700
41862
  },
41863
+ strokeDashOffset: {
41864
+ types: [
41865
+ "number"
41866
+ ]
41867
+ },
41868
+ blur: {
41869
+ types: [
41870
+ "number"
41871
+ ]
41872
+ },
41701
41873
  fill: {
41702
41874
  types: [
41703
41875
  "string"
@@ -42220,7 +42392,8 @@ var patterns_registry_default = {
42220
42392
  ],
42221
42393
  enumValues: [
42222
42394
  "linear",
42223
- "radial"
42395
+ "radial",
42396
+ "conic"
42224
42397
  ]
42225
42398
  },
42226
42399
  from: {
@@ -42243,6 +42416,11 @@ var patterns_registry_default = {
42243
42416
  "number"
42244
42417
  ]
42245
42418
  },
42419
+ angle: {
42420
+ types: [
42421
+ "number"
42422
+ ]
42423
+ },
42246
42424
  stops: {
42247
42425
  types: [
42248
42426
  "array"
@@ -42259,6 +42437,45 @@ var patterns_registry_default = {
42259
42437
  "stops"
42260
42438
  ]
42261
42439
  },
42440
+ fillPattern: {
42441
+ types: [
42442
+ "object"
42443
+ ],
42444
+ properties: {
42445
+ kind: {
42446
+ types: [
42447
+ "string"
42448
+ ],
42449
+ enumValues: [
42450
+ "noise",
42451
+ "image"
42452
+ ]
42453
+ },
42454
+ url: {
42455
+ types: [
42456
+ "string"
42457
+ ]
42458
+ },
42459
+ scale: {
42460
+ types: [
42461
+ "number"
42462
+ ]
42463
+ },
42464
+ alpha: {
42465
+ types: [
42466
+ "number"
42467
+ ]
42468
+ },
42469
+ color: {
42470
+ types: [
42471
+ "string"
42472
+ ]
42473
+ }
42474
+ },
42475
+ required: [
42476
+ "kind"
42477
+ ]
42478
+ },
42262
42479
  stroke: {
42263
42480
  types: [
42264
42481
  "string"
@@ -42269,6 +42486,110 @@ var patterns_registry_default = {
42269
42486
  "number"
42270
42487
  ]
42271
42488
  },
42489
+ strokeGradient: {
42490
+ types: [
42491
+ "object"
42492
+ ],
42493
+ properties: {
42494
+ kind: {
42495
+ types: [
42496
+ "string"
42497
+ ],
42498
+ enumValues: [
42499
+ "linear",
42500
+ "radial",
42501
+ "conic"
42502
+ ]
42503
+ },
42504
+ from: {
42505
+ types: [
42506
+ "object"
42507
+ ]
42508
+ },
42509
+ to: {
42510
+ types: [
42511
+ "object"
42512
+ ]
42513
+ },
42514
+ center: {
42515
+ types: [
42516
+ "object"
42517
+ ]
42518
+ },
42519
+ radius: {
42520
+ types: [
42521
+ "number"
42522
+ ]
42523
+ },
42524
+ angle: {
42525
+ types: [
42526
+ "number"
42527
+ ]
42528
+ },
42529
+ stops: {
42530
+ types: [
42531
+ "array"
42532
+ ],
42533
+ items: {
42534
+ types: [
42535
+ "object"
42536
+ ]
42537
+ }
42538
+ }
42539
+ },
42540
+ required: [
42541
+ "kind",
42542
+ "stops"
42543
+ ]
42544
+ },
42545
+ strokeDash: {
42546
+ types: [
42547
+ "array"
42548
+ ],
42549
+ items: {
42550
+ types: [
42551
+ "number"
42552
+ ]
42553
+ }
42554
+ },
42555
+ strokeDashOffset: {
42556
+ types: [
42557
+ "number"
42558
+ ]
42559
+ },
42560
+ blendMode: {
42561
+ types: [
42562
+ "string"
42563
+ ],
42564
+ enumValues: [
42565
+ "source-over",
42566
+ "lighter",
42567
+ "multiply",
42568
+ "screen",
42569
+ "overlay",
42570
+ "darken",
42571
+ "lighten",
42572
+ "color-dodge",
42573
+ "color-burn",
42574
+ "hard-light",
42575
+ "soft-light",
42576
+ "difference",
42577
+ "exclusion",
42578
+ "hue",
42579
+ "saturation",
42580
+ "color",
42581
+ "luminosity",
42582
+ "source-atop",
42583
+ "destination-over",
42584
+ "destination-out",
42585
+ "xor"
42586
+ ]
42587
+ },
42588
+ blur: {
42589
+ types: [
42590
+ "number"
42591
+ ]
42592
+ },
42272
42593
  rotate: {
42273
42594
  types: [
42274
42595
  "number"
@@ -42374,6 +42695,16 @@ var patterns_registry_default = {
42374
42695
  "number"
42375
42696
  ]
42376
42697
  },
42698
+ strokeDashOffset: {
42699
+ types: [
42700
+ "number"
42701
+ ]
42702
+ },
42703
+ blur: {
42704
+ types: [
42705
+ "number"
42706
+ ]
42707
+ },
42377
42708
  fill: {
42378
42709
  types: [
42379
42710
  "string"
@@ -43030,6 +43361,18 @@ var patterns_registry_default = {
43030
43361
  }
43031
43362
  }
43032
43363
  },
43364
+ lighting: {
43365
+ types: [
43366
+ "object"
43367
+ ],
43368
+ description: "3D scene light rig as data \u2014 ambient/directional/hemisphere/point lights + optional 'room' environment for PBR reflections. Omitted \u2192 the standard fixed rig."
43369
+ },
43370
+ post: {
43371
+ types: [
43372
+ "object"
43373
+ ],
43374
+ description: "3D post-processing stack \u2014 bloom (emissive glow / neon) and vignette. Omitted \u2192 no post pass."
43375
+ },
43033
43376
  tileClickEvent: {
43034
43377
  types: [
43035
43378
  "string"
@@ -43640,6 +43983,12 @@ var patterns_registry_default = {
43640
43983
  ],
43641
43984
  description: "0..1 opacity."
43642
43985
  },
43986
+ clip: {
43987
+ types: [
43988
+ "string"
43989
+ ],
43990
+ description: "Clip the group's items to an SVG path (`d` syntax) in world units relative to the group origin \u2014 masked reveals, meters, portraits."
43991
+ },
43643
43992
  items: {
43644
43993
  types: [
43645
43994
  "array"
@@ -43710,6 +44059,357 @@ var patterns_registry_default = {
43710
44059
  description: "Additional CSS classes applied to the trigger button"
43711
44060
  }
43712
44061
  }
44062
+ },
44063
+ "draw-mesh": {
44064
+ type: "draw-mesh",
44065
+ category: "game",
44066
+ tier: "atoms",
44067
+ family: "game",
44068
+ description: "DrawMesh component",
44069
+ suggestedFor: [
44070
+ "draw",
44071
+ "mesh",
44072
+ "draw mesh"
44073
+ ],
44074
+ typicalSize: "small",
44075
+ propsSchema: {
44076
+ id: {
44077
+ types: [
44078
+ "string"
44079
+ ],
44080
+ 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)."
44081
+ },
44082
+ type: {
44083
+ types: [
44084
+ "unknown"
44085
+ ],
44086
+ description: "type prop",
44087
+ required: true
44088
+ },
44089
+ shape: {
44090
+ types: [
44091
+ "string"
44092
+ ],
44093
+ description: "shape prop",
44094
+ required: true,
44095
+ enumValues: [
44096
+ "box",
44097
+ "sphere",
44098
+ "capsule",
44099
+ "cylinder",
44100
+ "cone",
44101
+ "torus",
44102
+ "plane",
44103
+ "circle"
44104
+ ]
44105
+ },
44106
+ position: {
44107
+ types: [
44108
+ "object"
44109
+ ],
44110
+ description: "Logical scene position; `z` is height in cells (projected to world Y).",
44111
+ required: true,
44112
+ properties: {
44113
+ x: {
44114
+ types: [
44115
+ "number"
44116
+ ]
44117
+ },
44118
+ y: {
44119
+ types: [
44120
+ "number"
44121
+ ]
44122
+ },
44123
+ z: {
44124
+ types: [
44125
+ "number"
44126
+ ]
44127
+ }
44128
+ },
44129
+ propertyRequired: [
44130
+ "x",
44131
+ "y"
44132
+ ],
44133
+ scenePos: true
44134
+ },
44135
+ width: {
44136
+ types: [
44137
+ "number"
44138
+ ],
44139
+ description: "Box/plane X extent in cells (default 1)."
44140
+ },
44141
+ height: {
44142
+ types: [
44143
+ "number"
44144
+ ],
44145
+ description: "Box Y (height) extent / capsule-cylinder-cone length in cells (default 1)."
44146
+ },
44147
+ depth: {
44148
+ types: [
44149
+ "number"
44150
+ ],
44151
+ description: "Box/plane Z extent in cells (default `width`)."
44152
+ },
44153
+ radius: {
44154
+ types: [
44155
+ "number"
44156
+ ],
44157
+ description: "Sphere/capsule/cone/torus/circle radius in cells (default 0.4)."
44158
+ },
44159
+ radiusTop: {
44160
+ types: [
44161
+ "number"
44162
+ ],
44163
+ description: "Cylinder top radius (default `radius`)."
44164
+ },
44165
+ radiusBottom: {
44166
+ types: [
44167
+ "number"
44168
+ ],
44169
+ description: "Cylinder bottom radius (default `radius`)."
44170
+ },
44171
+ tube: {
44172
+ types: [
44173
+ "number"
44174
+ ],
44175
+ description: "Torus tube radius in cells (default `radius` / 3)."
44176
+ },
44177
+ segments: {
44178
+ types: [
44179
+ "number"
44180
+ ],
44181
+ description: "Curved-surface tessellation, clamped 3..64 (default 24). 4\u20138 + `flatShading` = low-poly."
44182
+ },
44183
+ rotation: {
44184
+ types: [
44185
+ "array"
44186
+ ],
44187
+ description: "Euler rotation `[x, y, z]` in radians.",
44188
+ items: {
44189
+ types: [
44190
+ "number"
44191
+ ]
44192
+ }
44193
+ },
44194
+ pivot: {
44195
+ types: [
44196
+ "string"
44197
+ ],
44198
+ description: "`bottom` (default) rests the mesh on its position's ground plane; `center` centers it there.",
44199
+ enumValues: [
44200
+ "bottom",
44201
+ "center"
44202
+ ]
44203
+ },
44204
+ material: {
44205
+ types: [
44206
+ "object"
44207
+ ],
44208
+ description: "material prop",
44209
+ properties: {
44210
+ kind: {
44211
+ types: [
44212
+ "string"
44213
+ ],
44214
+ enumValues: [
44215
+ "standard",
44216
+ "physical",
44217
+ "toon",
44218
+ "basic"
44219
+ ]
44220
+ },
44221
+ color: {
44222
+ types: [
44223
+ "string"
44224
+ ]
44225
+ },
44226
+ metalness: {
44227
+ types: [
44228
+ "number"
44229
+ ]
44230
+ },
44231
+ roughness: {
44232
+ types: [
44233
+ "number"
44234
+ ]
44235
+ },
44236
+ emissive: {
44237
+ types: [
44238
+ "string"
44239
+ ]
44240
+ },
44241
+ emissiveIntensity: {
44242
+ types: [
44243
+ "number"
44244
+ ]
44245
+ },
44246
+ opacity: {
44247
+ types: [
44248
+ "number"
44249
+ ]
44250
+ },
44251
+ transmission: {
44252
+ types: [
44253
+ "number"
44254
+ ]
44255
+ },
44256
+ ior: {
44257
+ types: [
44258
+ "number"
44259
+ ]
44260
+ },
44261
+ flatShading: {
44262
+ types: [
44263
+ "boolean"
44264
+ ]
44265
+ },
44266
+ side: {
44267
+ types: [
44268
+ "string"
44269
+ ],
44270
+ enumValues: [
44271
+ "front",
44272
+ "back",
44273
+ "double"
44274
+ ]
44275
+ }
44276
+ }
44277
+ },
44278
+ outline: {
44279
+ types: [
44280
+ "object"
44281
+ ],
44282
+ description: "outline prop",
44283
+ properties: {
44284
+ color: {
44285
+ types: [
44286
+ "string"
44287
+ ]
44288
+ },
44289
+ width: {
44290
+ types: [
44291
+ "number"
44292
+ ]
44293
+ }
44294
+ }
44295
+ },
44296
+ castShadow: {
44297
+ types: [
44298
+ "boolean"
44299
+ ],
44300
+ description: "castShadow prop"
44301
+ },
44302
+ receiveShadow: {
44303
+ types: [
44304
+ "boolean"
44305
+ ],
44306
+ description: "receiveShadow prop"
44307
+ },
44308
+ animation: {
44309
+ types: [
44310
+ "object"
44311
+ ],
44312
+ description: "Keyframe animation over transform/material tracks; the 3D host runs it per frame.",
44313
+ properties: {
44314
+ durationMs: {
44315
+ types: [
44316
+ "number"
44317
+ ]
44318
+ },
44319
+ loop: {
44320
+ types: [
44321
+ "boolean"
44322
+ ]
44323
+ },
44324
+ keyframes: {
44325
+ types: [
44326
+ "array"
44327
+ ],
44328
+ items: {
44329
+ types: [
44330
+ "object"
44331
+ ],
44332
+ properties: {
44333
+ at: {
44334
+ types: [
44335
+ "number"
44336
+ ]
44337
+ },
44338
+ offsetX: {
44339
+ types: [
44340
+ "number"
44341
+ ]
44342
+ },
44343
+ offsetY: {
44344
+ types: [
44345
+ "number"
44346
+ ]
44347
+ },
44348
+ offsetZ: {
44349
+ types: [
44350
+ "number"
44351
+ ]
44352
+ },
44353
+ rotateX: {
44354
+ types: [
44355
+ "number"
44356
+ ]
44357
+ },
44358
+ rotateY: {
44359
+ types: [
44360
+ "number"
44361
+ ]
44362
+ },
44363
+ rotateZ: {
44364
+ types: [
44365
+ "number"
44366
+ ]
44367
+ },
44368
+ scale: {
44369
+ types: [
44370
+ "number"
44371
+ ]
44372
+ },
44373
+ opacity: {
44374
+ types: [
44375
+ "number"
44376
+ ]
44377
+ },
44378
+ emissiveIntensity: {
44379
+ types: [
44380
+ "number"
44381
+ ]
44382
+ },
44383
+ color: {
44384
+ types: [
44385
+ "string"
44386
+ ]
44387
+ },
44388
+ emissive: {
44389
+ types: [
44390
+ "string"
44391
+ ]
44392
+ }
44393
+ },
44394
+ required: [
44395
+ "at"
44396
+ ]
44397
+ }
44398
+ }
44399
+ },
44400
+ propertyRequired: [
44401
+ "durationMs",
44402
+ "keyframes"
44403
+ ]
44404
+ },
44405
+ opacity: {
44406
+ types: [
44407
+ "number"
44408
+ ],
44409
+ description: "0..1 opacity; multiplies the material and enclosing group opacity."
44410
+ }
44411
+ },
44412
+ drawable: true
43713
44413
  }
43714
44414
  },
43715
44415
  categories: [
@@ -44631,7 +45331,7 @@ var integrators_registry_default = {
44631
45331
  // src/patterns/component-mapping.json
44632
45332
  var component_mapping_default = {
44633
45333
  version: "1.0.0",
44634
- exportedAt: "2026-07-31T03:04:39.259Z",
45334
+ exportedAt: "2026-07-31T10:02:24.207Z",
44635
45335
  mappings: {
44636
45336
  "page-header": {
44637
45337
  component: "PageHeader",
@@ -46014,6 +46714,11 @@ var component_mapping_default = {
46014
46714
  component: "EmojiPicker",
46015
46715
  importPath: "@/components/core/molecules/EmojiPicker",
46016
46716
  category: "component"
46717
+ },
46718
+ "draw-mesh": {
46719
+ component: "DrawMesh",
46720
+ importPath: "@/components/game/atoms/DrawMesh",
46721
+ category: "game"
46017
46722
  }
46018
46723
  }
46019
46724
  };
@@ -46021,7 +46726,7 @@ var component_mapping_default = {
46021
46726
  // src/patterns/event-contracts.json
46022
46727
  var event_contracts_default = {
46023
46728
  version: "1.0.0",
46024
- exportedAt: "2026-07-31T03:04:39.259Z",
46729
+ exportedAt: "2026-07-31T10:02:24.207Z",
46025
46730
  contracts: {
46026
46731
  form: {
46027
46732
  emits: [
@@ -47252,6 +47957,7 @@ var PATTERN_TYPES = [
47252
47957
  "doc-toc",
47253
47958
  "document-viewer",
47254
47959
  "draw-group",
47960
+ "draw-mesh",
47255
47961
  "draw-shape",
47256
47962
  "draw-shape-layer",
47257
47963
  "draw-sprite",
@@ -51032,6 +51738,35 @@ function buildPayloadForEdge(transition, guardCase) {
51032
51738
  return {};
51033
51739
  }
51034
51740
 
51741
+ // src/access/entityAccess.ts
51742
+ function inlineEntities(schema) {
51743
+ const out = [];
51744
+ for (const orbital of schema.orbitals ?? []) {
51745
+ const refs = [orbital.entity, ...orbital.auxiliaryEntities ?? []];
51746
+ for (const ref2 of refs) {
51747
+ if (typeof ref2 === "object" && ref2 !== null && "fields" in ref2) {
51748
+ out.push(ref2);
51749
+ }
51750
+ }
51751
+ }
51752
+ return out;
51753
+ }
51754
+ function entityAccessTable(schema) {
51755
+ const table = /* @__PURE__ */ new Map();
51756
+ for (const def of inlineEntities(schema)) {
51757
+ table.set(def.name, {
51758
+ read: def.read_policy,
51759
+ create: def.create_policy,
51760
+ update: def.update_policy,
51761
+ delete: def.delete_policy
51762
+ });
51763
+ }
51764
+ return table;
51765
+ }
51766
+ function entityAccessPolicies(schema, entityName) {
51767
+ return entityAccessTable(schema).get(entityName);
51768
+ }
51769
+
51035
51770
  // src/shared-entity/merge.ts
51036
51771
  function mergeEntityFrame(current, orderedWrites) {
51037
51772
  if (orderedWrites.length === 0) return current;
@@ -51042,6 +51777,6 @@ function mergeEntityFrame(current, orderedWrites) {
51042
51777
  return next;
51043
51778
  }
51044
51779
 
51045
- export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, event_contracts_default as eventContracts, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, mergeEntityFrame, mintId, navigate, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
51780
+ export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BINDING_ROOTS, BindingSchema, CAMERA_MODES, COMPONENT_MAPPING, CONFIG_REF_EVENT_PATTERN, CORE_BINDINGS, CameraModeSchema, CameraSchema, ColorSliceSchema, ColorTokensSchema, ComputedEventContractSchema, ComputedEventListenerSchema, ConfigFieldDeclarationSchema, ConfigProvenanceRecordSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DEFAULT_VIEWER, DEV_TOKEN_PREFIX, DeclaredTraitConfigSchema, DensitySliceSchema, DensityTokensSchema, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EVENT_CONTRACTS, EffectSchema, ElevationSliceSchema, ElevationTokensSchema, EntityCallSchema, EntityFieldContractSchema, EntityFieldSchema, EntityIdSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventIdSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SPRITE_DIRECTIONS, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SpacingScaleSchema, SpriteDirectionSchema, SpriteSheetAtlasSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SubTextureSchema, SuggestedGuardSchema, TextureAtlasSchema, ThemeDefinitionSchema, ThemeIdSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TickIntervalSchema, TilesheetSchema, TraitCategorySchema, TraitConfigSchema, TraitConfigValueSchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitFieldRefSchema, TraitIdSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TraitUIBindingSchema, TransitionSchema, TypeIntentMapSchema, TypeIntentSchema, TypeScaleEntrySchema, TypeScaleSchema, TypeScaleTokensSchema, TypeSizeKeySchema, TypeSliceSchema, TypeSlotSchema, TypeWeightSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, classifyWorkflow, clearSchemaCache, collectBindings, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, deref, deriveCollection, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isImportedTraitRef, isInlineTrait, isJsonArray, isJsonObject, isJsonPrimitive, isKnownValidationErrorCode, isMainSlotRenderUi, isMcpService, isOrbitalDefinition, isOrbitalId, isPageId, isPageReference, isPageReferenceObject, isPageReferenceString, isPaletteEntryId, isPhoneValue, isPlanSnapshot, isReferenceConfigType, isRenderBindingMarker, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isSecretConfigType, isSemanticStringType, isSemanticStringValue, isServiceId, isServiceReference, isServiceReferenceObject, isSessionHistoryEntry, isSocketService, isTensorValue, isThemeId, isThemeReference, isTraitFieldRef, isTraitId, isUrlValue, isUuidValue, isValidBinding, isValidPatternType, ledgerCurName, ledgerRename, ledgerResolveName, mapTensorLastDim, mergeEntityFrame, mintId, navigate, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, ref, registry, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, requiresConfirmation, resolveConfigRefEventName, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
51046
51781
  //# sourceMappingURL=index.js.map
51047
51782
  //# sourceMappingURL=index.js.map