tpmkms_4wp 9.3.0-beta.53 → 9.3.0-beta.55

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 (77) hide show
  1. package/common/animals.js +3 -1
  2. package/common/articles.js +3 -1
  3. package/common/asking.js +3 -1
  4. package/common/avatar.js +3 -1
  5. package/common/characters.js +3 -1
  6. package/common/colors.instance.json +28 -0
  7. package/common/colors.js +3 -1
  8. package/common/comparable.js +3 -1
  9. package/common/concept.js +3 -1
  10. package/common/conjunction.js +3 -1
  11. package/common/countable.js +3 -1
  12. package/common/crew.instance.json +36 -0
  13. package/common/crew.js +3 -1
  14. package/common/currency.js +3 -1
  15. package/common/dateTimeSelectors.instance.json +30 -6
  16. package/common/dateTimeSelectors.js +9 -1
  17. package/common/dates.instance.json +324 -14
  18. package/common/dates.js +18 -6
  19. package/common/dialogues.js +3 -1
  20. package/common/dimension.js +3 -1
  21. package/common/edible.instance.json +56 -0
  22. package/common/edible.js +3 -1
  23. package/common/emotions.js +3 -1
  24. package/common/errors.js +3 -1
  25. package/common/evaluate.js +3 -1
  26. package/common/events.js +3 -1
  27. package/common/fastfood.instance.json +111 -571
  28. package/common/fastfood.js +3 -1
  29. package/common/formulas.js +3 -1
  30. package/common/gdefaults.js +3 -1
  31. package/common/help.js +3 -1
  32. package/common/helpers.js +15 -7
  33. package/common/hierarchy.js +3 -1
  34. package/common/javascript.js +3 -1
  35. package/common/kirk.js +3 -1
  36. package/common/length.js +3 -1
  37. package/common/listener.js +3 -1
  38. package/common/math.js +3 -1
  39. package/common/menus.js +3 -1
  40. package/common/meta.js +3 -1
  41. package/common/nameable.js +3 -1
  42. package/common/negation.js +3 -1
  43. package/common/numbers.js +7 -1
  44. package/common/ordering.js +3 -1
  45. package/common/ordinals.js +3 -1
  46. package/common/people.js +3 -1
  47. package/common/percentages.js +3 -1
  48. package/common/pipboy.instance.json +84 -0
  49. package/common/pipboy.js +1 -1
  50. package/common/pokemon.js +3 -1
  51. package/common/pos.js +3 -1
  52. package/common/pressure.js +3 -1
  53. package/common/properties.js +9 -1
  54. package/common/punctuation.js +3 -1
  55. package/common/reminders.js +1 -1
  56. package/common/reports.instance.json +2 -2
  57. package/common/reports.js +3 -1
  58. package/common/scorekeeper.js +3 -1
  59. package/common/sdefaults.js +3 -1
  60. package/common/self.js +3 -1
  61. package/common/sizeable.js +3 -1
  62. package/common/spock.js +3 -1
  63. package/common/stgame.js +3 -1
  64. package/common/stm.js +1 -1
  65. package/common/tell.js +3 -1
  66. package/common/temperature.instance.json +28 -56
  67. package/common/temperature.js +3 -1
  68. package/common/tester.js +0 -1
  69. package/common/testing.js +0 -1
  70. package/common/time.js +3 -1
  71. package/common/tokenize.js +3 -1
  72. package/common/ui.js +1 -1
  73. package/common/weight.js +3 -1
  74. package/common/wp.instance.json +41 -73
  75. package/common/wp.js +1 -1
  76. package/common/yesno.js +3 -1
  77. package/package.json +2 -2
@@ -62,7 +62,23 @@
62
62
  "isA": [
63
63
  "preposition"
64
64
  ],
