@almadar/core 10.91.0 → 10.92.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 (34) hide show
  1. package/dist/builders.d.ts +3 -3
  2. package/dist/builders.js +2 -1
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-Bt8vKHwd.d.ts → effect-DGa2ixo7.d.ts} +5 -1
  5. package/dist/{entityAccess-BdDX85rM.d.ts → entityAccess-CXennIKj.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +212 -31
  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 +6 -2
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/{index-rOBf1Oag.d.ts → index-BFortVj8.d.ts} +19 -10
  13. package/dist/index.d.ts +11 -72
  14. package/dist/index.js +401 -134
  15. package/dist/index.js.map +1 -1
  16. package/dist/mock/index.d.ts +4 -4
  17. package/dist/patterns/component-mapping.json +1 -1
  18. package/dist/patterns/event-contracts.json +1 -1
  19. package/dist/patterns/index.d.ts +791 -78
  20. package/dist/patterns/index.js +351 -35
  21. package/dist/patterns/index.js.map +1 -1
  22. package/dist/patterns/integrators-registry.json +136 -1
  23. package/dist/patterns/patterns-registry.json +213 -32
  24. package/dist/patterns/registry.json +213 -32
  25. package/dist/patterns/services-registry.json +136 -1
  26. package/dist/{schema-ovDTDQz9.d.ts → schema-DIL07Bmv.d.ts} +25 -25
  27. package/dist/state-machine/index.js +19 -4
  28. package/dist/state-machine/index.js.map +1 -1
  29. package/dist/{trait-C3e3btfn.d.ts → trait-DHb48lyx.d.ts} +10 -1
  30. package/dist/types/index.d.ts +5 -5
  31. package/dist/types/index.js +30 -2
  32. package/dist/types/index.js.map +1 -1
  33. package/dist/{types-rh0naR6C.d.ts → types-F5EPwMor.d.ts} +2 -2
  34. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1105,6 +1105,9 @@ function maskSecretConfigValues(config, values) {
1105
1105
  }
1106
1106
  return masked;
1107
1107
  }
1108
+ function canonicalizeUnboundTraitOverride(fieldType, value) {
1109
+ return fieldType === "trait" && value === "none" ? null : value;
1110
+ }
1108
1111
  function overrideDeclaredKnobs(declared, overrides) {
1109
1112
  const out = { ...declared };
1110
1113
  for (const key of Object.keys(overrides)) {
@@ -1114,7 +1117,7 @@ function overrideDeclaredKnobs(declared, overrides) {
1114
1117
  `overrideDeclaredKnobs: config override "${key}" is not a declared knob (ORB_O_CONFIG_UNKNOWN_KEY). Declared: ${Object.keys(declared).join(", ") || "(none)"}`
1115
1118
  );
1116
1119
  }
1117
- out[key] = { ...field, default: overrides[key] };
1120
+ out[key] = { ...field, default: canonicalizeUnboundTraitOverride(field.type, overrides[key]) };
1118
1121
  }
1119
1122
  return out;
1120
1123
  }
@@ -1138,7 +1141,8 @@ var ConfigFieldDeclarationSchema = z.object({
1138
1141
  synonyms: z.string().optional(),
1139
1142
  items: ConfigFieldItemsDeclarationSchema.optional(),
1140
1143
  properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional(),
1141
- forwardedFrom: z.string().optional()
1144
+ forwardedFrom: z.string().optional(),
1145
+ payloadFor: z.string().optional()
1142
1146
  });
