tpmkms_4wp 8.9.1 → 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.
Files changed (137) hide show
  1. package/common/animals.instance.json +6716 -775
  2. package/common/articles.js +22 -9
  3. package/common/articles.test.json +640 -2
  4. package/common/asking.js +3 -3
  5. package/common/asking.test.json +1599 -140
  6. package/common/avatar.js +9 -1
  7. package/common/avatar.test.json +6008 -2749
  8. package/common/characters.js +1 -1
  9. package/common/characters.test.json +1371 -95
  10. package/common/colors.instance.json +22813 -1432
  11. package/common/colors.test.json +704 -136
  12. package/common/comparable.instance.json +1337 -159
  13. package/common/comparable.js +13 -13
  14. package/common/comparable.test.json +3239 -558
  15. package/common/concept.js +11 -3
  16. package/common/concept.test.json +2853 -694
  17. package/common/conjunction.js +13 -1
  18. package/common/conjunction.test.json +229 -1
  19. package/common/countable.js +3 -9
  20. package/common/countable.test.json +1310 -638
  21. package/common/crew.instance.json +19500 -2069
  22. package/common/crew.js +19 -0
  23. package/common/crew.test.json +10218 -2145
  24. package/common/currency.js +2 -3
  25. package/common/currency.test.json +948 -64
  26. package/common/dialogues.js +111 -33
  27. package/common/dialogues.test.json +6611 -1905
  28. package/common/dimension.instance.json +760 -84
  29. package/common/dimension.js +18 -4
  30. package/common/dimension.test.json +23680 -11550
  31. package/common/edible.instance.json +21870 -2699
  32. package/common/edible.js +13 -0
  33. package/common/edible.test.json +1580 -304
  34. package/common/emotions.instance.json +2278 -247
  35. package/common/emotions.js +10 -2
  36. package/common/emotions.test.json +1134 -107
  37. package/common/errors.js +1 -1
  38. package/common/errors.test.json +88 -0
  39. package/common/evaluate.test.json +100 -1
  40. package/common/events.js +1 -1
  41. package/common/events.test.json +2197 -242
  42. package/common/fastfood.instance.json +82907 -10367
  43. package/common/fastfood.js +99 -12
  44. package/common/fastfood.test.json +65486 -21430
  45. package/common/formulas.instance.json +325 -58
  46. package/common/formulas.js +1 -1
  47. package/common/formulas.test.json +13202 -6757
  48. package/common/gdefaults.js +35 -17
  49. package/common/help.js +4 -4
  50. package/common/help.test.json +292 -4
  51. package/common/helpers/concept.js +6 -5
  52. package/common/helpers/conjunction.js +1 -1
  53. package/common/helpers/formulas.js +4 -4
  54. package/common/helpers/frankenhash.js +4 -4
  55. package/common/helpers/meta.js +4 -4
  56. package/common/helpers/ordering.js +2 -2
  57. package/common/helpers/properties.js +18 -48
  58. package/common/helpers.js +17 -1
  59. package/common/hierarchy.js +12 -3
  60. package/common/hierarchy.test.json +53813 -17340
  61. package/common/javascript.js +1 -1
  62. package/common/javascript.test.json +214 -11
  63. package/common/kirk.instance.json +322 -7
  64. package/common/kirk.test.json +1123 -254
  65. package/common/length.instance.json +9890 -797
  66. package/common/length.test.json +12055 -8184
  67. package/common/listener.test.json +39 -1
  68. package/common/math.instance.json +294 -57
  69. package/common/math.js +1 -1
  70. package/common/math.test.json +38557 -17754
  71. package/common/meta.instance.json +1 -0
  72. package/common/meta.js +13 -13
  73. package/common/meta.test.json +2770 -275
  74. package/common/nameable.js +1 -1
  75. package/common/nameable.test.json +5150 -1475
  76. package/common/negation.js +1 -1
  77. package/common/negation.test.json +146 -8
  78. package/common/numbers.js +1 -1
  79. package/common/numbers.test.json +234 -0
  80. package/common/ordering.instance.json +3861 -508
  81. package/common/ordering.test.json +2680 -1283
  82. package/common/ordinals.js +15 -3
  83. package/common/ordinals.test.json +627 -3
  84. package/common/people.instance.json +4041 -652
  85. package/common/people.js +1 -15
  86. package/common/people.test.json +27157 -13664
  87. package/common/percentages.js +1 -2
  88. package/common/percentages.test.json +313 -0
  89. package/common/pipboy.instance.json +13835 -1684
  90. package/common/pipboy.js +31 -49
  91. package/common/pipboy.test.json +19335 -6019
  92. package/common/pokemon.instance.json +6163 -690
  93. package/common/pokemon.test.json +1826 -389
  94. package/common/pos.js +27 -11
  95. package/common/pressure.instance.json +2635 -291
  96. package/common/pressure.test.json +2997 -1629
  97. package/common/properties.instance.json +907 -84
  98. package/common/properties.js +19 -28
  99. package/common/properties.test.json +46801 -14612
  100. package/common/punctuation.js +1 -1
  101. package/common/punctuation.test.json +327 -0
  102. package/common/reports.instance.json +997 -118
  103. package/common/reports.js +16 -9
  104. package/common/reports.test.json +16653 -2453
  105. package/common/scorekeeper.instance.json +1 -0
  106. package/common/scorekeeper.js +22 -12
  107. package/common/scorekeeper.test.json +42546 -15408
  108. package/common/sdefaults.js +2 -2
  109. package/common/sizeable.js +2 -2
  110. package/common/sizeable.test.json +1170 -215
  111. package/common/spock.instance.json +322 -7
  112. package/common/spock.test.json +1123 -254
  113. package/common/stgame.js +0 -1
  114. package/common/stgame.test.json +1371 -91
  115. package/common/stm.js +6 -6
  116. package/common/stm.test.json +842 -9
  117. package/common/tell.js +1 -1
  118. package/common/tell.test.json +224 -1
  119. package/common/temperature.instance.json +5980 -285
  120. package/common/temperature.test.json +2610 -1272
  121. package/common/tester.js +1 -1
  122. package/common/testing.test.json +84 -1
  123. package/common/time.test.json +5345 -272
  124. package/common/tokenize.js +3 -2
  125. package/common/tokenize.test.json +39 -0
  126. package/common/ui.instance.json +144 -26
  127. package/common/ui.js +0 -16
  128. package/common/ui.test.json +4620 -140
  129. package/common/weight.instance.json +10025 -771
  130. package/common/weight.js +10 -0
  131. package/common/weight.test.json +18658 -12176
  132. package/common/wp.instance.json +27555 -2630
  133. package/common/wp.js +240 -41
  134. package/common/wp.test.json +147553 -2727
  135. package/common/yesno.js +1 -1
  136. package/common/yesno.test.json +168 -4
  137. package/package.json +11 -6
package/common/errors.js CHANGED
@@ -3,7 +3,7 @@ const { defaultContextCheck } = require('./helpers')
3
3
  const gdefaults = require("./gdefaults")
4
4
  const tests = require('./errors.test.json')
5
5
 
6
- let config = {
6
+ const config = {
7
7
  name: 'errors',
8
8
  operators: [
9
9
  { pattern: "([drop] ([dropable]))", development: true },
@@ -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
  ]
package/common/events.js CHANGED
@@ -19,7 +19,7 @@ class API {
19
19
  }
20
20
  }
21
21
 
22
- let config = {
22
+ const config = {
23
23
  name: 'events',
24
24
  operators: [
25
25
  "([after] ([event]) ([action]))",