65
- "bridge": "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }"
65
+ "bridge": "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }",
66
+ "check": [
67
+ "marker",
68
+ "text",
69
+ "verbatim",
70
+ "value",
71
+ "evalue",
72
+ "isResponse",
73
+ {
74
+ "properties": "modifiers"
75
+ },
76
+ {
77
+ "properties": "postModifiers"
78
+ },
79
+ "onDate",
80
+ "date"
81
+ ]
66
82
  },
67
83
  {
68
84
  "id": "afterDateValue_dates",
@@ -76,7 +92,23 @@
76
92
  "isA": [
77
93
  "preposition"
78
94
  ],
79
- "bridge": "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }"
95
+ "bridge": "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }",
96
+ "check": [
97
+ "marker",
98
+ "text",
99
+ "verbatim",
100
+ "value",
101
+ "evalue",
102
+ "isResponse",
103
+ {
104
+ "properties": "modifiers"
105
+ },
106
+ {
107
+ "properties": "postModifiers"
108
+ },
109
+ "afterDate",
110
+ "date"
111
+ ]
80
112
  },
81
113
  {
82
114
  "id": "era_dates",
@@ -103,7 +135,22 @@
103
135
  "date_dates"
104
136
  ],
105
137
  "convolution": true,
106
- "bridge": "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }"
138
+ "bridge": "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }",
139
+ "check": [
140
+ "marker",
141
+ "text",
142
+ "verbatim",
143
+ "value",
144
+ "evalue",
145
+ "isResponse",
146
+ {
147
+ "properties": "modifiers"
148
+ },
149
+ {
150
+ "properties": "postModifiers"
151
+ },
152
+ "era"
153
+ ]
107
154
  },
108
155
  {
109
156
  "id": "dateSeparator_dates",
@@ -121,7 +168,24 @@
121
168
  "preposition"
122
169
  ],
123
170
  "convolution": true,
124
- "bridge": "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }"
171
+ "bridge": "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }",
172
+ "check": [
173
+ "marker",
174
+ "text",
175
+ "verbatim",
176
+ "value",
177
+ "evalue",
178
+ "isResponse",
179
+ {
180
+ "properties": "modifiers"
181
+ },
182
+ {
183
+ "properties": "postModifiers"
184
+ },
185
+ "day",
186
+ "month",
187
+ "year"
188
+ ]
125
189
  },
126
190
  {
127
191
  "id": "dayNumber_dates",
@@ -159,7 +223,23 @@
159
223
  "isA": [
160
224
  "date_dates"
161
225
  ],
162
- "bridge": "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }"
226
+ "bridge": "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }",
227
+ "check": [
228
+ "marker",
229
+ "text",
230
+ "verbatim",
231
+ "value",
232
+ "evalue",
233
+ "isResponse",
234
+ {
235
+ "properties": "modifiers"
236
+ },
237
+ {
238
+ "properties": "postModifiers"
239
+ },
240
+ "day",
241
+ "month"
242
+ ]
163
243
  },
164
244
  {
165
245
  "id": "monthYear_dates",
@@ -170,7 +250,23 @@
170
250
  "isA": [
171
251
  "date_dates"
172
252
  ],
173
- "bridge": "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }"
253
+ "bridge": "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }",
254
+ "check": [
255
+ "marker",
256
+ "text",
257
+ "verbatim",
258
+ "value",
259
+ "evalue",
260
+ "isResponse",
261
+ {
262
+ "properties": "modifiers"
263
+ },
264
+ {
265
+ "properties": "postModifiers"
266
+ },
267
+ "month",
268
+ "year"
269
+ ]
174
270
  },
175
271
  {
176
272
  "id": "monthDayYear_dates",
@@ -189,7 +285,24 @@
189
285
  "dayNumber_dates"
190
286
  ]
191
287
  ],
192
- "bridge": "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }"
288
+ "bridge": "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }",
289
+ "check": [
290
+ "marker",
291
+ "text",
292
+ "verbatim",
293
+ "value",
294
+ "evalue",
295
+ "isResponse",
296
+ {
297
+ "properties": "modifiers"
298
+ },
299
+ {
300
+ "properties": "postModifiers"
301
+ },
302
+ "month",
303
+ "day",
304
+ "year"
305
+ ]
193
306
  }
