@almadar/patterns 2.52.0 → 2.53.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-06-19T09:54:53.846Z",
3
+ "exportedAt": "2026-06-19T12:30:13.337Z",
4
4
  "mappings": {
5
5
  "page-header": {
6
6
  "component": "PageHeader",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-06-19T09:54:53.846Z",
3
+ "exportedAt": "2026-06-19T12:30:13.337Z",
4
4
  "contracts": {
5
5
  "form": {
6
6
  "emits": [
package/dist/index.d.ts CHANGED
@@ -24363,6 +24363,28 @@ export declare const registry: {
24363
24363
  }[];
24364
24364
  default: string;
24365
24365
  };
24366
+ placeEvent: {
24367
+ types: string[];
24368
+ description: string;
24369
+ kind: string;
24370
+ emitPayloadSchema: {
24371
+ name: string;
24372
+ type: string;
24373
+ required: boolean;
24374
+ }[];
24375
+ };
24376
+ checkEvent: {
24377
+ types: string[];
24378
+ description: string;
24379
+ kind: string;
24380
+ emitPayloadSchema: never[];
24381
+ };
24382
+ playAgainEvent: {
24383
+ types: string[];
24384
+ description: string;
24385
+ kind: string;
24386
+ emitPayloadSchema: never[];
24387
+ };
24366
24388
  };
24367
24389
  };
24368
24390
  "classifier-board": {
@@ -24454,6 +24476,28 @@ export declare const registry: {
24454
24476
  }[];
24455
24477
  default: string;
24456
24478
  };
24479
+ assignEvent: {
24480
+ types: string[];
24481
+ description: string;
24482
+ kind: string;
24483
+ emitPayloadSchema: {
24484
+ name: string;
24485
+ type: string;
24486
+ required: boolean;
24487
+ }[];
24488
+ };
24489
+ checkEvent: {
24490
+ types: string[];
24491
+ description: string;
24492
+ kind: string;
24493
+ emitPayloadSchema: never[];
24494
+ };
24495
+ playAgainEvent: {
24496
+ types: string[];
24497
+ description: string;
24498
+ kind: string;
24499
+ emitPayloadSchema: never[];
24500
+ };
24457
24501
  };
24458
24502
  };
24459
24503
  "debugger-board": {
@@ -24545,6 +24589,28 @@ export declare const registry: {
24545
24589
  }[];
24546
24590
  default: string;
24547
24591
  };
24592
+ toggleFlagEvent: {
24593
+ types: string[];
24594
+ description: string;
24595
+ kind: string;
24596
+ emitPayloadSchema: {
24597
+ name: string;
24598
+ type: string;
24599
+ required: boolean;
24600
+ }[];
24601
+ };
24602
+ checkEvent: {
24603
+ types: string[];
24604
+ description: string;
24605
+ kind: string;
24606
+ emitPayloadSchema: never[];
24607
+ };
24608
+ playAgainEvent: {
24609
+ types: string[];
24610
+ description: string;
24611
+ kind: string;
24612
+ emitPayloadSchema: never[];
24613
+ };
24548
24614
  };
24549
24615
  };
24550
24616
  "event-handler-board": {
@@ -24927,6 +24993,28 @@ export declare const registry: {
24927
24993
  }[];
24928
24994
  default: string;
24929
24995
  };
24996
+ playRoundEvent: {
24997
+ types: string[];
24998
+ description: string;
24999
+ kind: string;
25000
+ emitPayloadSchema: {
25001
+ name: string;
25002
+ type: string;
25003
+ required: boolean;
25004
+ }[];
25005
+ };
25006
+ finishEvent: {
25007
+ types: string[];
25008
+ description: string;
25009
+ kind: string;
25010
+ emitPayloadSchema: never[];
25011
+ };
25012
+ playAgainEvent: {
25013
+ types: string[];
25014
+ description: string;
25015
+ kind: string;
25016
+ emitPayloadSchema: never[];
25017
+ };
24930
25018
  };
24931
25019
  };
24932
25020
  "action-palette": {
@@ -25654,6 +25742,38 @@ export declare const registry: {
25654
25742
  }[];
25655
25743
  default: string;
25656
25744
  };