1143
1147
  var DeclaredTraitConfigSchema = z.record(
1144
1148
  ConfigFieldDeclarationSchema
@@ -2580,7 +2584,7 @@ function getInteractionModelForDomain(domain) {
2580
2584
  // src/patterns/patterns-registry.json
2581
2585
  var patterns_registry_default = {
2582
2586
  version: "1.0.0",
2583
- exportedAt: "2026-09-12T07:27:39.835Z",
2587
+ exportedAt: "2026-09-12T18:14:02.248Z",
2584
2588
  patterns: {
2585
2589
  "entity-table": {
2586
2590
  type: "entity-table",
@@ -2589,6 +2593,7 @@ var patterns_registry_default = {
2589
2593
  tier: "organisms",
2590
2594
  family: "core",
2591
2595
  description: "Data table with columns and sorting",
2596
+ fieldsContract: "display",
2592
2597
  suggestedFor: [
2593
2598
  "data-dense views",
2594
2599
  "comparisons",
@@ -3057,6 +3062,48 @@ var patterns_registry_default = {
3057
3062
  "card-rows"
3058
3063
  ],
3059
3064
  default: "dense"
3065
+ },
3066
+ relationsData: {
3067
+ types: [
3068
+ "object"
3069
+ ],
3070
+ description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a column whose field is relation-typed. Same contract DetailPanel takes.",
3071
+ mapValue: {
3072
+ types: [
3073
+ "array"
3074
+ ],
3075
+ items: {
3076
+ types: [
3077
+ "object"
3078
+ ],
3079
+ properties: {
3080
+ value: {
3081
+ types: [
3082
+ "string"
3083
+ ]
3084
+ },
3085
+ label: {
3086
+ types: [
3087
+ "string"
3088
+ ]
3089
+ },
3090
+ description: {
3091
+ types: [
3092
+ "string"
3093
+ ]
3094
+ },
3095
+ disabled: {
3096
+ types: [
3097
+ "boolean"
3098
+ ]
3099
+ }
3100
+ },
3101
+ required: [
3102
+ "value",
3103
+ "label"
3104
+ ]
3105
+ }
3106
+ }
3060
3107
  }
3061
3108
  }
3062
3109
  },
@@ -3287,7 +3334,6 @@ var patterns_registry_default = {
3287
3334
  "function"
3288
3335
  ],
3289
3336
  description: "Render function for each item. In .lolo: renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.",
3290
- kind: "callback",
3291
3337
  callbackArgs: [
3292
3338
  {
3293
3339
  name: "item",
@@ -12333,6 +12379,7 @@ var patterns_registry_default = {
12333
12379
  "repeatable-form-section": {
12334
12380
  type: "repeatable-form-section",
12335
12381
  category: "form",
12382
+ sourceFile: "components/core/molecules/RepeatableFormSection.tsx",
12336
12383
  tier: "molecules",
12337
12384
  family: "core",
12338
12385
  description: "RepeatableFormSection \u2014 a form section that repeats a fixed group of fields, letting the user add or remove entries.",
@@ -12396,7 +12443,6 @@ var patterns_registry_default = {
12396
12443
  ],
12397
12444
  description: "Render function for each item. In .lolo: renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.",
12398
12445
  required: true,
12399
- kind: "callback",
12400
12446
  callbackArgs: [
12401
12447
  {
12402
12448
  name: "item",
@@ -19992,6 +20038,7 @@ var patterns_registry_default = {
19992
20038
  "state-machine-view": {
19993
20039
  type: "state-machine-view",
19994
20040
  category: "display",
20041
+ sourceFile: "components/core/organisms/StateMachineView.tsx",
19995
20042
  tier: "organisms",
19996
20043
  family: "core",
19997
20044
  description: "StateMachineView component",
@@ -20059,7 +20106,6 @@ var patterns_registry_default = {
20059
20106
  "function"
20060
20107
  ],
20061
20108
  description: "Custom state node renderer \u2014 when provided, replaces the default circle nodes",
20062
- kind: "callback",
20063
20109
  callbackArgs: [
20064
20110
  {
20065
20111
  name: "state",
@@ -20443,6 +20489,7 @@ var patterns_registry_default = {
20443
20489
  "calendar-grid": {
20444
20490
  type: "calendar-grid",
20445
20491
  category: "display",
20492
+ sourceFile: "components/core/molecules/CalendarGrid.tsx",
20446
20493
  tier: "molecules",
20447
20494
  family: "core",
20448
20495
  description: "CalendarGrid component",
@@ -20580,7 +20627,8 @@ var patterns_registry_default = {
20580
20627
  "object"
20581
20628
  ],
20582
20629
  description: "Additional payload for long-press events",
20583
- payloadFor: "longPressEvent"
20630
+ payloadFor: "longPressEvent",
20631
+ eventPayloadBrand: true
20584
20632
  },
20585
20633
  swipeLeftEvent: {
20586
20634
  types: [
@@ -20642,7 +20690,6 @@ var patterns_registry_default = {
20642
20690
  "function"
20643
20691
  ],
20644
20692
  description: "Render function for one event chip's content. Receives the row and its index in the materialised events array. The grid keeps ownership of placement, colour and the click target; this replaces only what is drawn INSIDE the chip, so a host can show a time + instructor + badge stack instead of the default single label.",
20645
- kind: "callback",
20646
20693
  callbackArgs: [
20647
20694
  {
20648
20695
  name: "item",
@@ -20660,7 +20707,6 @@ var patterns_registry_default = {
20660
20707
  "function"
20661
20708
  ],
20662
20709
  description: 'Per-event render function (schema-level alias for the children render prop). In `.orb`: `["fn", "item", { pattern tree with @item.field bindings }]`. In `.lolo`: `renderItem: (fn item <Component \u2026={@item.field}/>)` \u2014 the same contract `data-list` / `data-grid` / `carousel` already use.',
20663
- kind: "callback",
20664
20710
  callbackArgs: [
20665
20711
  {
20666
20712
  name: "item",
@@ -21206,6 +21252,7 @@ var patterns_registry_default = {
21206
21252
  "progress-dots": {
21207
21253
  type: "progress-dots",
21208
21254
  category: "component",
21255
+ sourceFile: "components/core/molecules/ProgressDots.tsx",
21209
21256
  tier: "molecules",
21210
21257
  family: "core",
21211
21258
  description: "ProgressDots component",
@@ -21235,7 +21282,6 @@ var patterns_registry_default = {
21235
21282
  "function"
21236
21283
  ],
21237
21284
  description: "Custom state resolver per dot index",
21238
- kind: "callback",
21239
21285
  callbackArgs: [
21240
21286
  {
21241
21287
  name: "index",
@@ -21285,6 +21331,7 @@ var patterns_registry_default = {
21285
21331
  family: "core",
21286
21332
  description: "DataGrid \u2014 structured records grid rendering rows over configurable columns, with sort, select, and drag-reorder.",
21287
21333
  capabilities: "admin table, records grid, user list, CRUD list, manage-records view, spreadsheet-style data grid, sortable columns",
21334
+ fieldsContract: "display",
21288
21335
  suggestedFor: [
21289
21336
  "data",
21290
21337
  "grid",
@@ -21691,7 +21738,6 @@ var patterns_registry_default = {
21691
21738
  "function"
21692
21739
  ],
21693
21740
  description: "Render prop for custom per-card content. When provided, `fields` are ignored; `itemActions` render as a footer beneath the custom content.",
21694
- kind: "callback",
21695
21741
  callbackArgs: [
21696
21742
  {
21697
21743
  name: "item",
@@ -21709,7 +21755,6 @@ var patterns_registry_default = {
21709
21755
  "function"
21710
21756
  ],
21711
21757
  description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. In .lolo, author the per-item renderer as renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.',
21712
- kind: "callback",
21713
21758
  callbackArgs: [
21714
21759
  {
21715
21760
  name: "item",
@@ -21742,6 +21787,48 @@ var patterns_registry_default = {
21742
21787
  "card-rows"
21743
21788
  ],
21744
21789
  default: "dense"
21790
+ },
21791
+ relationsData: {
21792
+ types: [
21793
+ "object"
21794
+ ],
21795
+ description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a field whose type is relation. Same contract DetailPanel takes.",
21796
+ mapValue: {
21797
+ types: [
21798
+ "array"
21799
+ ],
21800
+ items: {
21801
+ types: [
21802
+ "object"
21803
+ ],
21804
+ properties: {
21805
+ value: {
21806
+ types: [
21807
+ "string"
21808
+ ]
21809
+ },
21810
+ label: {
21811
+ types: [
21812
+ "string"
21813
+ ]
21814
+ },
21815
+ description: {
21816
+ types: [
21817
+ "string"
21818
+ ]
21819
+ },
21820
+ disabled: {
21821
+ types: [
21822
+ "boolean"
21823
+ ]
21824
+ }
21825
+ },
21826
+ required: [
21827
+ "value",
21828
+ "label"
21829
+ ]
21830
+ }
21831
+ }
21745
21832
  }
21746
21833
  }
21747
21834
  },
@@ -21752,6 +21839,7 @@ var patterns_registry_default = {
21752
21839
  tier: "molecules",
21753
21840
  family: "core",
21754
21841
  description: "DataList component",
21842
+ fieldsContract: "display",
21755
21843
  suggestedFor: [
21756
21844
  "data",
21757
21845
  "list",
@@ -22235,7 +22323,6 @@ var patterns_registry_default = {
22235
22323
  "function"
22236
22324
  ],
22237
22325
  description: "Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored.",
22238
- kind: "callback",
22239
22326
  callbackArgs: [
22240
22327
  {
22241
22328
  name: "item",
@@ -22253,7 +22340,6 @@ var patterns_registry_default = {
22253
22340
  "function"
22254
22341
  ],
22255
22342
  description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. In .lolo, author the per-item renderer as renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.',
22256
- kind: "callback",
22257
22343
  callbackArgs: [
22258
22344
  {
22259
22345
  name: "item",
@@ -22302,6 +22388,48 @@ var patterns_registry_default = {
22302
22388
  "card-rows"
22303
22389
  ],
22304
22390
  default: "dense"
22391
+ },
22392
+ relationsData: {
22393
+ types: [
22394
+ "object"
22395
+ ],
22396
+ description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a field whose type is relation. Same contract DetailPanel takes.",
22397
+ mapValue: {
22398
+ types: [
22399
+ "array"
22400
+ ],
22401
+ items: {
22402
+ types: [
22403
+ "object"
22404
+ ],
22405
+ properties: {
22406
+ value: {
22407
+ types: [
22408
+ "string"
22409
+ ]
22410
+ },
22411
+ label: {
22412
+ types: [
22413
+ "string"
22414
+ ]
22415
+ },
22416
+ description: {
22417
+ types: [
22418
+ "string"
22419
+ ]
22420
+ },
22421
+ disabled: {
22422
+ types: [
22423
+ "boolean"
22424
+ ]
22425
+ }
22426
+ },
22427
+ required: [
22428
+ "value",
22429
+ "label"
22430
+ ]
22431
+ }
22432
+ }
22305
22433
  }
22306
22434
  }
22307
22435
  },
@@ -22612,6 +22740,7 @@ var patterns_registry_default = {
22612
22740
  "range-slider": {
22613
22741
  type: "range-slider",
22614
22742
  category: "component",
22743
+ sourceFile: "components/core/atoms/RangeSlider.tsx",
22615
22744
  tier: "atoms",
22616
22745
  family: "core",
22617
22746
  description: "RangeSlider component",
@@ -22714,7 +22843,8 @@ var patterns_registry_default = {
22714
22843
  "object"
22715
22844
  ],
22716
22845
  description: "Payload to include with the action event",
22717
- payloadFor: "action"
22846
+ payloadFor: "action",
22847
+ eventPayloadBrand: true
22718
22848
  },
22719
22849
  onChange: {
22720
22850
  types: [
@@ -22734,7 +22864,6 @@ var patterns_registry_default = {
22734
22864
  "function"
22735
22865
  ],
22736
22866
  description: "Format function for tooltip display",
22737
- kind: "callback",
22738
22867
  callbackArgs: [
22739
22868
  {
22740
22869
  name: "value",
@@ -23584,7 +23713,6 @@ var patterns_registry_default = {
23584
23713
  "function"
23585
23714
  ],
23586
23715
  description: "Render function for each slide. In .lolo: renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.",
23587
- kind: "callback",
23588
23716
  callbackArgs: [
23589
23717
  {
23590
23718
  name: "item",
@@ -23624,7 +23752,6 @@ var patterns_registry_default = {
23624
23752
  "function"
23625
23753
  ],
23626
23754
  description: "Children-as-function fallback for renderItem (compiler compatibility)",
23627
- kind: "callback",
23628
23755
  callbackArgs: [
23629
23756
  {
23630
23757
  name: "item",
@@ -23782,6 +23909,7 @@ var patterns_registry_default = {
23782
23909
  "sortable-list": {
23783
23910
  type: "sortable-list",
23784
23911
  category: "display",
23912
+ sourceFile: "components/core/molecules/SortableList.tsx",
23785
23913
  tier: "molecules",
23786
23914
  family: "core",
23787
23915
  description: "SortableList \u2014 a drag-and-drop reorderable list of items.",
@@ -23809,7 +23937,6 @@ var patterns_registry_default = {
23809
23937
  ],
23810
23938
  description: "Render function for each item. In .lolo: renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.",
23811
23939
  required: true,
23812
- kind: "callback",
23813
23940
  callbackArgs: [
23814
23941
  {
23815
23942
  name: "item",
@@ -23853,7 +23980,8 @@ var patterns_registry_default = {
23853
23980
  "object"
23854
23981
  ],
23855
23982
  description: "reorderPayload prop",
23856
- payloadFor: "reorderEvent"
23983
+ payloadFor: "reorderEvent",
23984
+ eventPayloadBrand: true
23857
23985
  },
23858
23986
  dragHandlePosition: {
23859
23987
  types: [
@@ -33337,6 +33465,7 @@ var patterns_registry_default = {
33337
33465
  "doc-search": {
33338
33466
  type: "doc-search",
33339
33467
  category: "filter",
33468
+ sourceFile: "components/core/molecules/DocSearch.tsx",
33340
33469
  tier: "molecules",
33341
33470
  family: "core",
33342
33471
  description: "DocSearch component",
@@ -33358,7 +33487,6 @@ var patterns_registry_default = {
33358
33487
  "function"
33359
33488
  ],
33360
33489
  description: "Callback invoked with the search query, returns results",
33361
- kind: "callback",
33362
33490
  callbackArgs: [
33363
33491
  {
33364
33492
  name: "query",
@@ -39547,6 +39675,7 @@ var patterns_registry_default = {
39547
39675
  family: "core",
39548
39676
  description: "TableView \u2014 sortable, selectable data table rendering rows over configurable columns, with inline row actions and grouping.",
39549
39677
  capabilities: "admin console table, records list, CRUD data table, user list, manage-users grid, sortable columns, row selection with bulk actions, grouped list view",
39678
+ fieldsContract: "display",
39550
39679
  suggestedFor: [
39551
39680
  "table",
39552
39681
  "view",
@@ -40003,7 +40132,6 @@ var patterns_registry_default = {
40003
40132
  "function"
40004
40133
  ],
40005
40134
  description: "Custom per-row render. When provided, the whole row content is delegated to this function (columns are ignored for the body; the header still renders). Mirrors DataList's children render prop.",
40006
- kind: "callback",
40007
40135
  callbackArgs: [
40008
40136
  {
40009
40137
  name: "item",
@@ -40021,7 +40149,6 @@ var patterns_registry_default = {
40021
40149
  "function"
40022
40150
  ],
40023
40151
  description: 'Per-row render function (schema alias). In .orb: ["fn","item",{...}]. The compiler converts this to the children render prop. In .lolo, author the per-row renderer as renderItem: (fn item <Component \u2026={@item.field}/>), binding per-item fields via @item.field.',
40024
- kind: "callback",
40025
40152
  callbackArgs: [
40026
40153
  {
40027
40154
  name: "item",
@@ -40047,6 +40174,48 @@ var patterns_registry_default = {
40047
40174
  "bordered"
40048
40175
  ],
40049
40176
  default: "dense"
40177
+ },
40178
+ relationsData: {
40179
+ types: [
40180
+ "object"
40181
+ ],
40182
+ description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a column whose field is relation-typed. Same contract DetailPanel takes.",
40183
+ mapValue: {
40184
+ types: [
40185
+ "array"
40186
+ ],
40187
+ items: {
40188
+ types: [
40189
+ "object"
40190
+ ],
40191
+ properties: {
40192
+ value: {
40193
+ types: [
40194
+ "string"
40195
+ ]
40196
+ },
40197
+ label: {
40198
+ types: [
40199
+ "string"
40200
+ ]
40201
+ },
40202
+ description: {
40203
+ types: [
40204
+ "string"
40205
+ ]
40206
+ },
40207
+ disabled: {
40208
+ types: [
40209
+ "boolean"
40210
+ ]
40211
+ }
40212
+ },
40213
+ required: [
40214
+ "value",
40215
+ "label"
40216
+ ]
40217
+ }
40218
+ }
40050
40219
  }
40051
40220
  }
40052
40221
  },
@@ -40628,6 +40797,7 @@ var patterns_registry_default = {
40628
40797
  "code-runner-panel": {
40629
40798
  type: "code-runner-panel",
40630
40799
  category: "display",
40800
+ sourceFile: "components/core/organisms/CodeRunnerPanel.tsx",
40631
40801
  tier: "organisms",
40632
40802
  family: "core",
40633
40803
  description: "CodeRunnerPanel component",
@@ -40665,7 +40835,6 @@ var patterns_registry_default = {
40665
40835
  "function"
40666
40836
  ],
40667
40837
  description: "Simulate executing the code. Omit to render a read-only block. Real execution is a separate future track \u2014 this callback supplies deterministic simulated output for UI feedback.",
40668
- kind: "callback",
40669
40838
  callbackArgs: [
40670
40839
  {
40671
40840
  name: "code",
@@ -40692,6 +40861,7 @@ var patterns_registry_default = {
40692
40861
  "segment-renderer": {
40693
40862
  type: "segment-renderer",
40694
40863
  category: "display",
40864
+ sourceFile: "components/core/organisms/SegmentRenderer.tsx",
40695
40865
  tier: "organisms",
40696
40866
  family: "core",
40697
40867
  description: "SegmentRenderer component",
@@ -40783,7 +40953,6 @@ var patterns_registry_default = {
40783
40953
  "function"
40784
40954
  ],
40785
40955
  description: "Simulate executing runnable code blocks. Omit to render runnable blocks as read-only. Real execution is a future track.",
40786
- kind: "callback",
40787
40956
  callbackArgs: [
40788
40957
  {
40789
40958
  name: "code",
@@ -40801,7 +40970,6 @@ var patterns_registry_default = {
40801
40970
  "function"
40802
40971
  ],
40803
40972
  description: "Optional render slot for `visualization` segment types. When not provided, visualization segments are silently skipped. Callers can wire this to any custom component or orbital generator.",
40804
- kind: "callback",
40805
40973
  callbackArgs: [
40806
40974
  {
40807
40975
  name: "type",
@@ -41600,10 +41768,12 @@ var patterns_registry_default = {
41600
41768
  "object"
41601
41769
  ],
41602
41770
  description: "Maps a keydown `e.code` \u2192 the board's SEMANTIC event (device-agnostic input).",
41771
+ kind: "event-map",
41603
41772
  mapValue: {
41604
41773
  types: [
41605
41774
  "string"
41606
- ]
41775
+ ],
41776
+ kind: "event"
41607
41777
  }
41608
41778
  },
41609
41779
  keyUpMap: {
@@ -41611,10 +41781,12 @@ var patterns_registry_default = {
41611
41781
  "object"
41612
41782
  ],
41613
41783
  description: "Maps a keyup `e.code` \u2192 the board's SEMANTIC event.",
41784
+ kind: "event-map",
41614
41785
  mapValue: {
41615
41786
  types: [
41616
41787
  "string"
41617
- ]
41788
+ ],
41789
+ kind: "event"
41618
41790
  }
41619
41791
  },
41620
41792
  editable: {
@@ -42075,10 +42247,12 @@ var patterns_registry_default = {
42075
42247
  "object"
42076
42248
  ],
42077
42249
  description: 'Per-direction PRESS \u2192 the board\'s SEMANTIC event (kind="dpad"), e.g. `{ left: "LEFT", right: "RIGHT", up: "JUMP" }`. Lets the d-pad emit the SAME intent events as the keyboard so the FSM stays device-agnostic.',
42250
+ kind: "event-map",
42078
42251
  mapValue: {
42079
42252
  types: [
42080
42253
  "string"
42081
- ]
42254
+ ],
42255
+ kind: "event"
42082
42256
  }
42083
42257
  },
42084
42258
  directionReleaseEvents: {
@@ -42086,10 +42260,12 @@ var patterns_registry_default = {
42086
42260
  "object"
42087
42261
  ],
42088
42262
  description: 'Per-direction RELEASE \u2192 semantic event, e.g. `{ left: "STOP", right: "STOP" }`. Omit a direction to ignore its release.',
42263
+ kind: "event-map",
42089
42264
  mapValue: {
42090
42265
  types: [
42091
42266
  "string"
42092
- ]
42267
+ ],
42268
+ kind: "event"
42093
42269
  }
42094
42270
  },
42095
42271
  directionAssets: {
@@ -46038,6 +46214,7 @@ var patterns_registry_default = {
46038
46214
  "math-canvas": {
46039
46215
  type: "math-canvas",
46040
46216
  category: "learning",
46217
+ sourceFile: "components/learning/molecules/MathCanvas.tsx",
46041
46218
  tier: "molecules",
46042
46219
  family: "learning",
46043
46220
  description: "MathCanvas component",
@@ -47069,10 +47246,12 @@ var patterns_registry_default = {
47069
47246
  "object"
47070
47247
  ],
47071
47248
  description: "Maps a keydown `e.code` \u2192 the board's SEMANTIC event (device-agnostic input), emitted as `UI:{event}` \u2014 same contract as the game canvas keyMap.",
47249
+ kind: "event-map",
47072
47250
  mapValue: {
47073
47251
  types: [
47074
47252
  "string"
47075
- ]
47253
+ ],
47254
+ kind: "event"
47076
47255
  }
47077
47256
  },
47078
47257
  keyUpMap: {
@@ -47080,10 +47259,12 @@ var patterns_registry_default = {
47080
47259
  "object"
47081
47260
  ],
47082
47261
  description: "Maps a keyup `e.code` \u2192 the board's SEMANTIC event.",
47262
+ kind: "event-map",
47083
47263
  mapValue: {
47084
47264
  types: [
47085
47265
  "string"
47086
- ]
47266
+ ],
47267
+ kind: "event"
47087
47268
  }
47088
47269
  },
47089
47270
  isLoading: {
@@ -52833,10 +53014,12 @@ var patterns_registry_default = {
52833
53014
  "object"
52834
53015
  ],
52835
53016
  description: "keyMap prop",
53017
+ kind: "event-map",
52836
53018
  mapValue: {
52837
53019
  types: [
52838
53020
  "string"
52839
- ]
53021
+ ],
53022
+ kind: "event"
52840
53023
  }
52841
53024
  },
52842
53025
  keyUpMap: {
@@ -52844,10 +53027,12 @@ var patterns_registry_default = {
52844
53027
  "object"
52845
53028
  ],
52846
53029
  description: "keyUpMap prop",
53030
+ kind: "event-map",
52847
53031
  mapValue: {
52848
53032
  types: [
52849
53033
  "string"
52850
- ]
53034
+ ],
53035
+ kind: "event"
52851
53036
  }
52852
53037
  },
52853
53038
  editable: {
@@ -56937,7 +57122,7 @@ var patterns_registry_default = {
56937
57122
  // src/patterns/integrators-registry.json
56938
57123
  var integrators_registry_default = {
56939
57124
  version: "1.0.0",
56940
- exportedAt: "2026-09-12T12:14:53.173Z",
57125
+ exportedAt: "2026-09-12T17:27:32.966Z",
56941
57126
  integrators: {
56942
57127
  github: {
56943
57128
  name: "github",
@@ -60725,6 +60910,141 @@ var integrators_registry_default = {
60725
60910
  }
60726
60911
  }
60727
60912
  },
60913
+ {
60914
+ name: "buildLayers",
60915
+ description: "Build per-part cutout layer images (name, box, z-order, pivot) from a source image and rig.",
60916
+ params: [
60917
+ {
60918
+ name: "imagePath",
60919
+ type: "string",
60920
+ required: true,
60921
+ description: "Path to the source image."
60922
+ },
60923
+ {
60924
+ name: "rig",
60925
+ type: "object",
60926
+ required: true,
60927
+ description: "The rig definition (parts, boxes, pivots, \u2026) as JSON."
60928
+ },
60929
+ {
60930
+ name: "outDir",
60931
+ type: "string",
60932
+ required: true,
60933
+ description: "Output directory for the layer images."
60934
+ }
60935
+ ],
60936
+ responseShape: {
60937
+ layers: {
60938
+ type: "array",
60939
+ items: {
60940
+ type: "object",
60941
+ properties: {
60942
+ name: {
60943
+ type: "string",
60944
+ required: true
60945
+ },
60946
+ path: {
60947
+ type: "string",
60948
+ required: true
60949
+ },
60950
+ x: {
60951
+ type: "number",
60952
+ required: true
60953
+ },
60954
+ y: {
60955
+ type: "number",
60956
+ required: true
60957
+ },
60958
+ w: {
60959
+ type: "number",
60960
+ required: true
60961
+ },
60962
+ h: {
60963
+ type: "number",
60964
+ required: true
60965
+ },
60966
+ z: {
60967
+ type: "number",
60968
+ required: true
60969
+ },
60970
+ pivot: {
60971
+ type: "[number, number]",
60972
+ required: true
60973
+ },
60974
+ isRest: {
60975
+ type: "boolean",
60976
+ required: true
60977
+ }
60978
+ }
60979
+ }
60980
+ }
60981
+ }
60982
+ },
60983
+ {
60984
+ name: "pose",
60985
+ description: "Sample a pose/animation preset into per-frame, per-part transforms for a rig.",
60986
+ params: [
60987
+ {
60988
+ name: "imagePath",
60989
+ type: "string",
60990
+ required: true,
60991
+ description: "Path to the source image."
60992
+ },
60993
+ {
60994
+ name: "rig",
60995
+ type: "object",
60996
+ required: true,
60997
+ description: "The rig definition (parts, boxes, pivots, \u2026) as JSON."
60998
+ },
60999
+ {
61000
+ name: "roles",
61001
+ type: "object",
61002
+ required: true,
61003
+ description: "Map of part name to preset bone role.",
61004
+ mapValue: {
61005
+ type: "string"
61006
+ }
61007
+ },
61008
+ {
61009
+ name: "preset",
61010
+ type: "string",
61011
+ required: false,
61012
+ description: "Animation preset name."
61013
+ },
61014
+ {
61015
+ name: "overrides",
61016
+ type: "object",
61017
+ required: false,
61018
+ description: "Per-part motion overrides applied over the preset."
61019
+ }
61020
+ ],
61021
+ responseShape: {
61022
+ fps: "number",
61023
+ frames: {
61024
+ type: "array",
61025
+ items: {
61026
+ type: "object",
61027
+ mapValue: {
61028
+ type: "object",
61029
+ properties: {
61030
+ angle: {
61031
+ type: "number",
61032
+ required: true
61033
+ },
61034
+ bx: {
61035
+ type: "number",
61036
+ required: true
61037
+ },
61038
+ by: {
61039
+ type: "number",
61040
+ required: true
61041
+ }
61042
+ }
61043
+ }
61044
+ }
61045
+ }
61046
+ }
61047
+ },
60728
61048
  {
60729
61049
  name: "generate",
60730
61050
  description: "Generate one image on the local image server (text-to-image, or a Kontext edit conditioned on `sourcePath`).",
@@ -60802,7 +61122,7 @@ var integrators_registry_default = {
60802
61122
  // src/patterns/component-mapping.json
60803
61123
  var component_mapping_default = {
60804
61124
  version: "1.0.0",
60805
- exportedAt: "2026-09-12T07:27:39.835Z",
61125
+ exportedAt: "2026-09-12T18:14:02.248Z",
60806
61126
  mappings: {
60807
61127
  "page-header": {
60808
61128
  component: "PageHeader",
@@ -62252,7 +62572,7 @@ var component_mapping_default = {
62252
62572
  // src/patterns/event-contracts.json
62253
62573
  var event_contracts_default = {
62254
62574
  version: "1.0.0",
62255
- exportedAt: "2026-09-12T07:27:39.835Z",
62575
+ exportedAt: "2026-09-12T18:14:02.248Z",
62256
62576
  contracts: {
62257
62577
  form: {
62258
62578
  emits: [
@@ -64353,6 +64673,14 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64353
64673
  ORB_BINDING_TRAIT_UNKNOWN: "ORB_BINDING_TRAIT_UNKNOWN",
64354
64674
  ORB_BINDING_UNKNOWN_ENTITY: "ORB_BINDING_UNKNOWN_ENTITY",
64355
64675
  ORB_BINDING_UNKNOWN_ROOT: "ORB_BINDING_UNKNOWN_ROOT",
64676
+ // Closed circuit (`ORB_CIRCUIT_*`, `phases/validation/closed_circuit.rs`).
64677
+ // Pre-existing gap: most other ORB_CIRCUIT_* codes the compiler already
64678
+ // emits (e.g. ORB_CIRCUIT_FAILURE_ARM_MISSING, ORB_CIRCUIT_DEAD_BODILESS_ACTION)
64679
+ // are not yet documented here — out of this task's scope, ledgered for a
64680
+ // follow-up sweep.
64681
+ ORB_CIRCUIT_VIEWER_STRANDED: "ORB_CIRCUIT_VIEWER_STRANDED",
64682
+ // Embed / composition (`@trait.X`, `phases/embed_graph.rs`)
64683
+ ORB_EMBED_CONFIG_FORWARD_MULTI_REFERRER: "ORB_EMBED_CONFIG_FORWARD_MULTI_REFERRER",
64356
64684
  // Entity / field
64357
64685
  ORB_E_DUPLICATE_FIELD: "ORB_E_DUPLICATE_FIELD",
64358
64686
  ORB_E_EMPTY_ENUM_VALUES: "ORB_E_EMPTY_ENUM_VALUES",
@@ -64363,6 +64691,9 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64363
64691
  ORB_E_MISSING_COLLECTION: "ORB_E_MISSING_COLLECTION",
64364
64692
  ORB_E_MISSING_NAME: "ORB_E_MISSING_NAME",
64365
64693
  ORB_E_NO_FIELDS: "ORB_E_NO_FIELDS",
64694
+ // Entity ownership / access (`owner_fields_from_schema`,
64695
+ // `phases/validation/entity_access.rs`)
64696
+ ORB_ENTITY_OWNER_COLUMN_UNSCOPED: "ORB_ENTITY_OWNER_COLUMN_UNSCOPED",
64366
64697
  // Effect / emit
64367
64698
  ORB_EFF_CALL_SERVICE_MISSING_ACTION: "ORB_EFF_CALL_SERVICE_MISSING_ACTION",
64368
64699
  ORB_EFF_CALL_SERVICE_MISSING_HANDLERS: "ORB_EFF_CALL_SERVICE_MISSING_HANDLERS",
@@ -64393,6 +64724,8 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64393
64724
  // Orbital
64394
64725
  ORB_O_MISSING_PAGES: "ORB_O_MISSING_PAGES",
64395
64726
  // Page
64727
+ ORB_PAGE_SECOND_CONTENT_BODY: "ORB_PAGE_SECOND_CONTENT_BODY",
64728
+ ORB_PAGE_UNREACHABLE: "ORB_PAGE_UNREACHABLE",
64396
64729
  ORB_P_DUPLICATE_PATH: "ORB_P_DUPLICATE_PATH",
64397
64730
  ORB_P_EMPTY_TRAITS: "ORB_P_EMPTY_TRAITS",
64398
64731
  ORB_P_INVALID_PATH: "ORB_P_INVALID_PATH",
@@ -64408,6 +64741,14 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64408
64741
  ORB_QUERY_UNKNOWN_SINGLETON: "ORB_QUERY_UNKNOWN_SINGLETON",
64409
64742
  ORB_QUERY_UNSUPPORTED_PATTERN: "ORB_QUERY_UNSUPPORTED_PATTERN",
64410
64743
  ORB_QUERY_UNUSED_SINGLETON: "ORB_QUERY_UNUSED_SINGLETON",
64744
+ // Render config vs. linked-entity data shape (`config_type.rs`)
64745
+ ORB_RENDER_GROUPBY_ENUM_COLUMN_GAP: "ORB_RENDER_GROUPBY_ENUM_COLUMN_GAP",
64746
+ // A render-ui embeds `@config.<knob>` where `<knob>` is a `trait`-typed
64747
+ // config field whose resolved value is `none` (unbound), unguarded by an
64748
+ // `(if @config.<knob> ...)` wrapping it in the same effect list — an
64749
+ // unbound trait knob's embed renders nothing (`trait_validator.rs`,
64750
+ // owner ruling 2026-09-13: a `trait`-typed config knob may be `none`).
64751
+ ORB_RENDER_UNBOUND_TRAIT_KNOB_EMBEDDED: "ORB_RENDER_UNBOUND_TRAIT_KNOB_EMBEDDED",
64411
64752
  // Render-UI binding + prop validation
64412
64753
  ORB_RUI_BINDING_TYPE_MISMATCH: "ORB_RUI_BINDING_TYPE_MISMATCH",
64413
64754
  ORB_RUI_ELEMENT_SHAPE_MISMATCH: "ORB_RUI_ELEMENT_SHAPE_MISMATCH",
@@ -64426,6 +64767,8 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64426
64767
  ORB_S_EMPTY_VERSION: "ORB_S_EMPTY_VERSION",
64427
64768
  ORB_S_MISSING_NAME: "ORB_S_MISSING_NAME",
64428
64769
  ORB_S_NO_ORBITALS: "ORB_S_NO_ORBITALS",
64770
+ // Theme (app-level vs. per-orbital config pin, `theme.rs`)
64771
+ ORB_THEME_PIN_CONTRADICTS_APP: "ORB_THEME_PIN_CONTRADICTS_APP",
64429
64772
  // UI slots
64430
64773
  ORB_SLOT_CONTENTION: "ORB_SLOT_CONTENTION",
64431
64774
  ORB_SLOT_CONTENTION_RUNTIME: "ORB_SLOT_CONTENTION_RUNTIME",
@@ -64489,6 +64832,7 @@ var KNOWN_VALIDATION_ERROR_CODES = {
64489
64832
  ORB_X_DUPLICATE_ENTITY: "ORB_X_DUPLICATE_ENTITY",
64490
64833
  ORB_X_EVENT_COLLISION: "ORB_X_EVENT_COLLISION",
64491
64834
  ORB_X_INTERNAL_EVENT_EXPOSED: "ORB_X_INTERNAL_EVENT_EXPOSED",
64835
+ ORB_X_LISTEN_SOURCE_NEVER_PRODUCES: "ORB_X_LISTEN_SOURCE_NEVER_PRODUCES",
64492
64836
  ORB_X_LISTEN_SOURCE_UNRESOLVED: "ORB_X_LISTEN_SOURCE_UNRESOLVED",
64493
64837
  ORB_X_MISSING_ORBITAL_NAME: "ORB_X_MISSING_ORBITAL_NAME",
64494
64838
  ORB_X_ORPHAN_LISTENER: "ORB_X_ORPHAN_LISTENER",
@@ -65201,98 +65545,6 @@ function getNestedValue(obj, path) {
65201
65545
  return value;
65202
65546
  }
65203
65547
 
65204
- // src/page-content-owner.ts
65205
- function writesContentMain(effects) {
65206
- const scan = (node) => {
65207
- if (!Array.isArray(node)) return false;
65208
- if (isMainSlotRenderUi(node)) return isContentBodyPattern(node[2]);
65209
- return node.some(scan);
65210
- };
65211
- return (effects ?? []).some(scan);
65212
- }
65213
- function isContentMainWriter(trait) {
65214
- return (trait.stateMachine?.transitions ?? []).some((transition) => writesContentMain(transition.effects)) || (trait.ticks ?? []).some((tick) => writesContentMain(tick.effects)) || writesContentMain(trait.initialEffects);
65215
- }
65216
- function reduceToOwners(candidates, configAdjacency, embedAdjacency) {
65217
- const reach = (start, adjacency) => {
65218
- const out = /* @__PURE__ */ new Set();
65219
- const walk = [start];
65220
- const seen = /* @__PURE__ */ new Set();
65221
- while (walk.length > 0) {
65222
- const from = walk.shift();
65223
- if (from === void 0 || seen.has(from)) continue;
65224
- seen.add(from);
65225
- for (const target of adjacency.get(from) ?? []) {
65226
- out.add(target);
65227
- walk.push(target);
65228
- }
65229
- }
65230
- return out;
65231
- };
65232
- const members = [...candidates];
65233
- const dropped = /* @__PURE__ */ new Set();
65234
- for (const a of members) {
65235
- const designates = reach(a, configAdjacency);
65236
- const contains = reach(a, embedAdjacency);
65237
- for (const b of members) {
65238
- if (a === b) continue;
65239
- if (designates.has(b)) dropped.add(a);
65240
- else if (contains.has(b)) dropped.add(b);
65241
- }
65242
- }
65243
- return members.filter((name) => !dropped.has(name));
65244
- }
65245
- function resolvePageContentOwner(page, traits, configAdjacency, embedAdjacency = configAdjacency) {
65246
- const declared = [];
65247
- for (const ref2 of page.traits ?? []) {
65248
- const name = typeof ref2 === "string" ? ref2 : ref2.ref;
65249
- if (typeof name === "string" && name.length > 0) declared.push(name);
65250
- }
65251
- if (declared.length === 0) return { kind: "none" };
65252
- const onPage = new Set(declared);
65253
- const channel = /* @__PURE__ */ new Set();
65254
- const seen = /* @__PURE__ */ new Set();
65255
- const queue = declared.filter((name) => onPage.has(name));
65256
- while (queue.length > 0) {
65257
- const from = queue.shift();
65258
- if (from === void 0 || seen.has(from)) continue;
65259
- seen.add(from);
65260
- for (const target of configAdjacency.get(from) ?? []) {
65261
- const trait = traits.get(target);
65262
- if (trait === void 0) continue;
65263
- if (isContentMainWriter(trait)) channel.add(target);
65264
- queue.push(target);
65265
- }
65266
- }
65267
- const terminal = reduceToOwners(channel, configAdjacency, embedAdjacency);
65268
- if (terminal.length === 1) {
65269
- const [only] = terminal;
65270
- if (only !== void 0) return { kind: "channel", trait: only };
65271
- }
65272
- if (terminal.length > 1) return { kind: "ambiguous", candidates: terminal.sort() };
65273
- const writers = declared.filter((name) => {
65274
- const trait = traits.get(name);
65275
- return trait !== void 0 && isContentMainWriter(trait);
65276
- });
65277
- const distinct = reduceToOwners(new Set(writers), configAdjacency, embedAdjacency);
65278
- if (distinct.length === 0) return { kind: "none" };
65279
- if (distinct.length === 1) {
65280
- const [only] = distinct;
65281
- if (only !== void 0) return { kind: "sole-writer", trait: only };
65282
- }
65283
- return { kind: "ambiguous", candidates: distinct.sort() };
65284
- }
65285
- function resolveContentOwners(orbital, traits, configAdjacency) {
65286
- const out = /* @__PURE__ */ new Map();
65287
- for (const ref2 of orbital.pages ?? []) {
65288
- if (isPageReference(ref2)) continue;
65289
- const path = ref2.path;
65290
- if (typeof path !== "string" || path.length === 0) continue;
65291
- out.set(path, resolvePageContentOwner(ref2, traits, configAdjacency));
65292
- }
65293
- return out;
65294
- }
65295
-
65296
65548
  // src/listen-payload-mapping.ts
65297
65549
  function applyListenPayloadMapping(payloadMapping, payload, evaluate) {
65298
65550
  if (!payloadMapping || !payload) return payload;
@@ -67728,6 +67980,13 @@ function nestedPayload(path, leaf) {
67728
67980
  function isPayloadObject(v) {
67729
67981
  return typeof v === "object" && v !== null && !Array.isArray(v) && !(v instanceof Date);
67730
67982
  }
67983
+ function extractArrayLenPath(ref2) {
67984
+ if (!Array.isArray(ref2) || ref2.length !== 2 || ref2[0] !== "array/len") return null;
67985
+ return extractPayloadFieldPath(ref2[1]);
67986
+ }
67987
+ function arrayOfLength(n) {
67988
+ return Array.from({ length: Math.max(0, n) }, (_, i) => ({ id: `mock-test-id-${i}` }));
67989
+ }
67731
67990
  var SYNTHESIZED_GUARD_OPERATORS = /* @__PURE__ */ new Set([
67732
67991
  "not-nil",
67733
67992
  "not_nil",
@@ -67952,23 +68211,31 @@ function buildGuardPayloads(guard) {
67952
68211
  if (objectGetPayload) return objectGetPayload;
67953
68212
  }
67954
68213
  if (op === "gt" || op === ">") {
67955
- const path = extractPayloadFieldPath(guard[1]);
68214
+ const arrayPath = extractArrayLenPath(guard[1]);
67956
68215
  const n = typeof guard[2] === "number" ? guard[2] : 0;
68216
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n + 1)), fail: nestedPayload(arrayPath, arrayOfLength(n)) };
68217
+ const path = extractPayloadFieldPath(guard[1]);
67957
68218
  if (path) return { pass: nestedPayload(path, n + 1), fail: nestedPayload(path, n - 1) };
67958
68219
  }
67959
68220
  if (op === "gte" || op === ">=") {
67960
- const path = extractPayloadFieldPath(guard[1]);
68221
+ const arrayPath = extractArrayLenPath(guard[1]);
67961
68222
  const n = typeof guard[2] === "number" ? guard[2] : 0;
68223
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n)), fail: nestedPayload(arrayPath, arrayOfLength(n - 1)) };
68224
+ const path = extractPayloadFieldPath(guard[1]);
67962
68225
  if (path) return { pass: nestedPayload(path, n), fail: nestedPayload(path, n - 1) };
67963
68226
  }
67964
68227
  if (op === "lt" || op === "<") {
67965
- const path = extractPayloadFieldPath(guard[1]);
68228
+ const arrayPath = extractArrayLenPath(guard[1]);
67966
68229
  const n = typeof guard[2] === "number" ? guard[2] : 0;
68230
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n - 1)), fail: nestedPayload(arrayPath, arrayOfLength(n + 1)) };
68231
+ const path = extractPayloadFieldPath(guard[1]);
67967
68232
  if (path) return { pass: nestedPayload(path, n - 1), fail: nestedPayload(path, n + 1) };
67968
68233
  }
67969
68234
  if (op === "lte" || op === "<=") {
67970
- const path = extractPayloadFieldPath(guard[1]);
68235
+ const arrayPath = extractArrayLenPath(guard[1]);
67971
68236
  const n = typeof guard[2] === "number" ? guard[2] : 0;
68237
+ if (arrayPath) return { pass: nestedPayload(arrayPath, arrayOfLength(n)), fail: nestedPayload(arrayPath, arrayOfLength(n + 1)) };
68238
+ const path = extractPayloadFieldPath(guard[1]);
67972
68239
  if (path) return { pass: nestedPayload(path, n), fail: nestedPayload(path, n + 1) };
67973
68240
  }
67974
68241
  if (op === "and") {
@@ -70895,6 +71162,6 @@ function reportIdenticalToEnglish(input) {
70895
71162
  return problems;
70896
71163
  }
70897
71164
 
70898
- export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, 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_UNIT_ANIMATION_ROWS, 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, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FieldValueSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, I18N_SECTIONS, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LANGUAGE_CODES, LOLO_FIRST_TOKEN_KEYWORDS, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, ORB_NOTATION_KEYS, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalRefObjectSchema, OrbitalRefStringSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, PayloadTypeWhenSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SELF_OVERLAY_PATTERN_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, SPRITE_SHEET_LAYOUT, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SoundEntrySchema, 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, aliasMap, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, assertNoUnsatisfiableEnum, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, checkI18nCoverage, classifyWorkflow, clearSchemaCache, collectBindings, collectCallsiteCaptureChildren, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, coreTables, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, defaultUnitAtlas, deref, deriveCollection, deriveExpectations, deriveId, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, expectedEntityName, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getNestedValue, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, getVocabulary, hasService, hasSignificantPageReduction, idKindOf, idPrefix, inferTsType, insertChildAtPath, integrators_registry_default as integratorsRegistry, isBinding, isCallSiteConfigDeclaration, isCircuitEvent, isContentBodyPattern, isContentBodyPatternType, isContentMainWriter, isDestructiveChange, isDrawHostPattern, isDrawablePattern, isEffect, isEmailValue, isEntityAwarePattern, isEntityCall, isEntityId, isEntityReference, isEntityReferenceAny, isEventId, isEventPayloadValue, isFieldValue, isFileValue, 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, isValueInputPattern, languageOfLoloFirstToken, languageOfOrbTopLevelKeys, ledgerCurName, ledgerRename, ledgerResolveName, lexLolo, localizeLoloSource, localizeMap, localizeOrbValue, manifestToAssetCatalog, mapTensorLastDim, maskSecretConfigValues, matchAssetQuery, mergeEntityFrame, mintId, navigate, navigateBack, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, omitFrameFields, overrideDeclaredKnobs, parseAssetKey, parseAssetQuery, parseBinding, parseEntityRef, parseI18nTables, parseImportedTraitRef, parseOperatorTables, parseOrbitalRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, reduceToOwners, ref, registry, rehydrateKnobDefs, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, reportIdenticalToEnglish, requiresConfirmation, resolveConfigRefEventName, resolveContentOwners, resolveDefaultViewer, resolveEntityView, resolvePageContentOwner, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, signatureToParamsSchema, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, traitReferencesCallsitePayload, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
71165
+ export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, ANIMATION_NAMES, ANONYMOUS_USER, ASSET_ASPECTS, ASSET_DIMENSIONS, AgentDomainCategorySchema, AnimationDefSchema, AnimationNameSchema, AssetAspectSchema, AssetCatalogEntrySchema, AssetCatalogSchema, AssetDimensionSchema, AssetSchema, AudioManifestSchema, 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_UNIT_ANIMATION_ROWS, 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, ExpectDeclarationSchema, ExpressionSchema, FIELD_TYPES, FieldSchema, FieldTypeSchema, FieldValueSchema, FileValueSchema, GameSubCategorySchema, GeometrySliceSchema, GeometryTokensSchema, GuardSchema, I18N_SECTIONS, INTEGRATORS_REGISTRY, IconFamilySchema, IconographySliceSchema, IconographyTokensSchema, IdentityLedgerSchema, IllustrationSliceSchema, IllustrationStyleSchema, IllustrationTokensSchema, InteractionModelSchema, KNOWN_VALIDATION_ERROR_CODES, LANGUAGE_CODES, LOLO_FIRST_TOKEN_KEYWORDS, LedgerEntrySchema, LedgerKindSchema, ListenSourceSchema, MANIFEST_ASSET_LICENSES, MANIFEST_CANVAS_AFFINITIES, MANIFEST_ENTRY_KINDS, MANIFEST_SOURCE_CATALOGS, ManifestAssetLicenseSchema, ManifestCanvasAffinitySchema, ManifestEntryKindSchema, ManifestEntrySchema, ManifestFrameSpecSchema, ManifestSourceCatalogSchema, McpServiceDefSchema, MotionDurationKeySchema, MotionDurationPaletteSchema, MotionEasingKeySchema, MotionEasingPaletteSchema, MotionIntentMapSchema, MotionIntentSchema, MotionSliceSchema, MotionTokensSchema, NodeClassificationSchema, ORB_NOTATION_KEYS, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalIdSchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalRefObjectSchema, OrbitalRefStringSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PATTERN_REGISTRY, PATTERN_TYPES, PageIdSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PaletteEntryIdSchema, PatternTypeSchema, PayloadFieldSchema, PayloadTypeWhenSchema, REFERENCE_CONFIG_TYPES, RENDER_BINDING_MARKER, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, RestAuthConfigSchema, RestServiceDefSchema, SECRET_CONFIG_TYPES, SELF_OVERLAY_PATTERN_TYPES, SEMANTIC_STRING_TYPES, SERVICE_TYPES, SExprAtomSchema, SExprDataSchema, SExprSchema, SHEET_PROJECTIONS, SPRITE_DIRECTIONS, SPRITE_SHEET_LAYOUT, ScenePosSchema, SchemaMetadataSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceIdSchema, ServiceRefObjectSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SheetProjectionSchema, SkinSpecSchema, SocketEventsSchema, SocketServiceDefSchema, SoundEntrySchema, 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, aliasMap, answerToMutations, answersToMutations, applyEventWiring, applyFactoryCallPlanMutation, applyListenPayloadMapping, applyRenderOverlay, asEntityId, asEventId, asOrbitalId, asPageId, asPaletteEntryId, asServiceId, asThemeId, asTraitId, assertNoUnsatisfiableEnum, atomic, buildEdgeCoveringWalk, buildGuardPayloads, buildRecommendationContext, buildReplayPaths, buildResolvedTraitConfigs, buildStateGraph, callService, categorizeRemovals, checkI18nCoverage, classifyWorkflow, clearSchemaCache, collectBindings, collectCallsiteCaptureChildren, collectEmbeddedTraitReferrers, collectReachableStates, collectRenderUiPatternTypes, collectTraitConfigRefAdjacency, collectTraitEmbedAdjacency, component_mapping_default as componentMapping, composeBehaviors, configRefEventKnob, constTruth, containsEntityBinding, containsPayloadBinding, contractFieldName, coreTables, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, decodeDevIdentityToken, defaultUnitAtlas, deref, deriveCollection, deriveExpectations, deriveId, deriveInputType, describeTensorMismatch, despawn, detectLayoutStrategy, detectPageContentReduction, diffFactoryCalls, diffOrbitalSchemas, diffSchemaSemantics, diffSchemas, doEffects, emit, encodeDevIdentityToken, entityAccessPolicies, entityAccessTable, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, expectedEntityName, extractPayloadFieldRef, findCompatiblePatterns, findPersonaInRoster, findService, fingerprintNode, formatRecommendationsForPrompt, gatherTensorLastDim, generatePatternDescription, generateQuestions, getAllPatternTypes, getArgs, getBindingExamples, getComponentForPattern, getDefaultAnimationsForRole, getEmittedEvents, getEntity, getEntityCardinality, getInteractionModelForDomain, getNestedValue, getOperator, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPage, getPages, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, getRemovals, getSchemaCacheStats, getServiceNames, getTrait, getTraitConfig, getTraitName, getVocabulary, 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, isFileValue, 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, isValueInputPattern, languageOfLoloFirstToken, languageOfOrbTopLevelKeys, ledgerCurName, ledgerRename, ledgerResolveName, lexLolo, localizeLoloSource, localizeMap, localizeOrbValue, manifestToAssetCatalog, mapTensorLastDim, maskSecretConfigValues, matchAssetQuery, mergeEntityFrame, mintId, navigate, navigateBack, navigatePatternPath, normalizeCallSiteConfigToValues, normalizeTraitRef, normalizeUserContext, omitFrameFields, overrideDeclaredKnobs, parseAssetKey, parseAssetQuery, parseBinding, parseEntityRef, parseI18nTables, parseImportedTraitRef, parseOperatorTables, parseOrbitalRef, parseOrbitalSchema, parsePageRef, parseServiceRef, patterns_registry_default as patternsRegistry, persist, persistenceModeAllowsOverrides, personaFromIdentityRow, recommendPatterns, ref, registry, rehydrateKnobDefs, removeChildAtPath, renderUI, renderUiPatternTypesOf, replaceChildAtPath, reportIdenticalToEnglish, requiresConfirmation, resolveConfigRefEventName, resolveDefaultViewer, resolveEntityView, resolvePersonaSpec, safeParseOrbitalSchema, schemaToIR, set, setPropAtPath, sexpr, signatureToParamsSchema, spawn, summarizeOrbital, summarizeSchema, swap, tensorLastDimSize, tensorShape, toBindingRoot, traitDeclaresConfigForward, traitReferencesCallsitePayload, translateOverlaysToParams, validateAssetAnimations, validateBindingInContext, validateContract, walkSExpr, walkStatePairs, watch, widenTier };
70899
71166
  //# sourceMappingURL=index.js.map
70900
71167
  //# sourceMappingURL=index.js.map