194
307
  ],
195
308
  "words": {
@@ -3287,6 +3400,20 @@
3287
3400
  0
3288
3401
  ]
3289
3402
  ],
3403
+ [
3404
+ [
3405
+ "is",
3406
+ 0
3407
+ ],
3408
+ [
3409
+ "list",
3410
+ 1
3411
+ ],
3412
+ [
3413
+ "unknown",
3414
+ 0
3415
+ ]
3416
+ ],
3290
3417
  [
3291
3418
  [
3292
3419
  "is",
@@ -11637,6 +11764,20 @@
11637
11764
  0
11638
11765
  ]
11639
11766
  ],
11767
+ [
11768
+ [
11769
+ "is",
11770
+ 0
11771
+ ],
11772
+ [
11773
+ "list",
11774
+ 1
11775
+ ],
11776
+ [
11777
+ "unknown",
11778
+ 0
11779
+ ]
11780
+ ],
11640
11781
  [
11641
11782
  [
11642
11783
  "is",
@@ -15726,6 +15867,20 @@
15726
15867
  0
15727
15868
  ]
15728
15869
  ],
15870
+ [
15871
+ [
15872
+ "is",
15873
+ 0
15874
+ ],
15875
+ [
15876
+ "list",
15877
+ 1
15878
+ ],
15879
+ [
15880
+ "unknown",
15881
+ 0
15882
+ ]
15883
+ ],
15729
15884
  [
15730
15885
  [
15731
15886
  "is",
@@ -16683,7 +16838,23 @@
16683
16838
  "isA": [
16684
16839
  "preposition"
16685
16840
  ],
16686
- "bridge": "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }"
16841
+ "bridge": "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }",
16842
+ "check": [
16843
+ "marker",
16844
+ "text",
16845
+ "verbatim",
16846
+ "value",
16847
+ "evalue",
16848
+ "isResponse",
16849
+ {
16850
+ "properties": "modifiers"
16851
+ },
16852
+ {
16853
+ "properties": "postModifiers"
16854
+ },
16855
+ "onDate",
16856
+ "date"
16857
+ ]
16687
16858
  },
16688
16859
  {
16689
16860
  "id": "afterDateValue_dates",
@@ -16697,7 +16868,23 @@
16697
16868
  "isA": [
16698
16869
  "preposition"
16699
16870
  ],
16700
- "bridge": "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }"
16871
+ "bridge": "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }",
16872
+ "check": [
16873
+ "marker",
16874
+ "text",
16875
+ "verbatim",
16876
+ "value",
16877
+ "evalue",
16878
+ "isResponse",
16879
+ {
16880
+ "properties": "modifiers"
16881
+ },
16882
+ {
16883
+ "properties": "postModifiers"
16884
+ },
16885
+ "afterDate",
16886
+ "date"
16887
+ ]
16701
16888
  },
16702
16889
  {
16703
16890
  "id": "era_dates",
@@ -16724,7 +16911,22 @@
16724
16911
  "date_dates"
16725
16912
  ],
16726
16913
  "convolution": true,
16727
- "bridge": "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }"
16914
+ "bridge": "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }",
16915
+ "check": [
16916
+ "marker",
16917
+ "text",
16918
+ "verbatim",
16919
+ "value",
16920
+ "evalue",
16921
+ "isResponse",
16922
+ {
16923
+ "properties": "modifiers"
16924
+ },
16925
+ {
16926
+ "properties": "postModifiers"
16927
+ },
16928
+ "era"
16929
+ ]
16728
16930
  },
16729
16931
  {
16730
16932
  "id": "dateSeparator_dates",
@@ -16742,7 +16944,24 @@
16742
16944
  "preposition"
16743
16945
  ],
16744
16946
  "convolution": true,
