tpmkms_4wp 9.5.1 → 9.6.0-beta.1
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.
- package/common/animals.instance.json +151 -61
- package/common/animals.js +3 -5
- package/common/asking.js +116 -106
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2194 -0
- package/common/can.js +251 -0
- package/common/can.test.json +51307 -0
- package/common/characters.js +5 -5
- package/common/colors.instance.json +152 -12
- package/common/colors.js +3 -6
- package/common/comparable.instance.json +33 -3
- package/common/comparable.js +3 -6
- package/common/concept.js +25 -27
- package/common/concept.test.json +180 -144
- package/common/conjunction.js +13 -5
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +433 -173
- package/common/crew.js +4 -7
- package/common/crew.test.json +4148 -3324
- package/common/currency.js +1 -1
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +6 -9
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +53 -3
- package/common/dates.js +3 -6
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +43 -122
- package/common/dialogues.test.json +1248 -1152
- package/common/dimension.instance.json +21493 -561
- package/common/dimension.js +150 -55
- package/common/dimension.test.json +10979 -4625
- package/common/drone.instance.json +24709 -0
- package/common/drone.js +662 -0
- package/common/drone.test.json +30522 -0
- package/common/drone_v1.instance.json +24703 -0
- package/common/drone_v1.js +596 -0
- package/common/drone_v1.test.json +115538 -0
- package/common/edible.instance.json +388 -32
- package/common/edible.js +3 -5
- package/common/emotions.instance.json +85 -76
- package/common/emotions.js +4 -7
- package/common/emotions.test.json +242 -174
- package/common/english_helpers.js +336 -0
- package/common/errors.js +6 -6
- package/common/evaluate.js +2 -2
- package/common/events.js +8 -8
- package/common/fastfood.instance.json +1071 -393
- package/common/fastfood.js +14 -16
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +11 -1
- package/common/formulas.js +3 -2
- package/common/gdefaults.js +111 -17
- package/common/help.js +12 -12
- package/common/help.test.json +65 -11
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +10 -2
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +9 -9
- package/common/helpers/properties.js +186 -64
- package/common/helpers.js +167 -48
- package/common/hierarchy.js +12 -10
- package/common/kirk.instance.json +11 -1
- package/common/kirk.js +4 -6
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +12 -12
- package/common/latin.js +12 -14
- package/common/length.instance.json +34660 -3158
- package/common/length.js +11 -6
- package/common/length.test.json +54357 -2557
- package/common/math.instance.json +39 -29
- package/common/math.js +49 -47
- package/common/menus.instance.json +77 -10
- package/common/menus.js +4 -13
- package/common/meta.js +80 -65
- package/common/nameable.js +36 -22
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +107 -19
- package/common/ordering.js +4 -6
- package/common/ordering.test.json +835 -417
- package/common/people.instance.json +176 -348
- package/common/people.js +9 -9
- package/common/people.test.json +4135 -3606
- package/common/pipboy.instance.json +187 -17
- package/common/pipboy.js +4 -4
- package/common/pokemon.instance.json +143 -13
- package/common/pokemon.js +4 -6
- package/common/pressure.instance.json +3610 -1601
- package/common/pressure.js +3 -5
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +16 -17
- package/common/properties.js +32 -13
- package/common/properties.test.json +9565 -6951
- package/common/rates.instance.json +59 -0
- package/common/rates.js +95 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.instance.json +4 -4
- package/common/reminders.js +8 -11
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +23 -3
- package/common/reports.js +21 -21
- package/common/scorekeeper.js +9 -12
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +11 -1
- package/common/spock.js +4 -7
- package/common/spock.test.json +606 -430
- package/common/stgame.js +1 -1
- package/common/stm.js +41 -24
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +3163 -1154
- package/common/temperature.js +3 -5
- package/common/temperature.test.json +433 -477
- package/common/tester.js +3 -3
- package/common/time.instance.json +24852 -0
- package/common/time.js +138 -141
- package/common/time.test.json +31876 -3757
- package/common/tokenize.js +5 -2
- package/common/ui.instance.json +12 -5
- package/common/ui.js +4 -13
- package/common/weight.instance.json +10501 -4099
- package/common/weight.js +3 -5
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +50 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +548 -8
- package/common/wp.js +10 -8
- package/common/wp.test.json +7385 -6906
- package/main.js +6 -2
- package/package.json +25 -6
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
package/common/conjunction.js
CHANGED
|
@@ -44,19 +44,26 @@ const config = {
|
|
|
44
44
|
{
|
|
45
45
|
where: where(),
|
|
46
46
|
notes: 'handle lists with yes no',
|
|
47
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
|
48
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
49
47
|
match: ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value && context.value.length > 0 && context.value[0].marker == 'yesno',
|
|
50
48
|
apply: async ({context, g, gs}) => {
|
|
51
49
|
return `${await g(context.value[0])} ${await gs(context.value.slice(1), ', ', ' and ')}`
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
|
|
53
|
+
/*
|
|
54
|
+
{
|
|
55
|
+
where: where(),
|
|
56
|
+
notes: 'handle lists with truthValue set',
|
|
57
|
+
match: ({context, hierarchy}) => context.marker == 'list' && context.hasOwnProperty('truthValue'),
|
|
58
|
+
apply: async ({context, g, gs}) => {
|
|
59
|
+
return context.truthValue ? 'yes' : 'no'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
*/
|
|
63
|
+
|
|
55
64
|
{
|
|
56
65
|
where: where(),
|
|
57
66
|
notes: 'handle lists',
|
|
58
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
|
59
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
60
67
|
match: ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
61
68
|
apply: async ({context, gs}) => {
|
|
62
69
|
if (context.newLinesOnly) {
|
|
@@ -69,7 +76,7 @@ const config = {
|
|
|
69
76
|
],
|
|
70
77
|
};
|
|
71
78
|
|
|
72
|
-
|
|
79
|
+
function initializer({objects, config, isModule}) {
|
|
73
80
|
config.addArgs(({config, api, hierarchy}) => {
|
|
74
81
|
const isAI = isA(hierarchy);
|
|
75
82
|
|
|
@@ -82,6 +89,7 @@ const initializer = ({objects, config, isModule}) => {
|
|
|
82
89
|
}
|
|
83
90
|
},
|
|
84
91
|
asList,
|
|
92
|
+
toList: asList,
|
|
85
93
|
toArray: propertyToArray,
|
|
86
94
|
listable: listable(hierarchy),
|
|
87
95
|
isA: isAI,
|
|
@@ -11,30 +11,6 @@
|
|
|
11
11
|
0
|
|
12
12
|
]
|
|
13
13
|
],
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
"list",
|
|
17
|
-
0
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
"unknown",
|
|
21
|
-
0
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
"unknown",
|
|
25
|
-
1
|
|
26
|
-
]
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
"list",
|
|
31
|
-
0
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
"unknown",
|
|
35
|
-
1
|
|
36
|
-
]
|
|
37
|
-
],
|
|
38
14
|
[
|
|
39
15
|
[
|
|
40
16
|
"list",
|
|
@@ -42,7 +18,7 @@
|
|
|
42
18
|
],
|
|
43
19
|
[
|
|
44
20
|
"unknown",
|
|
45
|
-
|
|
21
|
+
0
|
|
46
22
|
]
|
|
47
23
|
]
|
|
48
24
|
],
|
|
@@ -50,6 +26,7 @@
|
|
|
50
26
|
},
|
|
51
27
|
"contexts": [
|
|
52
28
|
{
|
|
29
|
+
"context_id": 2,
|
|
53
30
|
"context_index": 1,
|
|
54
31
|
"default": true,
|
|
55
32
|
"isList": true,
|
|
@@ -69,7 +46,7 @@
|
|
|
69
46
|
"value": [
|
|
70
47
|
{
|
|
71
48
|
"dead": true,
|
|
72
|
-
"level":
|
|
49
|
+
"level": 0,
|
|
73
50
|
"marker": "unknown",
|
|
74
51
|
"range": {
|
|
75
52
|
"end": 0,
|
|
@@ -85,7 +62,7 @@
|
|
|
85
62
|
},
|
|
86
63
|
{
|
|
87
64
|
"dead": true,
|
|
88
|
-
"level":
|
|
65
|
+
"level": 0,
|
|
89
66
|
"marker": "unknown",
|
|
90
67
|
"range": {
|
|
91
68
|
"end": 2,
|
|
@@ -101,7 +78,7 @@
|
|
|
101
78
|
},
|
|
102
79
|
{
|
|
103
80
|
"dead": true,
|
|
104
|
-
"level":
|
|
81
|
+
"level": 0,
|
|
105
82
|
"marker": "unknown",
|
|
106
83
|
"range": {
|
|
107
84
|
"end": 8,
|
|
@@ -219,19 +196,29 @@
|
|
|
219
196
|
"nameToUUID": {
|
|
220
197
|
"conjunction": "conjunction1",
|
|
221
198
|
"gdefaults": "gdefaults2",
|
|
222
|
-
"tokenize": "tokenize2"
|
|
199
|
+
"tokenize": "tokenize2",
|
|
200
|
+
"words": "words2"
|
|
223
201
|
},
|
|
224
202
|
"namespaced": {
|
|
225
203
|
"conjunction1": {
|
|
204
|
+
"km": "conjunction1"
|
|
226
205
|
},
|
|
227
206
|
"gdefaults2": {
|
|
207
|
+
"km": "gdefaults2"
|
|
228
208
|
},
|
|
229
209
|
"tokenize2": {
|
|
210
|
+
"km": "tokenize2"
|
|
211
|
+
},
|
|
212
|
+
"words2": {
|
|
213
|
+
"km": "words2",
|
|
214
|
+
"words": [
|
|
215
|
+
]
|
|
230
216
|
}
|
|
231
217
|
},
|
|
232
218
|
"processed": [
|
|
233
219
|
{
|
|
234
220
|
"context": {
|
|
221
|
+
"context_id": 2,
|
|
235
222
|
"context_index": 1,
|
|
236
223
|
"default": true,
|
|
237
224
|
"isList": true,
|
|
@@ -251,7 +238,7 @@
|
|
|
251
238
|
"value": [
|
|
252
239
|
{
|
|
253
240
|
"dead": true,
|
|
254
|
-
"level":
|
|
241
|
+
"level": 0,
|
|
255
242
|
"marker": "unknown",
|
|
256
243
|
"range": {
|
|
257
244
|
"end": 0,
|
|
@@ -267,7 +254,7 @@
|
|
|
267
254
|
},
|
|
268
255
|
{
|
|
269
256
|
"dead": true,
|
|
270
|
-
"level":
|
|
257
|
+
"level": 0,
|
|
271
258
|
"marker": "unknown",
|
|
272
259
|
"range": {
|
|
273
260
|
"end": 2,
|
|
@@ -283,7 +270,7 @@
|
|
|
283
270
|
},
|
|
284
271
|
{
|
|
285
272
|
"dead": true,
|
|
286
|
-
"level":
|
|
273
|
+
"level": 0,
|
|
287
274
|
"marker": "unknown",
|
|
288
275
|
"range": {
|
|
289
276
|
"end": 8,
|
|
@@ -300,9 +287,12 @@
|
|
|
300
287
|
],
|
|
301
288
|
"word": "and"
|
|
302
289
|
},
|
|
303
|
-
"generatedParenthesized":
|
|
304
|
-
|
|
305
|
-
"
|
|
290
|
+
"generatedParenthesized": [
|
|
291
|
+
],
|
|
292
|
+
"paraphrases": [
|
|
293
|
+
],
|
|
294
|
+
"paraphrasesParenthesized": [
|
|
295
|
+
],
|
|
306
296
|
"responses": [
|
|
307
297
|
""
|
|
308
298
|
]
|
|
@@ -374,7 +364,7 @@
|
|
|
374
364
|
{
|
|
375
365
|
"marker": [
|
|
376
366
|
"unknown",
|
|
377
|
-
|
|
367
|
+
0
|
|
378
368
|
],
|
|
379
369
|
"range": {
|
|
380
370
|
"end": 0,
|
|
@@ -419,7 +409,7 @@
|
|
|
419
409
|
{
|
|
420
410
|
"marker": [
|
|
421
411
|
"unknown",
|
|
422
|
-
|
|
412
|
+
0
|
|
423
413
|
],
|
|
424
414
|
"range": {
|
|
425
415
|
"end": 0,
|
|
@@ -429,7 +419,7 @@
|
|
|
429
419
|
{
|
|
430
420
|
"marker": [
|
|
431
421
|
"unknown",
|
|
432
|
-
|
|
422
|
+
0
|
|
433
423
|
],
|
|
434
424
|
"range": {
|
|
435
425
|
"end": 2,
|
|
@@ -464,7 +454,7 @@
|
|
|
464
454
|
{
|
|
465
455
|
"marker": [
|
|
466
456
|
"unknown",
|
|
467
|
-
|
|
457
|
+
0
|
|
468
458
|
],
|
|
469
459
|
"range": {
|
|
470
460
|
"end": 0,
|
|
@@ -474,7 +464,7 @@
|
|
|
474
464
|
{
|
|
475
465
|
"marker": [
|
|
476
466
|
"unknown",
|
|
477
|
-
|
|
467
|
+
0
|
|
478
468
|
],
|
|
479
469
|
"range": {
|
|
480
470
|
"end": 2,
|
|
@@ -494,7 +484,7 @@
|
|
|
494
484
|
{
|
|
495
485
|
"marker": [
|
|
496
486
|
"unknown",
|
|
497
|
-
|
|
487
|
+
0
|
|
498
488
|
],
|
|
499
489
|
"range": {
|
|
500
490
|
"end": 8,
|
|
@@ -509,7 +499,7 @@
|
|
|
509
499
|
{
|
|
510
500
|
"marker": [
|
|
511
501
|
"unknown",
|
|
512
|
-
|
|
502
|
+
0
|
|
513
503
|
],
|
|
514
504
|
"range": {
|
|
515
505
|
"end": 0,
|