25745
+ setAEvent: {
25746
+ types: string[];
25747
+ description: string;
25748
+ kind: string;
25749
+ emitPayloadSchema: {
25750
+ name: string;
25751
+ type: string;
25752
+ required: boolean;
25753
+ }[];
25754
+ };
25755
+ setBEvent: {
25756
+ types: string[];
25757
+ description: string;
25758
+ kind: string;
25759
+ emitPayloadSchema: {
25760
+ name: string;
25761
+ type: string;
25762
+ required: boolean;
25763
+ }[];
25764
+ };
25765
+ checkEvent: {
25766
+ types: string[];
25767
+ description: string;
25768
+ kind: string;
25769
+ emitPayloadSchema: never[];
25770
+ };
25771
+ playAgainEvent: {
25772
+ types: string[];
25773
+ description: string;
25774
+ kind: string;
25775
+ emitPayloadSchema: never[];
25776
+ };
25657
25777
  };
25658
25778
  };
25659
25779
  "state-architect-board": {
@@ -52797,6 +52917,28 @@ export declare const PATTERN_REGISTRY: {
52797
52917
  }[];
52798
52918
  default: string;
52799
52919
  };
52920
+ placeEvent: {
52921
+ types: string[];
52922
+ description: string;
52923
+ kind: string;
52924
+ emitPayloadSchema: {
52925
+ name: string;
52926
+ type: string;
52927
+ required: boolean;
52928
+ }[];
52929
+ };
52930
+ checkEvent: {
52931
+ types: string[];
52932
+ description: string;
52933
+ kind: string;
52934
+ emitPayloadSchema: never[];
52935
+ };
52936
+ playAgainEvent: {
52937
+ types: string[];
52938
+ description: string;
52939
+ kind: string;
52940
+ emitPayloadSchema: never[];
52941
+ };
52800
52942
  };
52801
52943
  };
52802
52944
  "classifier-board": {
@@ -52888,6 +53030,28 @@ export declare const PATTERN_REGISTRY: {
52888
53030
  }[];
52889
53031
  default: string;
52890
53032
  };
53033
+ assignEvent: {
53034
+ types: string[];
53035
+ description: string;
53036
+ kind: string;
53037
+ emitPayloadSchema: {
53038
+ name: string;
53039
+ type: string;
53040
+ required: boolean;
53041
+ }[];
53042
+ };
53043
+ checkEvent: {
53044
+ types: string[];
53045
+ description: string;
53046
+ kind: string;
53047
+ emitPayloadSchema: never[];
53048
+ };
53049
+ playAgainEvent: {
53050
+ types: string[];
53051
+ description: string;
53052
+ kind: string;
53053
+ emitPayloadSchema: never[];
53054
+ };
52891
53055
  };
52892
53056
  };
52893
53057
  "debugger-board": {
@@ -52979,6 +53143,28 @@ export declare const PATTERN_REGISTRY: {
52979
53143
  }[];
52980
53144
  default: string;
52981
53145
  };
53146
+ toggleFlagEvent: {
53147
+ types: string[];
53148
+ description: string;
53149
+ kind: string;
53150
+ emitPayloadSchema: {
53151
+ name: string;
53152
+ type: string;
53153
+ required: boolean;
53154
+ }[];
53155
+ };
53156
+ checkEvent: {
53157
+ types: string[];
53158
+ description: string;
53159
+ kind: string;
53160
+ emitPayloadSchema: never[];
53161
+ };
53162
+ playAgainEvent: {
53163
+ types: string[];
53164
+ description: string;
53165
+ kind: string;
53166
+ emitPayloadSchema: never[];
53167
+ };
52982
53168
  };
52983
53169
  };
52984
53170
  "event-handler-board": {
@@ -53361,6 +53547,28 @@ export declare const PATTERN_REGISTRY: {
53361
53547
  }[];
53362
53548
  default: string;
53363
53549
  };
53550
+ playRoundEvent: {
53551
+ types: string[];
53552
+ description: string;
53553
+ kind: string;
53554
+ emitPayloadSchema: {
53555
+ name: string;
53556
+ type: string;
53557
+ required: boolean;
53558
+ }[];
53559
+ };
53560
+ finishEvent: {
53561
+ types: string[];
53562
+ description: string;
53563
+ kind: string;
53564
+ emitPayloadSchema: never[];
53565
+ };
53566
+ playAgainEvent: {
53567
+ types: string[];
53568
+ description: string;
53569
+ kind: string;
53570
+ emitPayloadSchema: never[];
53571
+ };
53364
53572
  };
