ekms 9.1.0 → 9.1.1-beta.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.
@@ -136779,6 +136779,24 @@
136779
136779
  0
136780
136780
  ]
136781
136781
  ],
136782
+ [
136783
+ [
136784
+ "is",
136785
+ 0
136786
+ ],
136787
+ [
136788
+ "list",
136789
+ 1
136790
+ ],
136791
+ [
136792
+ "sandwich",
136793
+ 0
136794
+ ],
136795
+ [
136796
+ "unknown",
136797
+ 0
136798
+ ]
136799
+ ],
136782
136800
  [
136783
136801
  [
136784
136802
  "is",
@@ -345678,10 +345696,6 @@
345678
345696
  "pancake",
345679
345697
  0
345680
345698
  ],
345681
- [
345682
- "platter",
345683
- 0
345684
- ],
345685
345699
  [
345686
345700
  "sausage",
345687
345701
  0
@@ -345901,6 +345915,24 @@
345901
345915
  0
345902
345916
  ]
345903
345917
  ],
345918
+ [
345919
+ [
345920
+ "breakfast",
345921
+ 0
345922
+ ],
345923
+ [
345924
+ "is",
345925
+ 0
345926
+ ],
345927
+ [
345928
+ "list",
345929
+ 1
345930
+ ],
345931
+ [
345932
+ "meal",
345933
+ 0
345934
+ ]
345935
+ ],
345904
345936
  [
345905
345937
  [
345906
345938
  "is",
@@ -359914,60 +359946,6 @@
359914
359946
  0
359915
359947
  ]
359916
359948
  ],
359917
- [
359918
- [
359919
- "bacon",
359920
- 0
359921
- ],
359922
- [
359923
- "baconator",
359924
- 0
359925
- ],
359926
- [
359927
- "cod",
359928
- 0
359929
- ],
359930
- [
359931
- "comma",
359932
- 0
359933
- ],
359934
- [
359935
- "deluxe",
359936
- 0
359937
- ],
359938
- [
359939
- "double",
359940
- 0
359941
- ],
359942
- [
359943
- "homestyle",
359944
- 0
359945
- ],
359946
- [
359947
- "is",
359948
- 0
359949
- ],
359950
- [
359951
- "list",
359952
- 0
359953
- ],
359954
- [
359955
- "meal",
359956
- 0
359957
- ],
359958
- [
359959
- "premium",
359960
- 0
359961
- ],
359962
- [
359963
- "spicy",
359964
- 0
359965
- ],
359966
- [
359967
- "triple",
359968
- 0
359969
- ]
359970
- ],
359971
359949
  [
359972
359950
  [
359973
359951
  "bacon",
@@ -360242,20 +360220,6 @@
360242
360220
  1
360243
360221
  ]
360244
360222
  ],
360245
- [
360246
- [
360247
- "is",
360248
- 0
360249
- ],
360250
- [
360251
- "list",
360252
- 1
360253
- ],
360254
- [
360255
- "meal",
360256
- 0
360257
- ]
360258
- ],
360259
360223
  [
360260
360224
  [
360261
360225
  "is",
@@ -395655,20 +395619,6 @@
395655
395619
  0
395656
395620
  ]
395657
395621
  ],
395658
- [
395659
- [
395660
- "is",
395661
- 0
395662
- ],
395663
- [
395664
- "list",
395665
- 1
395666
- ],
395667
- [
395668
- "pop",
395669
- 0
395670
- ]
395671
- ],
395672
395622
  [
395673
395623
  [
395674
395624
  "is",
@@ -485254,24 +485204,6 @@
485254
485204
  0
485255
485205
  ]
485256
485206
  ],
485257
- [
485258
- [
485259
- "leftParenthesis",
485260
- 0
485261
- ],
485262
- [
485263
- "list",
485264
- 1
485265
- ],
485266
- [
485267
- "rightParenthesis",
485268
- 0
485269
- ],
485270
- [
485271
- "smoothie",
485272
- 0
485273
- ]
485274
- ],
485275
485207
  [
485276
485208
  [
485277
485209
  "leftParenthesis",
@@ -581181,24 +581113,6 @@
581181
581113
  0
581182
581114
  ]
581183
581115
  ],
581184
- [
581185
- [
581186
- "is",
581187
- 0
581188
- ],
581189
- [
581190
- "kid",
581191
- 0
581192
- ],
581193
- [
581194
- "list",
581195
- 1
581196
- ],
581197
- [
581198
- "meal",
581199
- 0
581200
- ]
581201
- ],
581202
581116
  [
581203
581117
  [
581204
581118
  "is",
@@ -603771,10 +603685,6 @@
603771
603685
  "is",
603772
603686
  0
603773
603687
  ],
603774
- [
603775
- "junior",
603776
- 0
603777
- ],
603778
603688
  [
603779
603689
  "list",
603780
603690
  0
@@ -603789,18 +603699,10 @@
603789
603699
  ]
603790
603700
  ],
