ekms 8.0.0-beta.3 → 8.0.0-beta.31
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +2542 -1375
- package/common/animals.js +2 -2
- package/common/avatar.js +2 -2
- package/common/characters.js +9 -11
- package/common/colors.instance.json +6646 -3529
- package/common/colors.js +2 -2
- package/common/colors.test.json +345 -780
- package/common/comparable.js +2 -15
- package/common/concept.js +17 -11
- package/common/countable.js +5 -5
- package/common/crew.instance.json +12534 -6597
- package/common/crew.js +4 -4
- package/common/crew.test.json +714 -452
- package/common/currency.js +7 -7
- package/common/dialogues.js +53 -138
- package/common/dimension.instance.json +246 -265
- package/common/dimension.js +12 -12
- package/common/dimension.test.json +446 -1640
- package/common/edible.instance.json +19308 -10008
- package/common/edible.js +2 -2
- package/common/emotions.instance.json +122 -129
- package/common/emotions.js +4 -4
- package/common/events.js +6 -6
- package/common/fastfood.instance.json +219409 -111252
- package/common/fastfood.js +24 -24
- package/common/formulas.instance.json +222 -256
- package/common/formulas.js +14 -14
- package/common/gdefaults.js +13 -13
- package/common/help.js +4 -4
- package/common/help.test.json +10 -22
- package/common/helpers/concept.js +9 -6
- package/common/helpers/dialogues.js +2 -3
- package/common/helpers/properties.js +48 -58
- package/common/hierarchy.js +12 -16
- package/common/javascript.js +8 -8
- package/common/kirk.instance.json +564 -290
- package/common/kirk.js +2 -2
- package/common/length.instance.json +5153 -4677
- package/common/length.js +2 -2
- package/common/math.instance.json +152 -1169
- package/common/math.js +11 -11
- package/common/meta.js +22 -29
- package/common/negation.instance.json +2 -0
- package/common/negation.js +38 -0
- package/common/negation.test.json +308 -0
- package/common/numbers.js +3 -3
- package/common/ordering.instance.json +292 -230
- package/common/ordering.js +5 -5
- package/common/people.instance.json +1902 -1015
- package/common/people.js +4 -5
- package/common/percentages.instance.json +2 -0
- package/common/percentages.js +57 -0
- package/common/percentages.test.json +751 -0
- package/common/pipboy.instance.json +7720 -6386
- package/common/pipboy.js +29 -32
- package/common/pokemon.instance.json +3954 -2081
- package/common/pokemon.js +4 -4
- package/common/pos.js +1 -1
- package/common/pressure.instance.json +1265 -1193
- package/common/pressure.js +2 -2
- package/common/properties.instance.json +106 -61
- package/common/properties.js +54 -125
- package/common/punctuation.js +2 -2
- package/common/reports.instance.json +557 -559
- package/common/reports.js +54 -74
- package/common/scorekeeper.js +13 -21
- package/common/sdefaults.js +13 -3
- package/common/sizeable.js +2 -2
- package/common/spock.instance.json +564 -290
- package/common/spock.js +2 -2
- package/common/stgame.js +13 -9
- package/common/stm.js +4 -4
- package/common/tell.js +10 -10
- package/common/temperature.instance.json +1297 -1209
- package/common/temperature.js +2 -2
- package/common/tester.js +2 -2
- package/common/testing.js +5 -5
- package/common/time.js +7 -7
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +238 -259
- package/common/ui.js +9 -9
- package/common/weight.instance.json +4905 -4166
- package/common/weight.js +2 -2
- package/common/yesno.js +1 -1
- package/main.js +51 -46
- 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
|
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
|
-
"
|
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",
|
package/common/emotions.js
CHANGED
@@ -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,8 +46,8 @@ const createConfig = () => {
|
|
46
46
|
]
|
47
47
|
}, module)
|
48
48
|
config.stop_auto_rebuild()
|
49
|
-
config.add(hierarchy
|
50
|
-
config.initializer( ({config, apis}) => {
|
49
|
+
await config.add(hierarchy)
|
50
|
+
await config.initializer( ({config, apis}) => {
|
51
51
|
const api = apis('properties')
|
52
52
|
api.createActionPrefix({
|
53
53
|
operator: 'feel',
|
@@ -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
@@ -32,7 +32,7 @@ let configStruct = {
|
|
32
32
|
where: where(),
|
33
33
|
id: "after", level: 0,
|
34
34
|
bridge: "{ ...next(operator), event: after[0], action: after[1] }",
|
35
|
-
generatorp: ({context, gp}) => `after ${gp(context.event)} ${gp(context.action)}`,
|
35
|
+
generatorp: async ({context, gp}) => `after ${await gp(context.event)} ${await gp(context.action)}`,
|
36
36
|
},
|
37
37
|
{ id: "action", level: 0, bridge: "{ ...next(operator) }" },
|
38
38
|
{ id: "changeable", level: 0, bridge: "{ ...next(operator) }" },
|
@@ -42,11 +42,11 @@ let configStruct = {
|
|
42
42
|
level: 0,
|
43
43
|
isA: ['verby'],
|
44
44
|
bridge: "{ ...next(operator), changeable: before[0] }",
|
45
|
-
generatorp: ({context, g}) => {
|
45
|
+
generatorp: async ({context, g}) => {
|
46
46
|
if (!context.changeable) {
|
47
47
|
return 'undefined changes'
|
48
48
|
}
|
49
|
-
return `${g(context.changeable)} changes`
|
49
|
+
return `${await g(context.changeable)} changes`
|
50
50
|
}
|
51
51
|
},
|
52
52
|
{
|
@@ -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.
|
123
|
-
config.add(dialogues
|
122
|
+
await config.setApi(new API())
|
123
|
+
await config.add(dialogues)
|
124
124
|
return config
|
125
125
|
}
|
126
126
|
|