16745
- "bridge": "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }"
16947
+ "bridge": "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }",
16948
+ "check": [
16949
+ "marker",
16950
+ "text",
16951
+ "verbatim",
16952
+ "value",
16953
+ "evalue",
16954
+ "isResponse",
16955
+ {
16956
+ "properties": "modifiers"
16957
+ },
16958
+ {
16959
+ "properties": "postModifiers"
16960
+ },
16961
+ "day",
16962
+ "month",
16963
+ "year"
16964
+ ]
16746
16965
  },
16747
16966
  {
16748
16967
  "id": "dayNumber_dates",
@@ -16780,7 +16999,23 @@
16780
16999
  "isA": [
16781
17000
  "date_dates"
16782
17001
  ],
16783
- "bridge": "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }"
17002
+ "bridge": "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }",
17003
+ "check": [
17004
+ "marker",
17005
+ "text",
17006
+ "verbatim",
17007
+ "value",
17008
+ "evalue",
17009
+ "isResponse",
17010
+ {
17011
+ "properties": "modifiers"
17012
+ },
17013
+ {
17014
+ "properties": "postModifiers"
17015
+ },
17016
+ "day",
17017
+ "month"
17018
+ ]
16784
17019
  },
16785
17020
  {
16786
17021
  "id": "monthYear_dates",
@@ -16791,7 +17026,23 @@
16791
17026
  "isA": [
16792
17027
  "date_dates"
16793
17028
  ],
16794
- "bridge": "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }"
17029
+ "bridge": "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }",
17030
+ "check": [
17031
+ "marker",
17032
+ "text",
17033
+ "verbatim",
17034
+ "value",
17035
+ "evalue",
17036
+ "isResponse",
17037
+ {
17038
+ "properties": "modifiers"
17039
+ },
17040
+ {
17041
+ "properties": "postModifiers"
17042
+ },
17043
+ "month",
17044
+ "year"
17045
+ ]
16795
17046
  },
16796
17047
  {
16797
17048
  "id": "monthDayYear_dates",
@@ -16809,7 +17060,24 @@
16809
17060
  "dayNumber_dates"
16810
17061
  ]
16811
17062
  ],
16812
- "bridge": "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }"
17063
+ "bridge": "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }",
17064
+ "check": [
17065
+ "marker",
17066
+ "text",
17067
+ "verbatim",
17068
+ "value",
17069
+ "evalue",
17070
+ "isResponse",
17071
+ {
17072
+ "properties": "modifiers"
17073
+ },
17074
+ {
17075
+ "properties": "postModifiers"
17076
+ },
17077
+ "month",
17078
+ "day",
17079
+ "year"
17080
+ ]
16813
17081
  }
16814
17082
  ],
16815
17083
  "words": {
@@ -18573,6 +18841,48 @@
18573
18841
  0
18574
18842
  ]
18575
18843
  ],
