@almadar/core 10.81.0 → 10.83.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 +10 -0
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-BHoSW19_.d.ts → effect-DruTSW2O.d.ts} +123 -4
  5. package/dist/{entityAccess-0POr1WuY.d.ts → entityAccess-BoYVXf3b.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +863 -5
  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 +10 -0
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/{index-rVlLkZJu.d.ts → index-76Ff6JCE.d.ts} +4 -4
  13. package/dist/index.d.ts +10 -10
  14. package/dist/index.js +894 -10
  15. package/dist/index.js.map +1 -1
  16. package/dist/mock/index.d.ts +4 -4
  17. package/dist/mock/index.js +10 -0
  18. package/dist/mock/index.js.map +1 -1
  19. package/dist/patterns/component-mapping.json +11 -1
  20. package/dist/patterns/event-contracts.json +15 -1
  21. package/dist/patterns/index.d.ts +1861 -23
  22. package/dist/patterns/index.js +883 -9
  23. package/dist/patterns/index.js.map +1 -1
  24. package/dist/patterns/integrators-registry.json +1 -1
  25. package/dist/patterns/patterns-registry.json +854 -6
  26. package/dist/patterns/registry.json +854 -6
  27. package/dist/patterns/services-registry.json +1 -1
  28. package/dist/{schema-CkTTGH6l.d.ts → schema-BdeZ8R35.d.ts} +4482 -4482
  29. package/dist/{trait-D269f6pt.d.ts → trait-DKJWX0Ru.d.ts} +1 -1
  30. package/dist/types/index.d.ts +5 -5
  31. package/dist/types/index.js +13 -1
  32. package/dist/types/index.js.map +1 -1
  33. package/dist/{types-7PHjoE7m.d.ts → types-CRr2IuTj.d.ts} +2 -2
  34. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // src/patterns/patterns-registry.json
4
4
  var patterns_registry_default = {
5
5
  version: "1.0.0",
6
- exportedAt: "2026-09-03T03:26:05.097Z",
6
+ exportedAt: "2026-09-04T03:53:29.561Z",
7
7
  patterns: {
8
8
  "entity-table": {
9
9
  type: "entity-table",
@@ -16404,7 +16404,7 @@ var patterns_registry_default = {
16404
16404
  types: [
16405
16405
  "object"
16406
16406
  ],
16407
- description: "GAP-80: line-level error/warning highlights for editable mode. Map of 1-based line number \u2192 severity. The overlay paints a colored background on each line: error = red, warning = yellow. Pass undefined (default) to disable. The consumer is responsible for computing the path \u2192 line map from the schema + validation results.",
16407
+ description: "GAP-80: line-level error/warning highlights. Map of 1-based line number \u2192 severity. Paints a colored background on each line: error = red, warning = yellow. Honored by the editable overlay and (GAP-84) by viewer mode's non-diff highlight; pass undefined (default) to disable. The consumer is responsible for computing the path \u2192 line map from the schema + validation results.",
16408
16408
  nonAuthorable: true
16409
16409
  },
16410
16410
  title: {
@@ -16693,6 +16693,265 @@ var patterns_registry_default = {
16693
16693
  "boolean"
16694
16694
  ],
16695
16695
  description: "Show copy button (viewer alias for showCopyButton)"
16696
+ },
16697
+ editorId: {
16698
+ types: [
16699
+ "string"
16700
+ ],
16701
+ description: "Stable identity for the keyboard router / plugin host to target this editor. Unset = this instance never receives capability events.",
16702
+ tier: "presentation"
16703
+ },
16704
+ onEditorFocus: {
16705
+ types: [
16706
+ "string"
16707
+ ],
16708
+ description: "Declarative bus emit fired when this editor gains focus.",
16709
+ kind: "event-ref",
16710
+ emitPayloadSchema: [
16711
+ {
16712
+ name: "editorId",
16713
+ type: "string",
16714
+ required: true
16715
+ }
16716
+ ],
16717
+ default: "EDITOR_FOCUS",
16718
+ tier: "presentation"
16719
+ },
16720
+ onEditorBlur: {
16721
+ types: [
16722
+ "string"
16723
+ ],
16724
+ description: "Declarative bus emit fired when this editor loses focus.",
16725
+ kind: "event-ref",
16726
+ emitPayloadSchema: [
16727
+ {
16728
+ name: "editorId",
16729
+ type: "string",
16730
+ required: true
16731
+ }
16732
+ ],
16733
+ default: "EDITOR_BLUR",
16734
+ tier: "presentation"
16735
+ },
16736
+ onMotion: {
16737
+ types: [
16738
+ "string"
16739
+ ],
16740
+ description: "Declarative bus listen: move the cursor per the vim-style motion vocabulary.",
16741
+ kind: "event-listen",
16742
+ listenPayloadSchema: [
16743
+ {
16744
+ name: "editorId",
16745
+ type: "string",
16746
+ required: true
16747
+ },
16748
+ {
16749
+ name: "motion",
16750
+ type: "string",
16751
+ required: true,
16752
+ enumValues: [
16753
+ "left",
16754
+ "right",
16755
+ "up",
16756
+ "down",
16757
+ "word-forward",
16758
+ "word-back",
16759
+ "word-end",
16760
+ "line-start",
16761
+ "line-end",
16762
+ "first-nonblank",
16763
+ "doc-start",
16764
+ "doc-end",
16765
+ "paragraph-forward",
16766
+ "paragraph-back",
16767
+ "line",
16768
+ "selection"
16769
+ ]
16770
+ },
16771
+ {
16772
+ name: "count",
16773
+ type: "number",
16774
+ required: true
16775
+ }
16776
+ ],
16777
+ default: "MOTION",
16778
+ tier: "presentation"
16779
+ },
16780
+ onOperate: {
16781
+ types: [
16782
+ "string"
16783
+ ],
16784
+ description: "Declarative bus listen: apply a text operator over a motion's range.",
16785
+ kind: "event-listen",
16786
+ listenPayloadSchema: [
16787
+ {
16788
+ name: "editorId",
16789
+ type: "string",
16790
+ required: true
16791
+ },
16792
+ {
16793
+ name: "operator",
16794
+ type: "string",
16795
+ required: true,
16796
+ enumValues: [
16797
+ "delete",
16798
+ "yank",
16799
+ "change"
16800
+ ]
16801
+ },
16802
+ {
16803
+ name: "motion",
16804
+ type: "string",
16805
+ required: true,
16806
+ enumValues: [
16807
+ "left",
16808
+ "right",
16809
+ "up",
16810
+ "down",
16811
+ "word-forward",
16812
+ "word-back",
16813
+ "word-end",
16814
+ "line-start",
16815
+ "line-end",
16816
+ "first-nonblank",
16817
+ "doc-start",
16818
+ "doc-end",
16819
+ "paragraph-forward",
16820
+ "paragraph-back",
16821
+ "line",
16822
+ "selection"
16823
+ ]
16824
+ },
16825
+ {
16826
+ name: "count",
16827
+ type: "number",
16828
+ required: true
16829
+ }
16830
+ ],
16831
+ default: "OPERATE",
16832
+ tier: "presentation"
16833
+ },
16834
+ onInsertText: {
16835
+ types: [
16836
+ "string"
16837
+ ],
16838
+ description: "Declarative bus listen: insert literal text at the cursor.",
16839
+ kind: "event-listen",
16840
+ listenPayloadSchema: [
16841
+ {
16842
+ name: "editorId",
16843
+ type: "string",
16844
+ required: true
16845
+ },
16846
+ {
16847
+ name: "text",
16848
+ type: "string",
16849
+ required: true
16850
+ }
16851
+ ],
16852
+ default: "INSERT_TEXT",
16853
+ tier: "presentation"
16854
+ },
16855
+ onSetMode: {
16856
+ types: [
16857
+ "string"
16858
+ ],
16859
+ description: "Declarative bus listen: switch editor mode and caret style.",
16860
+ kind: "event-listen",
16861
+ listenPayloadSchema: [
16862
+ {
16863
+ name: "editorId",
16864
+ type: "string",
16865
+ required: true
16866
+ },
16867
+ {
16868
+ name: "mode",
16869
+ type: "string",
16870
+ required: true
16871
+ },
16872
+ {
16873
+ name: "caret",
16874
+ type: "string",
16875
+ required: true,
16876
+ enumValues: [
16877
+ "bar",
16878
+ "block",
16879
+ "underline"
16880
+ ]
16881
+ }
16882
+ ],
16883
+ default: "SET_MODE",
16884
+ tier: "presentation"
16885
+ },
16886
+ motions: {
16887
+ types: [
16888
+ "array"
16889
+ ],
16890
+ description: "Motion vocabulary this editor accepts. Default: the full `EditorMotion` set.",
16891
+ items: {
16892
+ types: [
16893
+ "string"
16894
+ ],
16895
+ enumValues: [
16896
+ "left",
16897
+ "right",
16898
+ "up",
16899
+ "down",
16900
+ "word-forward",
16901
+ "word-back",
16902
+ "word-end",
16903
+ "line-start",
16904
+ "line-end",
16905
+ "first-nonblank",
16906
+ "doc-start",
16907
+ "doc-end",
16908
+ "paragraph-forward",
16909
+ "paragraph-back",
16910
+ "line",
16911
+ "selection"
16912
+ ]
16913
+ },
16914
+ default: [
16915
+ "left",
16916
+ "right",
16917
+ "up",
16918
+ "down",
16919
+ "word-forward",
16920
+ "word-back",
16921
+ "word-end",
16922
+ "line-start",
16923
+ "line-end",
16924
+ "first-nonblank",
16925
+ "doc-start",
16926
+ "doc-end",
16927
+ "paragraph-forward",
16928
+ "paragraph-back",
16929
+ "line",
16930
+ "selection"
16931
+ ],
16932
+ tier: "presentation"
16933
+ },
16934
+ operators: {
16935
+ types: [
16936
+ "array"
16937
+ ],
16938
+ description: "Operator vocabulary this editor accepts. Default: the full `EditorOperator` set.",
16939
+ items: {
16940
+ types: [
16941
+ "string"
16942
+ ],
16943
+ enumValues: [
16944
+ "delete",
16945
+ "yank",
16946
+ "change"
16947
+ ]
16948
+ },
16949
+ default: [
16950
+ "delete",
16951
+ "yank",
16952
+ "change"
16953
+ ],
16954
+ tier: "presentation"
16696
16955
  }
16697
16956
  }
16698
16957
  },
@@ -26755,7 +27014,12 @@ var patterns_registry_default = {
26755
27014
  {
26756
27015
  name: "next",
26757
27016
  type: "string",
26758
- required: true
27017
+ required: true,
27018
+ enumValues: [
27019
+ "up",
27020
+ "down",
27021
+ "none"
27022
+ ]
26759
27023
  }
26760
27024
  ]
26761
27025
  },
@@ -27223,7 +27487,12 @@ var patterns_registry_default = {
27223
27487
  {
27224
27488
  name: "vote",
27225
27489
  type: "string",
27226
- required: true
27490
+ required: true,
27491
+ enumValues: [
27492
+ "up",
27493
+ "down",
27494
+ "none"
27495
+ ]
27227
27496
  }
27228
27497
  ]
27229
27498
  },
