tpmkms_4wp 8.9.1-beta.9 → 9.0.0-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.
- package/common/animals.instance.json +6516 -754
- package/common/articles.js +6 -9
- package/common/articles.test.json +304 -4
- package/common/asking.js +1 -1
- package/common/asking.test.json +1599 -140
- package/common/avatar.js +8 -0
- package/common/avatar.test.json +6008 -2749
- package/common/characters.test.json +1371 -95
- package/common/colors.instance.json +22685 -1441
- package/common/colors.test.json +704 -136
- package/common/comparable.instance.json +1302 -169
- package/common/comparable.js +12 -12
- package/common/comparable.test.json +3239 -558
- package/common/concept.js +10 -2
- package/common/concept.test.json +2853 -694
- package/common/conjunction.js +12 -0
- package/common/conjunction.test.json +229 -1
- package/common/countable.js +1 -1
- package/common/countable.test.json +1306 -48
- package/common/crew.instance.json +18984 -1943
- package/common/crew.js +19 -0
- package/common/crew.test.json +10218 -2145
- package/common/currency.js +0 -1
- package/common/currency.test.json +948 -64
- package/common/dialogues.js +100 -32
- package/common/dialogues.test.json +6611 -1905
- package/common/dimension.instance.json +751 -82
- package/common/dimension.js +16 -2
- package/common/dimension.test.json +23680 -11550
- package/common/edible.instance.json +21654 -2721
- package/common/edible.js +13 -0
- package/common/edible.test.json +1580 -304
- package/common/emotions.instance.json +2275 -259
- package/common/emotions.js +10 -2
- package/common/emotions.test.json +1134 -107
- package/common/errors.js +0 -2
- package/common/errors.test.json +88 -0
- package/common/evaluate.test.json +100 -1
- package/common/events.test.json +2197 -242
- package/common/fastfood.instance.json +82297 -10535
- package/common/fastfood.js +96 -9
- package/common/fastfood.test.json +65486 -21430
- package/common/formulas.instance.json +316 -59
- package/common/formulas.test.json +13202 -6757
- package/common/gdefaults.js +9 -2
- package/common/help.test.json +288 -0
- package/common/helpers/concept.js +3 -2
- package/common/helpers/properties.js +2 -32
- package/common/hierarchy.js +9 -0
- package/common/hierarchy.test.json +53813 -17340
- package/common/javascript.test.json +214 -11
- package/common/kirk.instance.json +309 -9
- package/common/kirk.test.json +1123 -254
- package/common/length.instance.json +9722 -774
- package/common/length.test.json +12055 -8184
- package/common/listener.test.json +39 -1
- package/common/math.instance.json +285 -58
- package/common/math.test.json +38557 -17754
- package/common/meta.instance.json +1 -0
- package/common/meta.js +8 -8
- package/common/meta.test.json +2770 -275
- package/common/nameable.js +1 -1
- package/common/nameable.test.json +5150 -1475
- package/common/negation.test.json +146 -8
- package/common/numbers.test.json +234 -0
- package/common/ordering.instance.json +3870 -493
- package/common/ordering.test.json +2680 -1283
- package/common/ordinals.js +11 -1
- package/common/ordinals.test.json +627 -3
- package/common/people.instance.json +3844 -575
- package/common/people.js +0 -14
- package/common/people.test.json +27157 -13664
- package/common/percentages.js +0 -1
- package/common/percentages.test.json +313 -0
- package/common/pipboy.instance.json +13577 -1511
- package/common/pipboy.js +30 -48
- package/common/pipboy.test.json +19335 -6019
- package/common/pokemon.instance.json +6014 -731
- package/common/pokemon.test.json +1826 -389
- package/common/pos.js +15 -5
- package/common/pressure.instance.json +2615 -308
- package/common/pressure.test.json +2997 -1629
- package/common/properties.instance.json +894 -86
- package/common/properties.js +17 -26
- package/common/properties.test.json +46801 -14612
- package/common/punctuation.test.json +327 -0
- package/common/reports.instance.json +979 -120
- package/common/reports.js +9 -2
- package/common/reports.test.json +16653 -2453
- package/common/scorekeeper.instance.json +1 -0
- package/common/scorekeeper.js +17 -7
- package/common/scorekeeper.test.json +42546 -15408
- package/common/sizeable.js +1 -1
- package/common/sizeable.test.json +1170 -215
- package/common/spock.instance.json +309 -9
- package/common/spock.test.json +1123 -254
- package/common/stgame.js +0 -1
- package/common/stgame.test.json +1371 -91
- package/common/stm.test.json +842 -9
- package/common/tell.test.json +224 -1
- package/common/temperature.instance.json +5967 -308
- package/common/temperature.test.json +2610 -1272
- package/common/testing.test.json +84 -1
- package/common/time.test.json +5345 -272
- package/common/tokenize.js +3 -2
- package/common/tokenize.test.json +39 -0
- package/common/ui.instance.json +130 -27
- package/common/ui.js +0 -16
- package/common/ui.test.json +4620 -140
- package/common/weight.instance.json +9915 -777
- package/common/weight.js +10 -0
- package/common/weight.test.json +18658 -12176
- package/common/wp.instance.json +14141 -1542
- package/common/wp.js +105 -38
- package/common/wp.test.json +61801 -1662
- package/common/yesno.test.json +168 -4
- package/package.json +2 -2
package/common/errors.js
CHANGED
@@ -21,7 +21,6 @@ const config = {
|
|
21
21
|
match: ({context}) => context.interpretation_error,
|
22
22
|
apply: async ({context, g, gp, verbatim, contexts}) => {
|
23
23
|
const argument = contexts.find( (argument) => argument.argument_id == context.interpretation_error.argument_id )
|
24
|
-
debugger
|
25
24
|
verbatim(`Did not know how to understand "${await gp(argument)}" when applying "${await g(context)}"`)
|
26
25
|
}
|
27
26
|
},
|
@@ -29,7 +28,6 @@ const config = {
|
|
29
28
|
match: ({context}) => context.context?.interpretation_error,
|
30
29
|
apply: async ({context, g, gp, verbatim, contexts}) => {
|
31
30
|
context = context.context
|
32
|
-
debugger
|
33
31
|
const argument = contexts.find( (argument) => argument.argument_id == context.interpretation_error.argument_id )
|
34
32
|
verbatim(`Did not know how to understand "${await gp(argument)}" when applying "${await g(context)}"`)
|
35
33
|
}
|
package/common/errors.test.json
CHANGED
@@ -6,10 +6,12 @@
|
|
6
6
|
},
|
7
7
|
"contexts": [
|
8
8
|
{
|
9
|
+
"context_index": 1,
|
9
10
|
"dead": true,
|
10
11
|
"default": true,
|
11
12
|
"interpretation_error": {
|
12
13
|
"argument_id": 1,
|
14
|
+
"counter": 2,
|
13
15
|
"expected": [
|
14
16
|
[
|
15
17
|
"dropable",
|
@@ -39,6 +41,7 @@
|
|
39
41
|
},
|
40
42
|
{
|
41
43
|
"argument_id": 1,
|
44
|
+
"context_index": 3,
|
42
45
|
"dead": true,
|
43
46
|
"level": 1,
|
44
47
|
"marker": "unknown",
|
@@ -110,6 +113,7 @@
|
|
110
113
|
{
|
111
114
|
"context": {
|
112
115
|
"argument_id": 1,
|
116
|
+
"context_index": 3,
|
113
117
|
"dead": true,
|
114
118
|
"level": 1,
|
115
119
|
"marker": "unknown",
|
@@ -150,10 +154,12 @@
|
|
150
154
|
},
|
151
155
|
{
|
152
156
|
"context": {
|
157
|
+
"context_index": 1,
|
153
158
|
"dead": true,
|
154
159
|
"default": true,
|
155
160
|
"interpretation_error": {
|
156
161
|
"argument_id": 1,
|
162
|
+
"counter": 2,
|
157
163
|
"expected": [
|
158
164
|
[
|
159
165
|
"dropable",
|
@@ -201,6 +207,88 @@
|
|
201
207
|
"",
|
202
208
|
"Did not know how to understand \"y\" when applying \"drop\"",
|
203
209
|
""
|
210
|
+
],
|
211
|
+
"summaries": [
|
212
|
+
{
|
213
|
+
"length": 3,
|
214
|
+
"summaries": [
|
215
|
+
{
|
216
|
+
"counter": 1,
|
217
|
+
"operators": [
|
218
|
+
{
|
219
|
+
"marker": [
|
220
|
+
"drop",
|
221
|
+
0
|
222
|
+
],
|
223
|
+
"range": {
|
224
|
+
"end": 3,
|
225
|
+
"start": 0
|
226
|
+
}
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"marker": [
|
230
|
+
"unknown",
|
231
|
+
0
|
232
|
+
],
|
233
|
+
"range": {
|
234
|
+
"end": 5,
|
235
|
+
"start": 5
|
236
|
+
}
|
237
|
+
}
|
238
|
+
]
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"counter": 2,
|
242
|
+
"operators": [
|
243
|
+
{
|
244
|
+
"marker": [
|
245
|
+
"drop",
|
246
|
+
0
|
247
|
+
],
|
248
|
+
"range": {
|
249
|
+
"end": 3,
|
250
|
+
"start": 0
|
251
|
+
}
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"marker": [
|
255
|
+
"unknown",
|
256
|
+
1
|
257
|
+
],
|
258
|
+
"range": {
|
259
|
+
"end": 5,
|
260
|
+
"start": 5
|
261
|
+
}
|
262
|
+
}
|
263
|
+
]
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"counter": 3,
|
267
|
+
"operators": [
|
268
|
+
{
|
269
|
+
"marker": [
|
270
|
+
"drop",
|
271
|
+
0
|
272
|
+
],
|
273
|
+
"range": {
|
274
|
+
"end": 3,
|
275
|
+
"start": 0
|
276
|
+
}
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"marker": [
|
280
|
+
"unknown",
|
281
|
+
1
|
282
|
+
],
|
283
|
+
"range": {
|
284
|
+
"end": 5,
|
285
|
+
"start": 5
|
286
|
+
}
|
287
|
+
}
|
288
|
+
]
|
289
|
+
}
|
290
|
+
]
|
291
|
+
}
|
204
292
|
]
|
205
293
|
}
|
206
294
|
]
|
@@ -405,6 +405,46 @@
|
|
405
405
|
}
|
406
406
|
],
|
407
407
|
"literals": {
|
408
|
+
"\"": [
|
409
|
+
{
|
410
|
+
"id": "doubleQuote",
|
411
|
+
"initial": "{\"word\":\"\\\"\",\"depth\":\"+\"}",
|
412
|
+
"word": "\""
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"(": [
|
416
|
+
{
|
417
|
+
"id": "leftParenthesis",
|
418
|
+
"initial": "{\"word\":\"(\",\"value\":\"(\",\"depth\":\"+\"}",
|
419
|
+
"word": "("
|
420
|
+
}
|
421
|
+
],
|
422
|
+
")": [
|
423
|
+
{
|
424
|
+
"id": "rightParenthesis",
|
425
|
+
"initial": "{\"word\":\")\",\"value\":\")\",\"depth\":\"-\"}",
|
426
|
+
"word": ")"
|
427
|
+
}
|
428
|
+
],
|
429
|
+
",": [
|
430
|
+
{
|
431
|
+
"id": "comma",
|
432
|
+
"initial": "{\"word\":\",\",\"value\":\",\",\"depth\":\"+\"}",
|
433
|
+
"word": ","
|
434
|
+
}
|
435
|
+
],
|
436
|
+
".": [
|
437
|
+
{
|
438
|
+
"id": "endOfSentence",
|
439
|
+
"initial": "{ value: \"endOfSentence\"}"
|
440
|
+
}
|
441
|
+
],
|
442
|
+
":": [
|
443
|
+
{
|
444
|
+
"id": "colon",
|
445
|
+
"initial": "{ value: \"colon\"}"
|
446
|
+
}
|
447
|
+
]
|
408
448
|
},
|
409
449
|
"patterns": [
|
410
450
|
{
|
@@ -424,6 +464,8 @@
|
|
424
464
|
]
|
425
465
|
},
|
426
466
|
{
|
467
|
+
"allow_partial_matches": false,
|
468
|
+
"check_spelling": true,
|
427
469
|
"defs": [
|
428
470
|
{
|
429
471
|
"id": "unknown",
|
@@ -431,6 +473,7 @@
|
|
431
473
|
"uuid": "tokenize2"
|
432
474
|
}
|
433
475
|
],
|
476
|
+
"is_unknown": true,
|
434
477
|
"pattern": [
|
435
478
|
{
|
436
479
|
"type": "alphanumeric"
|
@@ -438,13 +481,15 @@
|
|
438
481
|
{
|
439
482
|
"repeat": true
|
440
483
|
}
|
441
|
-
]
|
484
|
+
],
|
485
|
+
"scale": 0.8
|
442
486
|
}
|
443
487
|
]
|
444
488
|
}
|
445
489
|
},
|
446
490
|
"contexts": [
|
447
491
|
{
|
492
|
+
"context_index": 1,
|
448
493
|
"dead": true,
|
449
494
|
"default": true,
|
450
495
|
"isResponse": true,
|
@@ -506,6 +551,8 @@
|
|
506
551
|
"nameToUUID": {
|
507
552
|
"evaluate": "evaluate1",
|
508
553
|
"gdefaults": "gdefaults2",
|
554
|
+
"pos": "pos2",
|
555
|
+
"punctuation": "punctuation2",
|
509
556
|
"tokenize": "tokenize2"
|
510
557
|
},
|
511
558
|
"namespaced": {
|
@@ -513,12 +560,17 @@
|
|
513
560
|
},
|
514
561
|
"gdefaults2": {
|
515
562
|
},
|
563
|
+
"pos2": {
|
564
|
+
},
|
565
|
+
"punctuation2": {
|
566
|
+
},
|
516
567
|
"tokenize2": {
|
517
568
|
}
|
518
569
|
},
|
519
570
|
"processed": [
|
520
571
|
{
|
521
572
|
"context": {
|
573
|
+
"context_index": 1,
|
522
574
|
"dead": true,
|
523
575
|
"default": true,
|
524
576
|
"isResponse": true,
|
@@ -569,6 +621,53 @@
|
|
569
621
|
"query": "evaluate value1",
|
570
622
|
"responses": [
|
571
623
|
"value1 after evaluation"
|
624
|
+
],
|
625
|
+
"summaries": [
|
626
|
+
{
|
627
|
+
"length": 1,
|
628
|
+
"summaries": [
|
629
|
+
{
|
630
|
+
"counter": 1,
|
631
|
+
"operators": [
|
632
|
+
{
|
633
|
+
"marker": [
|
634
|
+
"evaluate",
|
635
|
+
0
|
636
|
+
],
|
637
|
+
"range": {
|
638
|
+
"end": 7,
|
639
|
+
"start": 0
|
640
|
+
}
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"marker": [
|
644
|
+
"value1",
|
645
|
+
0
|
646
|
+
],
|
647
|
+
"range": {
|
648
|
+
"end": 14,
|
649
|
+
"start": 9
|
650
|
+
}
|
651
|
+
}
|
652
|
+
]
|
653
|
+
},
|
654
|
+
{
|
655
|
+
"counter": 2,
|
656
|
+
"operators": [
|
657
|
+
{
|
658
|
+
"marker": [
|
659
|
+
"evaluate",
|
660
|
+
1
|
661
|
+
],
|
662
|
+
"range": {
|
663
|
+
"end": 14,
|
664
|
+
"start": 0
|
665
|
+
}
|
666
|
+
}
|
667
|
+
]
|
668
|
+
}
|
669
|
+
]
|
670
|
+
}
|
572
671
|
]
|
573
672
|
}
|
574
673
|
]
|