603791
603701
  [
603792
- [
603793
- "chicken",
603794
- 0
603795
- ],
603796
603702
  [
603797
603703
  "club",
603798
603704
  0
603799
603705
  ],
603800
- [
603801
- "crispy",
603802
- 0
603803
- ],
603804
603706
  [
603805
603707
  "is",
603806
603708
  0
@@ -603819,10 +603721,6 @@
603819
603721
  ]
603820
603722
  ],
603821
603723
  [
603822
- [
603823
- "club",
603824
- 0
603825
- ],
603826
603724
  [
603827
603725
  "is",
603828
603726
  0
@@ -603840,34 +603738,6 @@
603840
603738
  0
603841
603739
  ]
603842
603740
  ],
603843
- [
603844
- [
603845
- "is",
603846
- 0
603847
- ],
603848
- [
603849
- "list",
603850
- 0
603851
- ],
603852
- [
603853
- "meal",
603854
- 0
603855
- ],
603856
- [
603857
- "value",
603858
- 0
603859
- ]
603860
- ],
603861
- [
603862
- [
603863
- "is",
603864
- 0
603865
- ],
603866
- [
603867
- "list",
603868
- 1
603869
- ]
603870
- ],
603871
603741
  [
603872
603742
  [
603873
603743
  "is",
@@ -603876,14 +603746,6 @@
603876
603746
  [
603877
603747
  "list",
603878
603748
  1
603879
- ],
603880
- [
603881
- "meal",
603882
- 0
603883
- ],
603884
- [
603885
- "value",
603886
- 0
603887
603749
  ]
603888
603750
  ],
603889
603751
  [
@@ -617595,60 +617457,6 @@
617595
617457
  0
617596
617458
  ]
617597
617459
  ],
617598
- [
617599
- [
617600
- "bacon",
617601
- 0
617602
- ],
617603
- [
617604
- "baconator",
617605
- 0
617606
- ],
617607
- [
617608
- "cod",
617609
- 0
617610
- ],
617611
- [
617612
- "comma",
617613
- 0
617614
- ],
617615
- [
617616
- "deluxe",
617617
- 0
617618
- ],
617619
- [
617620
- "double",
617621
- 0
617622
- ],
617623
- [
617624
- "homestyle",
617625
- 0
617626
- ],
617627
- [
617628
- "is",
617629
- 0
617630
- ],
617631
- [
617632
- "list",
617633
- 0
617634
- ],
617635
- [
617636
- "meal",
617637
- 0
617638
- ],
617639
- [
617640
- "premium",
617641
- 0
617642
- ],
617643
- [
617644
- "spicy",
617645
- 0
617646
- ],
617647
- [
617648
- "triple",
617649
- 0
617650
- ]
617651
- ],
617652
617460
  [
617653
617461
  [
617654
617462
  "bacon",
@@ -619128,10 +618936,6 @@
619128
618936
  "pancake",
619129
618937
  0
619130
618938
  ],
619131
- [
619132
- "platter",
619133
- 0
619134
- ],
619135
618939
  [
619136
618940
  "sausage",
619137
618941
  0
@@ -619351,6 +619155,24 @@
619351
619155
  0
619352
619156
  ]
619353
619157
  ],
619158
+ [
619159
+ [
619160
+ "breakfast",
619161
+ 0
619162
+ ],
619163
+ [
619164
+ "is",
619165
+ 0
619166
+ ],
619167
+ [
619168
+ "list",
619169
+ 1
619170
+ ],
619171
+ [
619172
+ "meal",
619173
+ 0
619174
+ ]
619175
+ ],
619354
619176
  [
619355
619177
  [
619356
619178
  "breakfast",
@@ -619837,40 +619659,6 @@
619837
619659
  0
619838
619660
  ]
619839
619661
  ],
619840
- [
619841
- [
619842
- "chicken",
619843
- 0
619844
- ],
619845
- [
619846
- "club",
619847
- 0
619848
- ],
619849
- [
619850
- "crispy",
619851
- 0
619852
- ],
619853
- [
619854
- "is",
619855
- 0
619856
- ],
619857
- [
619858
- "junior",
619859
- 0
619860
- ],
619861
- [
619862
- "list",
619863
- 0
619864
- ],
619865
- [
619866
- "meal",
619867
- 0
619868
- ],
619869
- [
619870
- "value",
619871
- 0
619872
- ]
619873
- ],
619874
619662
  [
619875
619663
  [
619876
619664
  "chicken",
@@ -621439,24 +621227,6 @@
621439
621227
  0
621440
621228
  ]
621441
621229
  ],