@@ -32711,6 +32980,20 @@ var patterns_registry_default = {
32711
32980
  "role",
32712
32981
  "category"
32713
32982
  ]
32983
+ },
32984
+ toggleEvent: {
32985
+ types: [
32986
+ "string"
32987
+ ],
32988
+ description: "Event dispatched via event bus on toggle, carrying the new muted state.",
32989
+ kind: "event-ref",
32990
+ emitPayloadSchema: [
32991
+ {
32992
+ name: "muted",
32993
+ type: "boolean",
32994
+ required: true
32995
+ }
32996
+ ]
32714
32997
  }
32715
32998
  }
32716
32999
  },
@@ -36283,7 +36566,11 @@ var patterns_registry_default = {
36283
36566
  {
36284
36567
  name: "direction",
36285
36568
  type: "string",
36286
- required: true
36569
+ required: true,
36570
+ enumValues: [
36571
+ "asc",
36572
+ "desc"
36573
+ ]
36287
36574
  }
36288
36575
  ]
36289
36576
  },
@@ -37813,6 +38100,92 @@ var patterns_registry_default = {
37813
38100
  ]
37814
38101
  }
37815
38102
  },
38103
+ editable: {
38104
+ types: [
38105
+ "boolean"
38106
+ ],
38107
+ description: "--- Scene-edit mode (a game studio selecting/dragging drawables). Purely",
38108
+ default: false
38109
+ },
38110
+ selectedId: {
38111
+ types: [
38112
+ "string"
38113
+ ],
38114
+ description: "The currently-selected drawable id (controlled); `null`/undefined = none.",
38115
+ default: null
38116
+ },
38117
+ onSelect: {
38118
+ types: [
38119
+ "function"
38120
+ ],
38121
+ description: "Fired on a click that changes selection \u2014 before `selectEvent`.",
38122
+ kind: "callback",
38123
+ callbackArgs: [
38124
+ {
38125
+ name: "id",
38126
+ type: "string"
38127
+ }
38128
+ ]
38129
+ },
38130
+ onMove: {
38131
+ types: [
38132
+ "function"
38133
+ ],
38134
+ description: "Fired once per drag gesture, on drop \u2014 before `moveEvent`.",
38135
+ kind: "callback",
38136
+ callbackArgs: [
38137
+ {
38138
+ name: "id",
38139
+ type: "string"
38140
+ },
38141
+ {
38142
+ name: "x",
38143
+ type: "number"
38144
+ },
38145
+ {
38146
+ name: "y",
38147
+ type: "number"
38148
+ }
38149
+ ]
38150
+ },
38151
+ selectEvent: {
38152
+ types: [
38153
+ "string"
38154
+ ],
38155
+ description: "Declarative selection event, `UI:{selectEvent} { id }`.",
38156
+ kind: "event-ref",
38157
+ emitPayloadSchema: [
38158
+ {
38159
+ name: "id",
38160
+ type: "string",
38161
+ required: true
38162
+ }
38163
+ ]
38164
+ },
38165
+ moveEvent: {
38166
+ types: [
38167
+ "string"
38168
+ ],
38169
+ description: "Declarative move event, `UI:{moveEvent} { id, x, y }` \u2014 fired once on drop.",
38170
+ kind: "event-ref",
38171
+ emitPayloadSchema: [
38172
+ {
38173
+ name: "id",
38174
+ type: "string",
38175
+ required: true
38176
+ },
38177
+ {
38178
+ name: "x",
38179
+ type: "number",
38180
+ required: true
38181
+ },
38182
+ {
38183
+ name: "y",
38184
+ type: "number",
38185
+ required: true
38186
+ }
38187
+ ]
38188
+ },
37816
38189
  camera: {
37817
38190
  types: [
37818
38191
  "string"
@@ -38161,7 +38534,13 @@ var patterns_registry_default = {
38161
38534
  {
38162
38535
  name: "direction",
38163
38536
  type: "string",
38164
- required: true
38537
+ required: true,
38538
+ enumValues: [
38539
+ "up",
38540
+ "down",
38541
+ "left",
38542
+ "right"
38543
+ ]
38165
38544
  },
38166
38545
  {
38167
38546
  name: "pressed",
@@ -38988,6 +39367,12 @@ var patterns_registry_default = {
38988
39367
  ],
38989
39368
  description: "Background color (default transparent)."
38990
39369
  },
39370
+ fontFamily: {
39371
+ types: [
39372
+ "string"
39373
+ ],
39374
+ description: "Canvas text font family. Falls back to the theme's --font-family-body."
39375
+ },
38991
39376
  shapes: {
38992
39377
  types: [
38993
39378
  "array"
@@ -39112,6 +39497,11 @@ var patterns_registry_default = {
39112
39497
  "number"
39113
39498
  ]
39114
39499
  },
39500
+ fontFamily: {
39501
+ types: [
39502
+ "string"
39503
+ ]
39504
+ },
39115
39505
  align: {
39116
39506
  types: [
39117
39507
  "string"
@@ -39181,6 +39571,7 @@ var patterns_registry_default = {
39181
39571
  "string"
39182
39572
  ],
39183
39573
  enumValues: [
39574
+ "solid",
39184
39575
  "dashed",
39185
39576
  "dotted"
39186
39577
  ]
@@ -40484,6 +40875,11 @@ var patterns_registry_default = {
40484
40875
  "number"
40485
40876
  ]
40486
40877
  },
40878
+ fontFamily: {
40879
+ types: [
40880
+ "string"
40881
+ ]
40882
+ },
40487
40883
  align: {
40488
40884
  types: [
40489
40885
  "string"
@@ -40553,6 +40949,7 @@ var patterns_registry_default = {
40553
40949
  "string"
40554
40950
  ],
40555
40951
  enumValues: [
40952
+ "solid",
40556
40953
  "dashed",
40557
40954
  "dotted"
40558
40955
  ]
@@ -41759,6 +42156,11 @@ var patterns_registry_default = {
41759
42156
  "number"
41760
42157
  ]
41761
42158
  },
42159
+ fontFamily: {
42160
+ types: [
42161
+ "string"
42162
+ ]
42163
+ },
41762
42164
  align: {
41763
42165
  types: [
41764
42166
  "string"
@@ -41828,6 +42230,7 @@ var patterns_registry_default = {
41828
42230
  "string"
41829
42231
  ],
41830
42232
  enumValues: [
42233
+ "solid",
41831
42234
  "dashed",
41832
42235
  "dotted"
41833
42236
  ]
@@ -42235,6 +42638,12 @@ var patterns_registry_default = {
42235
42638
  description: "Base font size in px for all other canvas annotations (points, vectors, guides, curves, regions, angles, hops; default 12).",
42236
42639
  default: 12
42237
42640
  },
42641
+ fontFamily: {
42642
+ types: [
42643
+ "string"
42644
+ ],
42645
+ description: 'Canvas text font family. Accepts a known game-font key (e.g. "future-narrow") or a CSS font-family string.'
42646
+ },
42238
42647
  showCurveLabels: {
42239
42648
  types: [
42240
42649
  "boolean"
@@ -42293,6 +42702,7 @@ var patterns_registry_default = {
42293
42702
  "string"
42294
42703
  ],
42295
42704
  enumValues: [
42705
+ "solid",
42296
42706
  "dashed",
42297
42707
  "dotted"
42298
42708
  ]
@@ -42578,6 +42988,7 @@ var patterns_registry_default = {
42578
42988
  "string"
42579
42989
  ],
42580
42990
  enumValues: [
42991
+ "solid",
42581
42992
  "dashed",
42582
42993
  "dotted"
42583
42994
  ]
@@ -42812,6 +43223,11 @@ var patterns_registry_default = {
42812
43223
  "number"
42813
43224
  ]
42814
43225
  },
43226
+ fontFamily: {
43227
+ types: [
43228
+ "string"
43229
+ ]
43230
+ },
42815
43231
  align: {
42816
43232
  types: [
42817
43233
  "string"
@@ -42881,6 +43297,7 @@ var patterns_registry_default = {
42881
43297
  "string"
42882
43298
  ],
42883
43299
  enumValues: [
43300
+ "solid",
42884
43301
  "dashed",
42885
43302
  "dotted"
42886
43303
  ]
@@ -44347,6 +44764,11 @@ var patterns_registry_default = {
44347
44764
  "number"
44348
44765
  ]
44349
44766
  },
44767
+ fontFamily: {
44768
+ types: [
44769
+ "string"
44770
+ ]
44771
+ },
44350
44772
  align: {
44351
44773
  types: [
44352
44774
  "string"
@@ -44416,6 +44838,7 @@ var patterns_registry_default = {
44416
44838
  "string"
44417
44839
  ],
44418
44840
  enumValues: [
44841
+ "solid",
44419
44842
  "dashed",
44420
44843
  "dotted"
44421
44844
  ]
@@ -45556,6 +45979,11 @@ var patterns_registry_default = {
45556
45979
  "number"
45557
45980
  ]
45558
45981
  },
45982
+ fontFamily: {
45983
+ types: [
45984
+ "string"
45985
+ ]
45986
+ },
45559
45987
  align: {
45560
45988
  types: [
45561
45989
  "string"
@@ -45625,6 +46053,7 @@ var patterns_registry_default = {
45625
46053
  "string"
45626
46054
  ],
45627
46055
  enumValues: [
46056
+ "solid",
45628
46057
  "dashed",
45629
46058
  "dotted"
45630
46059
  ]
@@ -48838,6 +49267,90 @@ var patterns_registry_default = {
48838
49267
  ]
48839
49268
  }
48840
49269
  },
49270
+ editable: {
49271
+ types: [
49272
+ "boolean"
49273
+ ],
49274
+ description: "--- Scene-edit mode (a game studio selecting/dragging drawables). Purely"
49275
+ },
49276
+ selectedId: {
49277
+ types: [
49278
+ "string"
49279
+ ],
49280
+ description: "The currently-selected drawable id (controlled); `null`/undefined = none."
49281
+ },
49282
+ onSelect: {
49283
+ types: [
49284
+ "function"
49285
+ ],
49286
+ description: "Fired on a click that changes selection \u2014 before `selectEvent`.",
49287
+ kind: "callback",
49288
+ callbackArgs: [
49289
+ {
49290
+ name: "id",
49291
+ type: "string"
49292
+ }
49293
+ ]
49294
+ },
49295
+ onMove: {
49296
+ types: [
49297
+ "function"
49298
+ ],
49299
+ description: "Fired once per drag gesture, on drop \u2014 before `moveEvent`.",
49300
+ kind: "callback",
49301
+ callbackArgs: [
49302
+ {
49303
+ name: "id",
49304
+ type: "string"
49305
+ },
49306
+ {
49307
+ name: "x",
49308
+ type: "number"
49309
+ },
49310
+ {
49311
+ name: "y",
49312
+ type: "number"
49313
+ }
49314
+ ]
49315
+ },
49316
+ selectEvent: {
49317
+ types: [
49318
+ "string"
49319
+ ],
49320
+ description: "Declarative selection event, `UI:{selectEvent} { id }`.",
49321
+ kind: "event-ref",
49322
+ emitPayloadSchema: [
49323
+ {
49324
+ name: "id",
49325
+ type: "string",
49326
+ required: true
49327
+ }
49328
+ ]
49329
+ },
49330
+ moveEvent: {
49331
+ types: [
49332
+ "string"
49333
+ ],
49334
+ description: "Declarative move event, `UI:{moveEvent} { id, x, y }` \u2014 fired once on drop.",
49335
+ kind: "event-ref",
49336
+ emitPayloadSchema: [
49337
+ {
49338
+ name: "id",
49339
+ type: "string",
49340
+ required: true
49341
+ },
49342
+ {
49343
+ name: "x",
49344
+ type: "number",
49345
+ required: true
49346
+ },
49347
+ {
49348
+ name: "y",
49349
+ type: "number",
49350
+ required: true
49351
+ }
49352
+ ]
49353
+ },
48841
49354
  children: {
48842
49355
  types: [
48843
49356
  "node"
@@ -50366,6 +50879,11 @@ var patterns_registry_default = {
50366
50879
  "number"
50367
50880
  ]
50368
50881
  },
50882
+ fontFamily: {
50883
+ types: [
50884
+ "string"
50885
+ ]
50886
+ },
50369
50887
  align: {
50370
50888
  types: [
50371
50889
  "string"
@@ -50435,6 +50953,7 @@ var patterns_registry_default = {
50435
50953
  "string"
50436
50954
  ],
50437
50955
  enumValues: [
50956
+ "solid",
50438
50957
  "dashed",
50439
50958
  "dotted"
50440
50959
  ]
@@ -51682,6 +52201,11 @@ var patterns_registry_default = {
51682
52201
  types: [
51683
52202
  "boolean"
51684
52203
  ]
52204
+ },
52205
+ testId: {
52206
+ types: [
52207
+ "string"
52208
+ ]
51685
52209
  }
51686
52210
  },
51687
52211
  required: [
@@ -51938,6 +52462,330 @@ var patterns_registry_default = {
51938
52462
  description: "secondarySidebarClassName prop"
51939
52463
  }
51940
52464
  }
52465
+ },
52466
+ "command-palette": {
52467
+ type: "command-palette",
52468
+ category: "component",
52469
+ tier: "molecules",
52470
+ family: "core",
52471
+ description: "CommandPalette component",
52472
+ suggestedFor: [
52473
+ "command",
52474
+ "palette",
52475
+ "command palette"
52476
+ ],
52477
+ typicalSize: "medium",
52478
+ propsSchema: {
52479
+ open: {
52480
+ types: [
52481
+ "boolean"
52482
+ ],
52483
+ description: "Whether the palette overlay is open",
52484
+ required: true
52485
+ },
52486
+ onOpenChange: {
52487
+ types: [
52488
+ "function"
52489
+ ],
52490
+ description: "Called to open/close the overlay (Escape, overlay click, or a selection)",
52491
+ required: true,
52492
+ kind: "callback",
52493
+ callbackArgs: [
52494
+ {
52495
+ name: "open",
52496
+ type: "boolean"
52497
+ }
52498
+ ]
52499
+ },
52500
+ commands: {
52501
+ types: [
52502
+ "array"
52503
+ ],
52504
+ description: "Commands listed in the palette, filtered as the user types",
52505
+ required: true,
52506
+ items: {
52507
+ types: [
52508
+ "object"
52509
+ ],
52510
+ properties: {
52511
+ id: {
52512
+ types: [
52513
+ "string"
52514
+ ]
52515
+ },
52516
+ label: {
52517
+ types: [
52518
+ "string"
52519
+ ]
52520
+ },
52521
+ icon: {
52522
+ types: [
52523
+ "icon",
52524
+ "string"
52525
+ ]
52526
+ },
52527
+ shortcut: {
52528
+ types: [
52529
+ "string"
52530
+ ]
52531
+ },
52532
+ keywords: {
52533
+ types: [
52534
+ "array"
52535
+ ],
52536
+ items: {
52537
+ types: [
52538
+ "string"
52539
+ ]
52540
+ }
52541
+ },
52542
+ group: {
52543
+ types: [
52544
+ "string"
52545
+ ]
52546
+ },
52547
+ disabled: {
52548
+ types: [
52549
+ "boolean"
52550
+ ]
52551
+ },
52552
+ event: {
52553
+ types: [
52554
+ "string"
52555
+ ]
52556
+ },
52557
+ action: {
52558
+ types: [
52559
+ "string"
52560
+ ]
52561
+ },
52562
+ actionPayload: {
52563
+ types: [
52564
+ "object"
52565
+ ],
52566
+ freeform: true,
52567
+ eventPayloadBrand: true
52568
+ }
52569
+ },
52570
+ required: [
52571
+ "id",
52572
+ "label"
52573
+ ]
52574
+ }
52575
+ },
52576
+ onSelect: {
52577
+ types: [
52578
+ "function"
52579
+ ],
52580
+ description: "Called with the selected command (click, or Enter on the highlighted row)",
52581
+ kind: "callback",
52582
+ callbackArgs: [
52583
+ {
52584
+ name: "command",
52585
+ type: "object",
52586
+ schema: {
52587
+ types: [
52588
+ "object"
52589
+ ],
52590
+ properties: {
52591
+ id: {
52592
+ types: [
52593
+ "string"
52594
+ ]
52595
+ },
52596
+ label: {
52597
+ types: [
52598
+ "string"
52599
+ ]
52600
+ },
52601
+ icon: {
52602
+ types: [
52603
+ "icon",
52604
+ "string"
52605
+ ]
52606
+ },
52607
+ shortcut: {
52608
+ types: [
52609
+ "string"
52610
+ ]
52611
+ },
52612
+ keywords: {
52613
+ types: [
52614
+ "array"
52615
+ ],
52616
+ items: {
52617
+ types: [
52618
+ "string"
52619
+ ]
52620
+ }
52621
+ },
52622
+ group: {
52623
+ types: [
52624
+ "string"
52625
+ ]
52626
+ },
52627
+ disabled: {
52628
+ types: [
52629
+ "boolean"
52630
+ ]
52631
+ },
52632
+ event: {
52633
+ types: [
52634
+ "string"
52635
+ ]
52636
+ },
52637
+ action: {
52638
+ types: [
52639
+ "string"
52640
+ ]
52641
+ },
52642
+ actionPayload: {
52643
+ types: [
52644
+ "object"
52645
+ ],
52646
+ freeform: true,
52647
+ eventPayloadBrand: true
52648
+ }
52649
+ },
52650
+ required: [
52651
+ "id",
52652
+ "label"
52653
+ ]
52654
+ }
52655
+ }
52656
+ ]
52657
+ },
52658
+ placeholder: {
52659
+ types: [
52660
+ "string"
52661
+ ],
52662
+ description: "Search field placeholder. Consumers own i18n \u2014 plain string prop, no package-internal translation (matches FloatingToolbar's convention).",
52663
+ default: "Type a command..."
52664
+ },
52665
+ emptyLabel: {
52666
+ types: [
52667
+ "string"
52668
+ ],
52669
+ description: "Label shown when no command matches the query",
52670
+ default: "No matching commands"
52671
+ },
52672
+ className: {
52673
+ types: [
52674
+ "string"
52675
+ ],
52676
+ description: "Additional CSS classes on the overlay's dialog"
52677
+ }
52678
+ }
52679
+ },
52680
+ "game-audio-cue": {
52681
+ type: "game-audio-cue",
52682
+ category: "game",
52683
+ tier: "atoms",
52684
+ family: "game",
52685
+ description: "GameAudioCue component",
52686
+ suggestedFor: [
52687
+ "game",
52688
+ "audio",
52689
+ "cue",
52690
+ "game audio cue"
52691
+ ],
52692
+ typicalSize: "small",
52693
+ propsSchema: {
52694
+ cue: {
52695
+ types: [
52696
+ "string"
52697
+ ],
52698
+ description: "Manifest key played as a one-shot SFX each time `cueSeq` advances."
52699
+ },
52700
+ cueSeq: {
52701
+ types: [
52702
+ "number"
52703
+ ],
52704
+ description: "Monotonically increasing counter \u2014 bumping it re-triggers `cue`."
52705
+ },
52706
+ music: {
52707
+ types: [
52708
+ "string"
52709
+ ],
52710
+ description: "Manifest key to crossfade to as looping background music; unset/empty stops music."
52711
+ },
52712
+ muted: {
52713
+ types: [
52714
+ "boolean"
52715
+ ],
52716
+ description: "Muted state, owned externally and mirrored into the hook."
52717
+ },
52718
+ volume: {
52719
+ types: [
52720
+ "number"
52721
+ ],
52722
+ description: "Master volume 0-1, owned externally and mirrored into the hook."
52723
+ },
52724
+ manifest: {
52725
+ types: [
52726
+ "object"
52727
+ ],
52728
+ description: "Sound manifest \u2014 keys mapped to sound definitions (path, volume, loop, ...).",
52729
+ required: true,
52730
+ mapValue: {
52731
+ types: [
52732
+ "object"
52733
+ ],
52734
+ properties: {
52735
+ path: {
52736
+ types: [
52737
+ "string",
52738
+ "array"
52739
+ ],
52740
+ items: {
52741
+ types: [
52742
+ "string"
52743
+ ]
52744
+ }
52745
+ },
52746
+ volume: {
52747
+ types: [
52748
+ "number"
52749
+ ]
52750
+ },
52751
+ loop: {
52752
+ types: [
52753
+ "boolean"
52754
+ ]
52755
+ },
52756
+ poolSize: {
52757
+ types: [
52758
+ "number"
52759
+ ]
52760
+ },
52761
+ autostart: {
52762
+ types: [
52763
+ "boolean"
52764
+ ]
52765
+ },
52766
+ crossfade: {
52767
+ types: [
52768
+ "boolean"
52769
+ ]
52770
+ },
52771
+ crossfadeDurationMs: {
52772
+ types: [
52773
+ "number"
52774
+ ]
52775
+ }
52776
+ },
52777
+ required: [
52778
+ "path"
52779
+ ]
52780
+ }
52781
+ },
52782
+ baseUrl: {
52783
+ types: [
52784
+ "string"
52785
+ ],
52786
+ description: "Base URL prepended to every manifest path."
52787
+ }
52788
+ }
51941
52789
  }
51942
52790
  },
51943
52791
  categories: [
@@ -51963,7 +52811,7 @@ var patterns_registry_default = {
51963
52811
  // src/patterns/integrators-registry.json
51964
52812
  var integrators_registry_default = {
51965
52813
  version: "1.0.0",
51966
- exportedAt: "2026-09-03T08:33:38.850Z",
52814
+ exportedAt: "2026-09-03T18:48:24.308Z",
51967
52815
  integrators: {
51968
52816
  github: {
51969
52817
  name: "github",
@@ -55481,7 +56329,7 @@ var integrators_registry_default = {
55481
56329
  // src/patterns/component-mapping.json
55482
56330
  var component_mapping_default = {
55483
56331
  version: "1.0.0",
55484
- exportedAt: "2026-09-03T03:26:05.097Z",
56332
+ exportedAt: "2026-09-04T03:53:29.561Z",
55485
56333
  mappings: {
55486
56334
  "page-header": {
55487
56335
  component: "PageHeader",
@@ -56904,6 +57752,16 @@ var component_mapping_default = {
56904
57752
  component: "DockLayout",
56905
57753
  importPath: "@/components/core/organisms/DockLayout",
56906
57754
  category: "layout"
57755
+ },
57756
+ "command-palette": {
57757
+ component: "CommandPalette",
57758
+ importPath: "@/components/core/molecules/CommandPalette",
57759
+ category: "component"
57760
+ },
57761
+ "game-audio-cue": {
57762
+ component: "GameAudioCue",
57763
+ importPath: "@/components/game/atoms/GameAudioCue",
57764
+ category: "game"
56907
57765
  }
56908
57766
  }
56909
57767
  };
@@ -56911,7 +57769,7 @@ var component_mapping_default = {
56911
57769
  // src/patterns/event-contracts.json
56912
57770
  var event_contracts_default = {
56913
57771
  version: "1.0.0",
56914
- exportedAt: "2026-09-03T03:26:05.097Z",
57772
+ exportedAt: "2026-09-04T03:53:29.561Z",
56915
57773
  contracts: {
56916
57774
  form: {
56917
57775
  emits: [
@@ -57821,6 +58679,20 @@ var event_contracts_default = {
57821
58679
  payload: {
57822
58680
  type: "object"
57823
58681
  }
58682
+ },
58683
+ {
58684
+ event: "EDITOR_FOCUS",
58685
+ trigger: "action",
58686
+ payload: {
58687
+ type: "object"
58688
+ }
58689
+ },
58690
+ {
58691
+ event: "EDITOR_BLUR",
58692
+ trigger: "action",
58693
+ payload: {
58694
+ type: "object"
58695
+ }
57824
58696
  }
57825
58697
  ],
57826
58698
  requires: [],
@@ -58126,6 +58998,7 @@ var PATTERN_TYPES = [
58126
58998
  "choice-button",
58127
58999
  "code-block",
58128
59000
  "code-runner-panel",
59001
+ "command-palette",
58129
59002
  "community-links",
58130
59003
  "conditional-wrapper",
58131
59004
  "confetti-effect",
@@ -58196,6 +59069,7 @@ var PATTERN_TYPES = [
58196
59069
  "form-section",
58197
59070
  "form-section-header",
58198
59071
  "fx-overlay",
59072
+ "game-audio-cue",
58199
59073
  "game-audio-toggle",
58200
59074
  "game-hud",
58201
59075
  "game-icon",