tpmkms_4wp 8.0.0-beta.2 → 8.0.0-beta.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/common/animals.instance.json +2542 -1375
  2. package/common/animals.js +2 -2
  3. package/common/avatar.js +2 -2
  4. package/common/characters.js +12 -16
  5. package/common/colors.instance.json +6646 -3501
  6. package/common/colors.js +2 -2
  7. package/common/colors.test.json +345 -780
  8. package/common/comparable.js +2 -2
  9. package/common/concept.js +8 -6
  10. package/common/countable.js +2 -2
  11. package/common/crew.instance.json +12534 -6597
  12. package/common/crew.js +3 -3
  13. package/common/crew.test.json +714 -452
  14. package/common/currency.js +4 -4
  15. package/common/dialogues.js +5 -21
  16. package/common/dimension.instance.json +242 -261
  17. package/common/dimension.js +4 -4
  18. package/common/dimension.test.json +314 -502
  19. package/common/edible.instance.json +19282 -9954
  20. package/common/edible.js +2 -2
  21. package/common/emotions.instance.json +122 -129
  22. package/common/emotions.js +3 -3
  23. package/common/events.js +3 -3
  24. package/common/fastfood.instance.json +219367 -111011
  25. package/common/fastfood.js +4 -4
  26. package/common/formulas.instance.json +216 -250
  27. package/common/formulas.js +6 -6
  28. package/common/gdefaults.js +2 -2
  29. package/common/help.js +3 -3
  30. package/common/help.test.json +10 -22
  31. package/common/helpers/concept.js +9 -6
  32. package/common/hierarchy.js +3 -3
  33. package/common/javascript.js +3 -3
  34. package/common/kirk.instance.json +564 -290
  35. package/common/kirk.js +2 -2
  36. package/common/length.instance.json +5153 -4677
  37. package/common/length.js +2 -2
  38. package/common/math.instance.json +140 -1157
  39. package/common/math.js +6 -6
  40. package/common/meta.js +3 -3
  41. package/common/negation.instance.json +2 -0
  42. package/common/negation.js +38 -0
  43. package/common/negation.test.json +308 -0
  44. package/common/numbers.js +3 -3
  45. package/common/ordering.instance.json +292 -230
  46. package/common/ordering.js +4 -4
  47. package/common/people.instance.json +1902 -1015
  48. package/common/people.js +3 -3
  49. package/common/percentages.instance.json +2 -0
  50. package/common/percentages.js +57 -0
  51. package/common/percentages.test.json +751 -0
  52. package/common/pipboy.instance.json +7718 -6328
  53. package/common/pipboy.js +4 -4
  54. package/common/pokemon.instance.json +3954 -2081
  55. package/common/pokemon.js +3 -3
  56. package/common/pos.js +1 -1
  57. package/common/pressure.instance.json +1265 -1193
  58. package/common/pressure.js +2 -2
  59. package/common/properties.instance.json +106 -61
  60. package/common/properties.js +6 -4
  61. package/common/punctuation.js +1 -1
  62. package/common/reports.instance.json +557 -559
  63. package/common/reports.js +11 -11
  64. package/common/scorekeeper.js +3 -3
  65. package/common/sdefaults.js +11 -1
  66. package/common/sizeable.js +2 -2
  67. package/common/spock.instance.json +564 -290
  68. package/common/spock.js +2 -2
  69. package/common/stgame.js +13 -9
  70. package/common/stm.js +3 -3
  71. package/common/tell.js +4 -4
  72. package/common/temperature.instance.json +1380 -1208
  73. package/common/temperature.js +2 -2
  74. package/common/tester.js +2 -2
  75. package/common/testing.js +2 -2
  76. package/common/time.js +4 -4
  77. package/common/tokenize.js +1 -1
  78. package/common/ui.instance.json +238 -259
  79. package/common/ui.js +4 -4
  80. package/common/weight.instance.json +4905 -4166
  81. package/common/weight.js +2 -2
  82. package/common/yesno.js +1 -1
  83. package/main.js +51 -46
  84. package/package.json +13 -6