621442
- [
621443
- [
621444
- "is",
621445
- 0
621446
- ],
621447
- [
621448
- "kid",
621449
- 0
621450
- ],
621451
- [
621452
- "list",
621453
- 1
621454
- ],
621455
- [
621456
- "meal",
621457
- 0
621458
- ]
621459
- ],
621460
621230
  [
621461
621231
  [
621462
621232
  "is",
@@ -621639,20 +621409,6 @@
621639
621409
  0
621640
621410
  ]
621641
621411
  ],
621642
- [
621643
- [
621644
- "is",
621645
- 0
621646
- ],
621647
- [
621648
- "list",
621649
- 1
621650
- ],
621651
- [
621652
- "meal",
621653
- 0
621654
- ]
621655
- ],
621656
621412
  [
621657
621413
  [
621658
621414
  "is",
@@ -621681,11 +621437,7 @@
621681
621437
  1
621682
621438
  ],
621683
621439
  [
621684
- "meal",
621685
- 0
621686
- ],
621687
- [
621688
- "value",
621440
+ "pop",
621689
621441
  0
621690
621442
  ]
621691
621443
  ],
@@ -621701,19 +621453,9 @@
621701
621453
  [
621702
621454
  "pop",
621703
621455
  0
621704
- ]
621705
- ],
621706
- [
621707
- [
621708
- "is",
621709
- 0
621710
- ],
621711
- [
621712
- "list",
621713
- 1
621714
621456
  ],
621715
621457
  [
621716
- "pop",
621458
+ "unknown",
621717
621459
  0
621718
621460
  ]
621719
621461
  ],
@@ -621727,11 +621469,7 @@
621727
621469
  1
621728
621470
  ],
621729
621471
  [
621730
- "pop",
621731
- 0
621732
- ],
621733
- [
621734
- "unknown",
621472
+ "sandwich",
621735
621473
  0
621736
621474
  ]
621737
621475
  ],
@@ -621747,6 +621485,10 @@
621747
621485
  [
621748
621486
  "sandwich",
621749
621487
  0
621488
+ ],
621489
+ [
621490
+ "unknown",
621491
+ 0
621750
621492
  ]
621751
621493
  ],
621752
621494
  [
@@ -621887,24 +621629,6 @@
621887
621629
  0
621888
621630
  ]
621889
621631
  ],
621890
- [
621891
- [
621892
- "leftParenthesis",
621893
- 0
621894
- ],
621895
- [
621896
- "list",
621897
- 1
621898
- ],
621899
- [
621900
- "rightParenthesis",
621901
- 0
621902
- ],
621903
- [
621904
- "smoothie",
621905
- 0
621906
- ]
621907
- ],
621908
621632
  [
621909
621633
  [
621910
621634
  "leftParenthesis",
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,61 @@
1
+ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
2
+ const { defaultContextCheck } = require('./helpers')
3
+ const ui = require('./ui')
4
+ const menus_tests = require('./menus.test.json')
5
+ const menus_instance = require('./menus.instance.json')
6
+
7
+ class API {
8
+ initialize({ objects }) {
9
+ this._objects = objects
10
+ }
11
+
12
+ move(direction, steps = 1, units = undefined) {
13
+ this._objects.move = { direction, steps, units }
14
+ }
15
+
16
+ select(item) {
17
+ this._objects.select = { item }
18
+ }
19
+
20
+ unselect(item) {
21
+ this._objects.unselect = { item }
22
+ }
23
+
24
+ cancel(direction) {
25
+ this._objects.cancel = true
26
+ }
27
+
28
+ stop(action) {
29
+ this._objects.stop = action
30
+ }
31
+ }
32
+
33
+ const config = {
34
+ name: 'menus',
35
+ };
36
+
37
+ const template = {
38
+ fragments: [
39
+ ],
40
+ }
41
+
42
+ knowledgeModule({
43
+ config,
44
+ includes: [ui],
45
+ api: () => new API(),
46
+
47
+ module,
48
+ description: 'Control menues with speech',
49
+ test: {
50
+ name: './menus.test.json',
51
+ contents: menus_tests,
52
+ checks: {
53
+ objects: ['move', 'select', 'unselect', 'cancel', 'stop'],
54
+ context: defaultContextCheck(['operator', 'direction', 'moveable']),
55
+ },
56
+ },
57
+ template: {
58
+ template,
59
+ instance: menus_instance
60
+ }
61
+ })
@@ -0,0 +1,2 @@
1
+ [
2
+ ]
@@ -10,6 +10,11 @@ const config = {
10
10
  "([negatable])",
11
11
  "([not] (negatable/*))",
12
12
  ],
13
+ associations: {
14
+ positive: [
15
+ { context: [["not",0],["unknown",0]], choose: 1 },
16
+ ]
17
+ },
13
18
  bridges: [
14
19
  {
15
20
  id: 'not',