53365
53573
  };
53366
53574
  "action-palette": {
@@ -54088,6 +54296,38 @@ export declare const PATTERN_REGISTRY: {
54088
54296
  }[];
54089
54297
  default: string;
54090
54298
  };
54299
+ setAEvent: {
54300
+ types: string[];
54301
+ description: string;
54302
+ kind: string;
54303
+ emitPayloadSchema: {
54304
+ name: string;
54305
+ type: string;
54306
+ required: boolean;
54307
+ }[];
54308
+ };
54309
+ setBEvent: {
54310
+ types: string[];
54311
+ description: string;
54312
+ kind: string;
54313
+ emitPayloadSchema: {
54314
+ name: string;
54315
+ type: string;
54316
+ required: boolean;
54317
+ }[];
54318
+ };
54319
+ checkEvent: {
54320
+ types: string[];
54321
+ description: string;
54322
+ kind: string;
54323
+ emitPayloadSchema: never[];
54324
+ };
54325
+ playAgainEvent: {
54326
+ types: string[];
54327
+ description: string;
54328
+ kind: string;
54329
+ emitPayloadSchema: never[];
54330
+ };
54091
54331
  };
54092
54332
  };
54093
54333
  "state-architect-board": {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-06-19T09:54:53.846Z",
4
+ exportedAt: "2026-06-19T12:30:13.337Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -39628,7 +39628,7 @@ var patterns_registry_default = {
39628
39628
  "object",
39629
39629
  "array"
39630
39630
  ],
39631
- description: "Puzzle board-state entity (single row or array). The board reads `components` / `slots` arrays plus title/description/hint off the row.",
39631
+ description: "Puzzle board-state entity (single row or array). The board reads `components` / `slots` arrays plus `attempts` / `result` off the row \u2014 the state machine is the single source of truth for placements.",
39632
39632
  kind: "entity",
39633
39633
  cardinality: "collection"
39634
39634
  },
@@ -39651,6 +39651,41 @@ var patterns_registry_default = {
39651
39651
  }
39652
39652
  ],
39653
39653
  default: "PUZZLE_COMPLETE"
39654
+ },
39655
+ placeEvent: {
39656
+ types: [
39657
+ "string"
39658
+ ],
39659
+ description: "Emits UI:{placeEvent} with { slotId, componentId } on component placement.",
39660
+ kind: "event-ref",
39661
+ emitPayloadSchema: [
39662
+ {
39663
+ name: "slotId",
39664
+ type: "string",
39665
+ required: true
39666
+ },
39667
+ {
39668
+ name: "componentId",
39669
+ type: "string",
39670
+ required: true
39671
+ }
39672
+ ]
39673
+ },
39674
+ checkEvent: {
39675
+ types: [
39676
+ "string"
39677
+ ],
39678
+ description: "Emits UI:{checkEvent} with {} when the player checks the build.",
39679
+ kind: "event-ref",
39680
+ emitPayloadSchema: []
39681
+ },
39682
+ playAgainEvent: {
39683
+ types: [
39684
+ "string"
39685
+ ],
39686
+ description: "Emits UI:{playAgainEvent} with {} on play again / reset.",
39687
+ kind: "event-ref",
39688
+ emitPayloadSchema: []
39654
39689
  }
39655
39690
  }
39656
39691
  },
@@ -39773,7 +39808,7 @@ var patterns_registry_default = {
39773
39808
  "object",
39774
39809
  "array"
39775
39810
  ],
39776
- description: "Puzzle board-state entity (single row or array). The board reads `items` / `categories` arrays plus title/description/hint off the row.",
39811
+ description: "Puzzle board-state entity (single row or array). The board reads `items` / `categories` arrays plus title/description/hint off the row. Items may carry `assignedCategory`; the row may carry `result` and `attempts` \u2014 all machine-owned.",
39777
39812
  kind: "entity",
39778
39813
  cardinality: "collection"
39779
39814
  },
@@ -39796,6 +39831,41 @@ var patterns_registry_default = {
39796
39831
  }