package/common/edible.js CHANGED
@@ -74,9 +74,9 @@ const template ={
74
74
  ],
75
75
  }
76
76
 
77
- const createConfig = () => {
77
+ const createConfig = async () => {
78
78
  const config = new Config({ name: 'edible' }, module)
79
- config.add(countable(), hierarchy())
79
+ await config.add(countable, hierarchy)
80
80
  return config
81
81
  }
82
82
 
@@ -7,255 +7,308 @@
7
7
  "hierarchy": [
8
8
  [
9
9
  "a",
10
- "articlePOS"
10
+ "articlePOS",
11
+ false
11
12
  ],
12
13
  [
13
14
  "articlePOS",
14
- "articlePOS"
15
+ "articlePOS",
16
+ false
15
17
  ],
16
18
  [
17
19
  "between",
18
- "preposition"
20
+ "preposition",
21
+ false
19
22
  ],
20
23
  [
21
24
  "canBeDoQuestion",
22
- "canBeDoQuestion"
25
+ "canBeDoQuestion",
26
+ false
23
27
  ],
24
28
  [
25
29
  "canBeQuestion",
26
- "canBeQuestion"
30
+ "canBeQuestion",
31
+ false
27
32
  ],
28
33
  [
29
34
  "concept",
30
- "queryable"
35
+ "queryable",
36
+ false
31
37
  ],
32
38
  [
33
39
  "concept",
34
- "theAble"
40
+ "theAble",
41
+ false
35
42
  ],
36
43
  [
37
44
  "doubleQuote",
38
- "queryable"
45
+ "queryable",
46
+ false
39
47
  ],
40
48
  [
41
49
  "emotion",
42
- "unknown"
50
+ "unknown",
51
+ false
43
52
  ],
44
53
  [
45
54
  "feel",
46
- "canBeDoQuestion"
55
+ "canBeDoQuestion",
56
+ false
47
57
  ],
48
58
  [
49
59
  "feel",
50
- "canBeQuestion"
60
+ "canBeQuestion",
61
+ false
51
62
  ],
52
63
  [
53
64
  "feel",
54
- "ifAble"
65
+ "ifAble",
66
+ false
55
67
  ],
56
68
  [
57
69
  "feel",
58
- "orAble"
70
+ "orAble",
71
+ false
59
72
  ],
60
73
  [
61
74
  "have",
62
- "canBeDoQuestion"
75
+ "canBeDoQuestion",
76
+ false
63
77
  ],
64
78
  [
65
79
  "have",
66
- "canBeQuestion"
80
+ "canBeQuestion",
81
+ false
67
82
  ],
68
83
  [
69
84
  "hierarchyAble",
70
- "queryable"
85
+ "queryable",
86
+ false
71
87
  ],
72
88
  [
73
89
  "ifAble",
74
- "ifAble"
90
+ "ifAble",
91
+ false
75
92
  ],
76
93
  [
77
94
  "is",
78
- "canBeQuestion"
95
+ "canBeQuestion",
96
+ false
79
97
  ],
80
98
  [
81
99
  "is",
82
- "verby"
100
+ "verby",
101
+ false
83
102
  ],
84
103
  [
85
104
  "it",
86
- "pronoun"
105
+ "pronoun",
106
+ false
87
107
  ],
88
108
  [
89
109
  "it",
90
- "queryable"
110
+ "queryable",
111
+ false
91
112
  ],
92
113
  [
93
114
  "it",
94
- "thisitthat"
115
+ "thisitthat",
116
+ false
95
117
  ],
96
118
  [
97
119
  "it",
98
- "toAble"
120
+ "toAble",
121
+ false
99
122
  ],
100
123
  [
101
124
  "modifies",
102
- "verby"
103
- ],
104
- [
105
- "notAble",
106
- "notAble"
125
+ "verby",
126
+ false
107
127
  ],
108
128
  [
109
129
  "noun",
110
- "theAble"
130
+ "theAble",
131
+ false
111
132
  ],
112
133
  [
113
134
  "object",
114
- "queryable"
135
+ "queryable",
136
+ false
115
137
  ],
116
138
  [
117
139
  "object",
118
- "theAble"
140
+ "theAble",
141
+ false
119
142
  ],
120
143
  [
121
144
  "orAble",
122
- "ifAble"
145
+ "ifAble",
146
+ false
123
147
  ],
124
148
  [
125
149
  "preposition",
126
- "preposition"
150
+ "preposition",
151
+ false
127
152
  ],
128
153
  [
129
154
  "pronoun",
130
- "pronoun"
155
+ "pronoun",
156
+ false
131
157
  ],
132
158
  [
133
159
  "property",
134
- "queryable"
160
+ "queryable",
161
+ false
135
162
  ],
136
163
  [
137
164
  "property",
138
- "theAble"
165
+ "theAble",
166
+ false
139
167
  ],
140
168
  [
141
169
  "property",
142
- "unknown"
170
+ "unknown",
171
+ false
143
172
  ],
144
173
  [
145
174
  "punctuation",
146
- "punctuation"
175
+ "punctuation",
176
+ false
147
177
  ],
148
178
  [
149
179
  "queryable",
150
- "queryable"
180
+ "queryable",
181
+ false
151
182
  ],
152
183
  [
153
184
  "questionMark",
154
- "punctuation"
185
+ "punctuation",
186
+ false
155
187
  ],
156
188
  [
157
189
  "readonly",
158
- "queryable"
190
+ "queryable",
191
+ false
159
192
  ],
160
193
  [
161
194
  "reason",
162
- "queryable"
195
+ "queryable",
196
+ false
163
197
  ],
164
198
  [
165
199
  "reason",
166
- "theAble"
200
+ "theAble",
201
+ false
167
202
  ],
168
203
  [
169
204
  "sentientBeing",
170
- "unknown"
205
+ "unknown",
206
+ false
171
207
  ],
172
208
  [
173
209
  "that",
174
- "thisitthat"
210
+ "thisitthat",
211
+ false
175
212
  ],
176
213
  [
177
214
  "the",
178
- "articlePOS"
215
+ "articlePOS",
216
+ false
179
217
  ],
180
218
  [
181
219
  "theAble",
182
- "theAble"
220
+ "theAble",
221
+ false
183
222
  ],
184
223
  [
185
224
  "this",
186
- "pronoun"
225
+ "pronoun",
226
+ false
187
227
  ],
188
228
  [
189
229
  "this",
190
- "queryable"
230
+ "queryable",
231
+ false
191
232
  ],
192
233
  [
193
234
  "this",
194
- "thisitthat"
235
+ "thisitthat",
236
+ false
195
237
  ],
196
238
  [
197
239
  "thisitthat",
198
- "queryable"
240
+ "queryable",
241
+ false
199
242
  ],
200
243
  [
201
244
  "to",
202
- "preposition"
245
+ "preposition",
246
+ false
203
247
  ],
204
248
  [
205
249
  "toAble",
206
- "toAble"
250
+ "toAble",
251
+ false
207
252
  ],
208
253
  [
209
254
  "type",
210
- "property"
255
+ "property",
256
+ false
211
257
  ],
212
258
  [
213
259
  "type",
214
- "whatAble"
215
- ],
216
- [
217
- "unknown",
218
- "hierarchyAble"
260
+ "whatAble",
261
+ false
219
262
  ],
220
263
  [
221
264
  "unknown",
222
- "notAble"
265
+ "hierarchyAble",
266
+ false
223
267
  ],
224
268
  [
225
269
  "unknown",
226
- "object"
270
+ "object",
271
+ false
227
272
  ],
228
273
  [
229
274
  "unknown",
230
- "queryable"
275
+ "queryable",
276
+ false
231
277
  ],
232
278
  [
233
279
  "unknown",
234
- "theAble"
280
+ "theAble",
281
+ false
235
282
  ],
236
283
  [
237
284
  "verby",
238
- "verby"
285
+ "verby",
286
+ false
239
287
  ],
240
288
  [
241
289
  "what",
242
- "object"
290
+ "object",
291
+ false
243
292
  ],
244
293
  [
245
294
  "what",
246
- "queryable"
295
+ "queryable",
296
+ false
247
297
  ],
248
298
  [
249
299
  "whatAble",
250
- "queryable"
300
+ "queryable",
301
+ false
251
302
  ],
252
303
  [
253
304
  "whose",
254
- "object"
305
+ "object",
306
+ false
255
307
  ],
256
308
  [
257
309
  "xfx",
258
- "queryable"
310
+ "queryable",
311
+ false
259
312
  ]
260
313
  ],
261
314
  "metadata": {
@@ -885,36 +938,6 @@
885
938
  1
886
939
  ]
887
940
  ],