18844
+ [
18845
+ [
18846
+ "is",
18847
+ 0
18848
+ ],
18849
+ [
18850
+ "list",
18851
+ 1
18852
+ ],
18853
+ [
18854
+ "unknown",
18855
+ 0
18856
+ ]
18857
+ ],
18858
+ [
18859
+ [
18860
+ "is",
18861
+ 0
18862
+ ],
18863
+ [
18864
+ "list",
18865
+ 1
18866
+ ],
18867
+ [
18868
+ "unknown",
18869
+ 0
18870
+ ]
18871
+ ],
18872
+ [
18873
+ [
18874
+ "is",
18875
+ 0
18876
+ ],
18877
+ [
18878
+ "list",
18879
+ 1
18880
+ ],
18881
+ [
18882
+ "unknown",
18883
+ 0
18884
+ ]
18885
+ ],
18576
18886
  [
18577
18887
  [
18578
18888
  "setIdSuffix",
package/common/dates.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
2
+ const { defaultContextCheck, defaultContextCheckProperties } = require('./helpers')
3
3
  const dates_tests = require('./dates.test.json')
4
4
  const dates_instance = require('./dates.instance.json')
5
5
  const hierarchy = require('./hierarchy')
@@ -92,6 +92,7 @@ const template = {
92
92
  id: 'onDate_dates',
93
93
  isA: ['preposition'],
94
94
  bridge: "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }",
95
+ check: defaultContextCheckProperties(['onDate', 'date']),
95
96
  },
96
97
  {
97
98
  id: 'afterDateValue_dates',
@@ -104,6 +105,7 @@ const template = {
104
105
  id: 'afterDate_dates',
105
106
  isA: ['preposition'],
106
107
  bridge: "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }",
108
+ check: defaultContextCheckProperties(['afterDate', 'date']),
107
109
  },
108
110
  {
109
111
  id: 'era_dates',
@@ -120,7 +122,8 @@ const template = {
120
122
  id: 'dateEra_dates',
121
123
  isA: ['date_dates'],
122
124
  convolution: true,
123
- bridge: "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }"
125
+ bridge: "{ ...next(after[0]), era: after[1], interpolate: concat(after[0].interpolate, ' ${era}') }",
126
+ check: defaultContextCheckProperties(['era']),
124
127
  },
125
128
  {
126
129
  id: 'dateSeparator_dates',
@@ -133,6 +136,7 @@ const template = {
133
136
  before: ['preposition'],
134
137
  convolution: true,
135
138
  bridge: "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }",
139
+ check: defaultContextCheckProperties(['day', 'month', 'year']),
136
140
  },
137
141
  {
138
142
  id: 'dayNumber_dates',
@@ -156,14 +160,16 @@ const template = {
156
160
  localHierarchy: [['ordinal', 'dayNumber_dates']],
157
161
  before: ['preposition'],
158
162
  isA: ['date_dates'],
159
- bridge: "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }"
163
+ bridge: "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }",
164
+ check: defaultContextCheckProperties(['day', 'month']),
160
165
  },
161
166
  {
162
167
  id: 'monthYear_dates',
163
168
  convolution: true,
164
169
  before: ['preposition'],
165
170
  isA: ['date_dates'],
166
- bridge: "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }"
171
+ bridge: "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }",
172
+ check: defaultContextCheckProperties(['month', 'year']),
167
173
  },
168
174
  {
169
175
  id: 'monthDayYear_dates',
@@ -179,7 +185,8 @@ const template = {
179
185
  localHierarchy: [
180
186
  ['ordinal', 'dayNumber_dates'],
181
187
  ],
182
- bridge: "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }"
188
+ bridge: "{ ...next(operator), month: after[0], day: after[1], year: after[2], interpolate: '${month} ${day} ${year}' }",
189
+ check: defaultContextCheckProperties(['month', 'day', 'year']),
183
190
  },
184
191
  ],
185
192
  words: {
@@ -242,7 +249,12 @@ knowledgeModule( {
242
249
  test: {
243
250
  name: './dates.test.json',
244
251
  contents: dates_tests,
245
- checks: defaultContextCheck(['month', 'day', 'year', 'era', 'month_ordinal', 'day_ordinal', 'month', 'date']),
252
+ checks: {
253
+ context: [
254
+ // defaultContextCheck({ marker: 'monthDayYear_dates', exported: true, extra: ['month', 'day', 'year'] }),
255
+ defaultContextCheck({ extra: ['month', 'day', 'year', 'era', 'month_ordinal', 'day_ordinal', 'month', 'date'] }),
256
+ ],
257
+ }
246
258
  },
247
259
  template: {
248
260
  template,
@@ -829,7 +829,9 @@ knowledgeModule( {
829
829
  contents: dialogues_tests,
830
830
  checks: {
831
831
  ...defaultObjectCheck(['idSuffix']),
832
- ...defaultContextCheck(['one', 'two']),
832
+ context: [
833
+ defaultContextCheck({ extra: ['one', 'two'] }),
834
+ ]
833
835
  },
834
836
 
835
837
  },
@@ -197,7 +197,9 @@ knowledgeModule({
197
197
  contents: tests,
198
198
  checks: {
199
199
  objects: [{ km: 'properties' }],
200
- ...defaultContextCheck(),
200
+ context: [
201
+ defaultContextCheck(),
202
+ ],
201
203
  },
202
204
  },
203
205
  })
@@ -6494,6 +6494,20 @@
6494
6494
  0
6495
6495
  ]
6496
6496
  ],
6497
+ [
6498
+ [
6499
+ "is",
6500
+ 0
6501
+ ],
6502
+ [
6503
+ "list",
6504
+ 1
6505
+ ],
6506
+ [
6507
+ "unknown",
6508
+ 0
6509
+ ]
6510
+ ],
6497
6511
  [
6498
6512
  [
6499
6513
  "is",
@@ -24618,6 +24632,20 @@
24618
24632
  0
24619
24633
  ]
24620
24634
  ],
24635
+ [
24636
+ [
24637
+ "is",
24638
+ 0
24639
+ ],
24640
+ [
24641
+ "list",
24642
+ 1
24643
+ ],
24644
+ [
24645
+ "unknown",
24646
+ 0
24647
+ ]
24648
+ ],
24621
24649
  [
24622
24650
  [
24623
24651
  "is",
@@ -69637,6 +69665,34 @@
69637
69665
  0
69638
69666
  ]
69639
69667
  ],
69668
+ [
69669
+ [
69670
+ "is",
69671
+ 0
69672
+ ],
69673
+ [
69674
+ "list",
69675
+ 1
69676
+ ],
69677
+ [
69678
+ "unknown",
69679
+ 0
69680
+ ]
69681
+ ],
69682
+ [
69683
+ [
69684
+ "is",
69685
+ 0
69686
+ ],
69687
+ [
69688
+ "list",
69689
+ 1
69690
+ ],
69691
+ [
69692
+ "unknown",
69693
+ 0
69694
+ ]
69695
+ ],
69640
69696
  [
69641
69697
  [
69642
69698
  "is",
package/common/edible.js CHANGED
@@ -82,7 +82,9 @@ knowledgeModule( {
82
82
  test: {
83
83
  name: './edible.test.json',
84
84
  contents: edible_tests,
85
- checks: defaultContextCheck(),
85
+ checks: {
86
+ context: [defaultContextCheck()],
87
+ }
86
88
  },
87
89
  template: {
88
90
  template,
@@ -65,7 +65,9 @@ knowledgeModule( {
65
65
  test: {
66
66
  name: './emotions.test.json',
67
67
  contents: emotions_tests,
68
- checks: defaultContextCheck(),
68
+ checks: {
69
+ context: [defaultContextCheck()],
70
+ }
69
71
  },
70
72
  template: {
71
73
  template,
package/common/errors.js CHANGED
@@ -44,7 +44,9 @@ knowledgeModule({
44
44
  test: {
45
45
  name: './errors.test.json',
46
46
  contents: tests,
47
- checks: defaultContextCheck(),
47
+ checks: {
48
+ context: [defaultContextCheck()],
49
+ }
48
50
  /*
49
51
  checks: {
50
52
  context: [
@@ -46,6 +46,8 @@ knowledgeModule({
46
46
  include: {
47
47
  words: true,
48
48
  },
49
- checks: defaultContextCheck(),
49
+ checks: {
50
+ context: [defaultContextCheck()],
51
+ },
50
52
  },
51
53
  })
package/common/events.js CHANGED
@@ -130,6 +130,8 @@ knowledgeModule({
130
130
  include: {
131
131
  words: true,
132
132
  },
133
- checks: defaultContextCheck(['event', 'action']),
133
+ checks: {
134
+ context: [defaultContextCheck({ extra: ['event', 'action'] })],
135
+ },
134
136
  },
135
137
  })