39797
39832
  ],
39798
39833
  default: "PUZZLE_COMPLETE"
39834
+ },
39835
+ assignEvent: {
39836
+ types: [
39837
+ "string"
39838
+ ],
39839
+ description: "Emits UI:{assignEvent} with { itemId, categoryId } when an item is sorted.",
39840
+ kind: "event-ref",
39841
+ emitPayloadSchema: [
39842
+ {
39843
+ name: "itemId",
39844
+ type: "string",
39845
+ required: true
39846
+ },
39847
+ {
39848
+ name: "categoryId",
39849
+ type: "string",
39850
+ required: true
39851
+ }
39852
+ ]
39853
+ },
39854
+ checkEvent: {
39855
+ types: [
39856
+ "string"
39857
+ ],
39858
+ description: "Emits UI:{checkEvent} with {} when the player submits/checks.",
39859
+ kind: "event-ref",
39860
+ emitPayloadSchema: []
39861
+ },
39862
+ playAgainEvent: {
39863
+ types: [
39864
+ "string"
39865
+ ],
39866
+ description: "Emits UI:{playAgainEvent} with {} on reset / play again.",
39867
+ kind: "event-ref",
39868
+ emitPayloadSchema: []
39799
39869
  }
39800
39870
  }
39801
39871
  },
@@ -39918,7 +39988,7 @@ var patterns_registry_default = {
39918
39988
  "object",
39919
39989
  "array"
39920
39990
  ],
39921
- description: "Puzzle board-state entity (single row or array). The board reads `lines` array plus title/description/bugCount/hint off the row.",
39991
+ description: "Puzzle board-state entity (single row or array). The board reads `lines` array (each with `isFlagged`), `result`, `attempts`, plus title/description/bugCount/hint off the row.",
39922
39992
  kind: "entity",
39923
39993
  cardinality: "collection"
39924
39994
  },
@@ -39941,6 +40011,36 @@ var patterns_registry_default = {
39941
40011
  }
39942
40012
  ],
39943
40013
  default: "PUZZLE_COMPLETE"
40014
+ },
40015
+ toggleFlagEvent: {
40016
+ types: [
40017
+ "string"
40018
+ ],
40019
+ description: "Emits UI:{toggleFlagEvent} with { lineId } when a line's bug-flag is toggled.",
40020
+ kind: "event-ref",
40021
+ emitPayloadSchema: [
40022
+ {
40023
+ name: "lineId",
40024
+ type: "string",
40025
+ required: true
40026
+ }
40027
+ ]
40028
+ },
40029
+ checkEvent: {
40030
+ types: [
40031
+ "string"
40032
+ ],
40033
+ description: "Emits UI:{checkEvent} with {} when the player checks/submits.",
40034
+ kind: "event-ref",
40035
+ emitPayloadSchema: []
40036
+ },
40037
+ playAgainEvent: {
40038
+ types: [
40039
+ "string"
40040
+ ],
40041
+ description: "Emits UI:{playAgainEvent} with {} on play again / reset.",
40042
+ kind: "event-ref",
40043
+ emitPayloadSchema: []
39944
40044
  }
39945
40045
  }
39946
40046
  },
@@ -40522,7 +40622,7 @@ var patterns_registry_default = {
40522
40622
  "object",
40523
40623
  "array"
40524
40624
  ],
40525
- description: "Puzzle board-state entity (single row or array). The board reads `actions` / `payoffMatrix` arrays plus title/description/rounds/hint off the row.",
40625
+ description: "Puzzle board-state entity (single row or array). The board reads `score` / `round` / `result` / `targetScore` / `maxRounds` plus the `actions` / `payoffMatrix` arrays and title/description/hint off the row. Score accumulation + win/lose are owned by the gameplay machine.",
40526
40626
  kind: "entity",
40527
40627
  cardinality: "collection"
40528
40628
  },
@@ -40545,6 +40645,41 @@ var patterns_registry_default = {
40545
40645
  }
40546
40646
  ],
40547
40647
  default: "PUZZLE_COMPLETE"