888
- [
889
- [
890
- "feel",
891
- 0
892
- ],
893
- [
894
- "is",
895
- 0
896
- ],
897
- [
898
- "means",
899
- 0
900
- ],
901
- [
902
- "propertyOf",
903
- 0
904
- ],
905
- [
906
- "the",
907
- 0
908
- ],
909
- [
910
- "unknown",
911
- 0
912
- ],
913
- [
914
- "unknown",
915
- 1
916
- ]
917
- ],
918
941
  [
919
942
  [
920
943
  "feel",
@@ -1112,36 +1135,6 @@
1112
1135
  1
1113
1136
  ]
1114
1137
  ],
1115
- [
1116
- [
1117
- "feel",
1118
- 0
1119
- ],
1120
- [
1121
- "is",
1122
- 0
1123
- ],
1124
- [
1125
- "means",
1126
- 0
1127
- ],
1128
- [
1129
- "propertyOf",
1130
- 0
1131
- ],
1132
- [
1133
- "the",
1134
- 0
1135
- ],
1136
- [
1137
- "unknown",
1138
- 0
1139
- ],
1140
- [
1141
- "unknown",
1142
- 1
1143
- ]
1144
- ],
1145
1138
  [
1146
1139
  [
1147
1140
  "feel",
@@ -23,7 +23,7 @@ const template ={
23
23
  ],
24
24
  }
25
25
 
26
- const createConfig = () => {
26
+ const createConfig = async () => {
27
27
  const config = new Config({
28
28
  name: 'emotions',
29
29
  operators: [
@@ -46,7 +46,7 @@ const createConfig = () => {
46
46
  ]
47
47
  }, module)
48
48
  config.stop_auto_rebuild()
49
- config.add(hierarchy())
49
+ await config.add(hierarchy)
50
50
  config.initializer( ({config, apis}) => {
51
51
  const api = apis('properties')
52
52
  api.createActionPrefix({
@@ -57,7 +57,7 @@ const createConfig = () => {
57
57
  doAble: true,
58
58
  config })
59
59
  })
60
- config.restart_auto_rebuild()
60
+ await config.restart_auto_rebuild()
61
61
  //config.load(template, emotions_instance)
62
62
  return config
63
63
  }
package/common/events.js CHANGED
@@ -117,10 +117,10 @@ let configStruct = {
117
117
  ],
118
118
  };
119
119
 
120
- const createConfig = () => {
120
+ const createConfig = async () => {
121
121
  const config = new Config(configStruct, module)
122
- config.api = new API()
123
- config.add(dialogues())
122
+ await config.setApi(new API())
123
+ await config.add(dialogues)
124
124
  return config
125
125
  }
126
126