40648
+ },
40649
+ playRoundEvent: {
40650
+ types: [
40651
+ "string"
40652
+ ],
40653
+ description: "Emits UI:{playRoundEvent} with the picked action + the UI-resolved payoff.",
40654
+ kind: "event-ref",
40655
+ emitPayloadSchema: [
40656
+ {
40657
+ name: "playerAction",
40658
+ type: "string",
40659
+ required: true
40660
+ },
40661
+ {
40662
+ name: "payoff",
40663
+ type: "number",
40664
+ required: true
40665
+ }
40666
+ ]
40667
+ },
40668
+ finishEvent: {
40669
+ types: [
40670
+ "string"
40671
+ ],
40672
+ description: "Emits UI:{finishEvent} with {} when all rounds are spent.",
40673
+ kind: "event-ref",
40674
+ emitPayloadSchema: []
40675
+ },
40676
+ playAgainEvent: {
40677
+ types: [
40678
+ "string"
40679
+ ],
40680
+ description: "Emits UI:{playAgainEvent} with {} on play again / reset.",
40681
+ kind: "event-ref",
40682
+ emitPayloadSchema: []
40548
40683
  }
40549
40684
  }
40550
40685
  },
@@ -41718,7 +41853,7 @@ var patterns_registry_default = {
41718
41853
  "object",
41719
41854
  "array"
41720
41855
  ],
41721
- description: "Puzzle board-state entity (single row or array). The board reads the `parameters` array plus title/description/target/hint off the row.",
41856
+ description: "Puzzle board-state entity (single row or array). The board reads the `parameters` slider descriptors plus the machine-owned `paramA`/`paramB`/ `output`/`target`/`tolerance`/`attempts`/`result` fields off the row.",
41722
41857
  kind: "entity",
41723
41858
  cardinality: "collection"
41724
41859
  },
@@ -41741,6 +41876,50 @@ var patterns_registry_default = {
41741
41876
  }
41742
41877
  ],
41743
41878
  default: "PUZZLE_COMPLETE"
41879
+ },
41880
+ setAEvent: {
41881
+ types: [
41882
+ "string"
41883
+ ],
41884
+ description: "Emits UI:{setAEvent} with { value } when parameter A's slider changes.",
41885
+ kind: "event-ref",
41886
+ emitPayloadSchema: [
41887
+ {
41888
+ name: "value",
41889
+ type: "number",
41890
+ required: true
41891
+ }
41892
+ ]
41893
+ },
41894
+ setBEvent: {
41895
+ types: [
41896
+ "string"
41897
+ ],
41898
+ description: "Emits UI:{setBEvent} with { value } when parameter B's slider changes.",
41899
+ kind: "event-ref",
41900
+ emitPayloadSchema: [
41901
+ {
41902
+ name: "value",
41903
+ type: "number",
41904
+ required: true
41905
+ }
41906
+ ]
41907
+ },
41908
+ checkEvent: {
41909
+ types: [
41910
+ "string"
41911
+ ],
41912
+ description: "Emits UI:{checkEvent} with {} on simulate / check.",
41913
+ kind: "event-ref",
41914
+ emitPayloadSchema: []
41915
+ },
41916
+ playAgainEvent: {
41917
+ types: [
41918
+ "string"
41919
+ ],
41920
+ description: "Emits UI:{playAgainEvent} with {} on reset / play again.",
41921
+ kind: "event-ref",
41922
+ emitPayloadSchema: []
41744
41923
  }
41745
41924
  }
41746
41925
  },
@@ -46840,7 +47019,7 @@ var integrators_registry_default = {
46840
47019
  // src/component-mapping.json
46841
47020
  var component_mapping_default = {
46842
47021
  version: "1.0.0",
46843
- exportedAt: "2026-06-19T09:54:53.846Z",
47022
+ exportedAt: "2026-06-19T12:30:13.337Z",
46844
47023
  mappings: {
46845
47024
  "page-header": {
46846
47025
  component: "PageHeader",
@@ -48395,7 +48574,7 @@ var component_mapping_default = {
48395
48574
  // src/event-contracts.json
48396
48575
  var event_contracts_default = {
48397
48576
  version: "1.0.0",
48398
- exportedAt: "2026-06-19T09:54:53.846Z",
48577
+ exportedAt: "2026-06-19T12:30:13.337Z",
48399
48578
  contracts: {
48400
48579
  form: {
48401
48580
  emits: [