tpmkms_4wp 7.12.8 → 8.0.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.
Files changed (95) hide show
  1. package/common/animals.instance.json +192 -406
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -6
  5. package/common/{pipboyTemplate.instance.json → colors.instance.json} +13784 -8900
  6. package/common/colors.js +71 -0
  7. package/common/colors.test.json +4860 -0
  8. package/common/concept.js +2 -2
  9. package/common/crew.instance.json +3945 -3636
  10. package/common/crew.js +5 -3
  11. package/common/currency.js +0 -2
  12. package/common/dialogues.js +152 -20
  13. package/common/dialogues.test.json +1053 -33
  14. package/common/dimension.instance.json +750 -86
  15. package/common/dimension.js +15 -7
  16. package/common/dimension.test.json +289 -312
  17. package/common/edible.instance.json +446 -578
  18. package/common/edible.js +1 -1
  19. package/common/emotions.instance.json +67 -39
  20. package/common/emotions.js +1 -1
  21. package/common/fastfood.instance.json +1769 -2136
  22. package/common/fastfood.js +2 -2
  23. package/common/fastfood.test.json +7941 -3647
  24. package/common/formulas.instance.json +996 -0
  25. package/common/formulas.js +19 -6
  26. package/common/formulas.test.json +504 -2896
  27. package/common/gdefaults.js +2 -0
  28. package/common/help.js +7 -2
  29. package/common/help.test.json +18 -10
  30. package/common/helpers/concept.js +29 -9
  31. package/common/helpers/dialogues.js +17 -1
  32. package/common/helpers/formulas.js +0 -14
  33. package/common/helpers/meta.js +0 -1
  34. package/common/helpers/properties.js +6 -13
  35. package/common/helpers.js +5 -0
  36. package/common/javascript.js +8 -6
  37. package/common/kirk.instance.json +5 -1
  38. package/common/kirk.js +1 -1
  39. package/common/length.instance.json +417 -811
  40. package/common/length.js +1 -1
  41. package/common/math.instance.json +1938 -1
  42. package/common/math.js +17 -5
  43. package/common/meta.instance.json +1 -1
  44. package/common/meta.js +33 -10
  45. package/common/numbers.js +28 -24
  46. package/common/ordering.instance.json +98 -138
  47. package/common/ordering.js +1 -1
  48. package/common/people.instance.json +68 -121
  49. package/common/people.js +1 -1
  50. package/common/pipboy.instance.json +23411 -1076
  51. package/common/pipboy.js +31 -4
  52. package/common/pipboy.test.json +13 -9
  53. package/common/pokemon.instance.json +172 -223
  54. package/common/pokemon.js +1 -1
  55. package/common/pressure.instance.json +131 -81
  56. package/common/pressure.js +1 -1
  57. package/common/properties.instance.json +25 -49
  58. package/common/properties.js +20 -15
  59. package/common/properties.test.json +17605 -4030
  60. package/common/punctuation.js +8 -0
  61. package/common/punctuation.test.json +233 -5
  62. package/common/reports.instance.json +33 -65
  63. package/common/reports.js +9 -9
  64. package/common/scorekeeper.instance.json +1 -1
  65. package/common/scorekeeper.js +9 -7
  66. package/common/sizeable.js +7 -2
  67. package/common/spock.instance.json +5 -1
  68. package/common/spock.js +1 -1
  69. package/common/stm.js +16 -5
  70. package/common/tell.js +4 -2
  71. package/common/temperature.instance.json +142 -252
  72. package/common/temperature.js +1 -1
  73. package/common/testing.js +0 -1
  74. package/common/time.js +36 -20
  75. package/common/time.test.json +66 -44
  76. package/common/tokenize.js +47 -0
  77. package/common/tokenize.test.json +87 -0
  78. package/common/ui.instance.json +13 -1
  79. package/common/ui.js +0 -1
  80. package/common/weight.instance.json +335 -228
  81. package/common/weight.js +1 -1
  82. package/common/weight.test.json +242 -238
  83. package/main.js +6 -8
  84. package/package.json +10 -18
  85. package/common/dimensionTemplate.instance.json +0 -582
  86. package/common/dimensionTemplate.js +0 -35
  87. package/common/dimensionTemplate.test.json +0 -2
  88. package/common/formulasTemplate.instance.json +0 -483
  89. package/common/formulasTemplate.js +0 -30
  90. package/common/formulasTemplate.test.json +0 -2
  91. package/common/mathTemplate.instance.json +0 -1635
  92. package/common/mathTemplate.js +0 -32
  93. package/common/mathTemplate.test.json +0 -1422
  94. package/common/pipboyTemplate.js +0 -48
  95. package/common/pipboyTemplate.test.json +0 -2
package/common/pokemon.js CHANGED
@@ -6,7 +6,7 @@ const pokemon_instance = require('./pokemon.instance.json')
6
6
  const pluralize = require('pluralize')
7
7
 
8
8
  const template = {
9
- queries: [
9
+ configs: [
10
10
  "pokemon modifies type",
11
11
  "pokemon type is a type",
12
12
  "pikachu squirtle weedle and pidgeot are pokemon",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "pressure is a dimension",
4
4
  "pascals and atmospheres are units of pressure",
5
5
  "pascals = atmospheres * 101325",
@@ -192,6 +192,10 @@
192
192
  "convertToUnits",
193
193
  "queryable"
194
194
  ],
195
+ [
196
+ "convertToUnits",
197
+ "testingValue"
198
+ ],
195
199
  [
196
200
  "countable",
197
201
  "hierarchyAble"
@@ -240,6 +244,10 @@
240
244
  "divideByOperator",
241
245
  "mathematicalOperator"
242
246
  ],
247
+ [
248
+ "doubleQuote",
249
+ "queryable"
250
+ ],
243
251
  [
244
252
  "expression",
245
253
  "expression"
@@ -344,6 +352,10 @@
344
352
  "it",
345
353
  "toAble"
346
354
  ],
355
+ [
356
+ "length",
357
+ "dimension"
358
+ ],
347
359
  [
348
360
  "lowest",
349
361
  "condition"
@@ -572,6 +584,10 @@
572
584
  "reason",
573
585
  "theAble"
574
586
  ],
587
+ [
588
+ "testingValue",
589
+ "testingValue"
590
+ ],
575
591
  [
576
592
  "that",
577
593
  "thisitthat"
@@ -696,9 +712,17 @@
696
712
  "whose",
697
713
  "object"
698
714
  ],
715
+ [
716
+ "x",
717
+ "number"
718
+ ],
699
719
  [
700
720
  "xfx",
701
721
  "queryable"
722
+ ],
723
+ [
724
+ "y",
725
+ "number"
702
726
  ]
703
727
  ],
704
728
  "metadata": {
@@ -807,15 +831,15 @@
807
831
  },
808
832
  "one": {
809
833
  "number": "one",
834
+ "value": "pressure",
835
+ "unknown": true,
836
+ "text": "pressure",
810
837
  "marker": "unknown",
838
+ "word": "pressure",
811
839
  "range": {
812
840
  "start": 0,
813
841
  "end": 22
814
842
  },
815
- "word": "pressure",
816
- "text": "pressure",
817
- "value": "pressure",
818
- "unknown": true,
819
843
  "dead": true,
820
844
  "types": [
821
845
  "unknown"
@@ -1128,6 +1152,10 @@
1128
1152
  "convertToUnits",
1129
1153
  "queryable"
1130
1154
  ],
1155
+ [
1156
+ "convertToUnits",
1157
+ "testingValue"
1158
+ ],
1131
1159
  [
1132
1160
  "countable",
1133
1161
  "hierarchyAble"
@@ -1176,6 +1204,10 @@
1176
1204
  "divideByOperator",
1177
1205
  "mathematicalOperator"
1178
1206
  ],
1207
+ [
1208
+ "doubleQuote",
1209
+ "queryable"
1210
+ ],
1179
1211
  [
1180
1212
  "expression",
1181
1213
  "expression"
@@ -1280,6 +1312,10 @@
1280
1312
  "it",
1281
1313
  "toAble"
1282
1314
  ],
1315
+ [
1316
+ "length",
1317
+ "dimension"
1318
+ ],
1283
1319
  [
1284
1320
  "lowest",
1285
1321
  "condition"
@@ -1540,6 +1576,10 @@
1540
1576
  "reason",
1541
1577
  "theAble"
1542
1578
  ],
1579
+ [
1580
+ "testingValue",
1581
+ "testingValue"
1582
+ ],
1543
1583
  [
1544
1584
  "that",
1545
1585
  "thisitthat"
@@ -1664,9 +1704,17 @@
1664
1704
  "whose",
1665
1705
  "object"
1666
1706
  ],
1707
+ [
1708
+ "x",
1709
+ "number"
1710
+ ],
1667
1711
  [
1668
1712
  "xfx",
1669
1713
  "queryable"
1714
+ ],
1715
+ [
1716
+ "y",
1717
+ "number"
1670
1718
  ]
1671
1719
  ],
1672
1720
  "metadata": {
@@ -1770,35 +1818,6 @@
1770
1818
  ],
1771
1819
  "counter": 3
1772
1820
  },
1773
- {
1774
- "op": [
1775
- "list",
1776
- 1
1777
- ],
1778
- "ops": [
1779
- [
1780
- "list",
1781
- 1
1782
- ],
1783
- [
1784
- "is",
1785
- 0
1786
- ],
1787
- [
1788
- "unit",
1789
- 0
1790
- ],
1791
- [
1792
- "propertyOf",
1793
- 0
1794
- ],
1795
- [
1796
- "pressure",
1797
- 0
1798
- ]
1799
- ],
1800
- "counter": 4
1801
- },
1802
1821
  {
1803
1822
  "op": [
1804
1823
  "unit",
@@ -1822,7 +1841,7 @@
1822
1841
  0
1823
1842
  ]
1824
1843
  ],
1825
- "counter": 5
1844
+ "counter": 4
1826
1845
  },
1827
1846
  {
1828
1847
  "op": [
@@ -1843,7 +1862,7 @@
1843
1862
  0
1844
1863
  ]
1845
1864
  ],
1846
- "counter": 6
1865
+ "counter": 5
1847
1866
  },
1848
1867
  {
1849
1868
  "op": [
@@ -1860,7 +1879,7 @@
1860
1879
  0
1861
1880
  ]
1862
1881
  ],
1863
- "counter": 7
1882
+ "counter": 6
1864
1883
  },
1865
1884
  {
1866
1885
  "op": [
@@ -1877,7 +1896,7 @@
1877
1896
  1
1878
1897
  ]
1879
1898
  ],
1880
- "counter": 8
1899
+ "counter": 7
1881
1900
  },
1882
1901
  {
1883
1902
  "op": [
@@ -1890,7 +1909,7 @@
1890
1909
  0
1891
1910
  ]
1892
1911
  ],
1893
- "counter": 9
1912
+ "counter": 8
1894
1913
  },
1895
1914
  {
1896
1915
  "op": [
@@ -1903,7 +1922,7 @@
1903
1922
  1
1904
1923
  ]
1905
1924
  ],
1906
- "counter": 10
1925
+ "counter": 9
1907
1926
  }
1908
1927
  ]
1909
1928
  },
@@ -1921,44 +1940,47 @@
1921
1940
  "one": {
1922
1941
  "number": "many",
1923
1942
  "marker": "list",
1943
+ "default": true,
1944
+ "word": "and",
1945
+ "text": "pascals and atmospheres",
1946
+ "range": {
1947
+ "start": 0,
1948
+ "end": 44
1949
+ },
1950
+ "types": [
1951
+ "list",
1952
+ "unknown"
1953
+ ],
1924
1954
  "listable": true,
1955
+ "isList": true,
1925
1956
  "value": [
1926
1957
  {
1958
+ "value": "pascals",
1959
+ "unknown": true,
1960
+ "text": "pascals",
1927
1961
  "marker": "unknown",
1962
+ "word": "pascals",
1928
1963
  "range": {
1929
1964
  "start": 0,
1930
1965
  "end": 6
1931
1966
  },
1932
- "word": "pascals",
1933
- "text": "pascals",
1934
- "value": "pascals",
1935
- "unknown": true,
1936
1967
  "dead": true,
1937
- "level": 2
1968
+ "level": 1
1938
1969
  },
1939
1970
  {
1971
+ "value": "atmospheres",
1972
+ "unknown": true,
1973
+ "text": "atmospheres",
1940
1974
  "marker": "unknown",
1975
+ "word": "atmospheres",
1941
1976
  "range": {
1942
1977
  "start": 12,
1943
1978
  "end": 22
1944
1979
  },
1945
- "word": "atmospheres",
1946
- "text": "atmospheres",
1947
- "value": "atmospheres",
1948
- "unknown": true,
1949
1980
  "dead": true,
1950
- "level": 2
1981
+ "level": 1
1951
1982
  }
1952
1983
  ],
1953
- "range": {
1954
- "start": 0,
1955
- "end": 44
1956
- },
1957
- "types": [
1958
- "list",
1959
- "unknown"
1960
- ],
1961
- "text": "pascals and atmospheres are units of pressure",
1962
1984
  "level": 1
1963
1985
  },
1964
1986
  "two": {
@@ -2207,16 +2229,6 @@
2207
2229
  "propertyOf",
2208
2230
  1
2209
2231
  ]
2210
- ],
2211
- [
2212
- [
2213
- "pressure",
2214
- 0
2215
- ],
2216
- [
2217
- "unknown",
2218
- 0
2219
- ]
2220
2232
  ]
2221
2233
  ],
2222
2234
  "learned_contextual_priorities": [],
@@ -2443,6 +2455,10 @@
2443
2455
  "convertToUnits",
2444
2456
  "queryable"
2445
2457
  ],
2458
+ [
2459
+ "convertToUnits",
2460
+ "testingValue"
2461
+ ],
2446
2462
  [
2447
2463
  "countable",
2448
2464
  "hierarchyAble"
@@ -2491,6 +2507,10 @@
2491
2507
  "divideByOperator",
2492
2508
  "mathematicalOperator"
2493
2509
  ],
2510
+ [
2511
+ "doubleQuote",
2512
+ "queryable"
2513
+ ],
2494
2514
  [
2495
2515
  "expression",
2496
2516
  "expression"
@@ -2595,6 +2615,10 @@
2595
2615
  "it",
2596
2616
  "toAble"
2597
2617
  ],
2618
+ [
2619
+ "length",
2620
+ "dimension"
2621
+ ],
2598
2622
  [
2599
2623
  "lowest",
2600
2624
  "condition"
@@ -2887,6 +2911,10 @@
2887
2911
  "reason",
2888
2912
  "theAble"
2889
2913
  ],
2914
+ [
2915
+ "testingValue",
2916
+ "testingValue"
2917
+ ],
2890
2918
  [
2891
2919
  "that",
2892
2920
  "thisitthat"
@@ -3011,9 +3039,17 @@
3011
3039
  "whose",
3012
3040
  "object"
3013
3041
  ],
3042
+ [
3043
+ "x",
3044
+ "number"
3045
+ ],
3014
3046
  [
3015
3047
  "xfx",
3016
3048
  "queryable"
3049
+ ],
3050
+ [
3051
+ "y",
3052
+ "number"
3017
3053
  ]
3018
3054
  ],
3019
3055
  "metadata": {
@@ -3128,7 +3164,7 @@
3128
3164
  "trace": "undefined",
3129
3165
  "contexts": [
3130
3166
  {
3131
- "value": "=",
3167
+ "value": "equals",
3132
3168
  "text": "pascals = atmospheres * 101325",
3133
3169
  "marker": "equals",
3134
3170
  "word": "=",
@@ -3514,6 +3550,10 @@
3514
3550
  "convertToUnits",
3515
3551
  "queryable"
3516
3552
  ],
3553
+ [
3554
+ "convertToUnits",
3555
+ "testingValue"
3556
+ ],
3517
3557
  [
3518
3558
  "countable",
3519
3559
  "hierarchyAble"
@@ -3562,6 +3602,10 @@
3562
3602
  "divideByOperator",
3563
3603
  "mathematicalOperator"
3564
3604
  ],
3605
+ [
3606
+ "doubleQuote",
3607
+ "queryable"
3608
+ ],
3565
3609
  [
3566
3610
  "expression",
3567
3611
  "expression"
@@ -3666,6 +3710,10 @@
3666
3710
  "it",
3667
3711
  "toAble"
3668
3712
  ],
3713
+ [
3714
+ "length",
3715
+ "dimension"
3716
+ ],
3669
3717
  [
3670
3718
  "lowest",
3671
3719
  "condition"
@@ -3958,6 +4006,10 @@
3958
4006
  "reason",
3959
4007
  "theAble"
3960
4008
  ],
4009
+ [
4010
+ "testingValue",
4011
+ "testingValue"
4012
+ ],
3961
4013
  [
3962
4014
  "that",
3963
4015
  "thisitthat"
@@ -4082,9 +4134,17 @@
4082
4134
  "whose",
4083
4135
  "object"
4084
4136
  ],
4137
+ [
4138
+ "x",
4139
+ "number"
4140
+ ],
4085
4141
  [
4086
4142
  "xfx",
4087
4143
  "queryable"
4144
+ ],
4145
+ [
4146
+ "y",
4147
+ "number"
4088
4148
  ]
4089
4149
  ],
4090
4150
  "metadata": {
@@ -4199,7 +4259,7 @@
4199
4259
  "trace": "undefined",
4200
4260
  "contexts": [
4201
4261
  {
4202
- "value": "=",
4262
+ "value": "equals",
4203
4263
  "text": "atmospheres = pascals / 101325",
4204
4264
  "marker": "equals",
4205
4265
  "word": "=",
@@ -4718,16 +4778,6 @@
4718
4778
  "unknown",
4719
4779
  1
4720
4780
  ]
4721
- ],
4722
- [
4723
- [
4724
- "pressure",
4725
- 0
4726
- ],
4727
- [
4728
- "unknown",
4729
- 0
4730
- ]
4731
4781
  ]
4732
4782
  ],
4733
4783
  "learned_contextual_priorities": []
@@ -5,7 +5,7 @@ const pressure_tests = require('./pressure.test.json')
5
5
  const pressure_instance = require('./pressure.instance.json')
6
6
 
7
7
  const template = {
8
- "queries": [
8
+ configs: [
9
9
  "pressure is a dimension",
10
10
  "pascals and atmospheres are units of pressure",
11
11
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [],
2
+ "configs": [],
3
3
  "resultss": [],
4
4
  "fragments": [
5
5
  {
@@ -32,6 +32,10 @@
32
32
  "concept",
33
33
  "theAble"
34
34
  ],
35
+ [
36
+ "doubleQuote",
37
+ "queryable"
38
+ ],
35
39
  [
36
40
  "have",
37
41
  "canBeDoQuestion"
@@ -406,15 +410,15 @@
406
410
  },
407
411
  "one": {
408
412
  "number": "one",
413
+ "value": "property1",
414
+ "unknown": true,
415
+ "text": "the property1 of object1",
409
416
  "marker": "property",
417
+ "word": "property1",
410
418
  "range": {
411
419
  "start": 0,
412
420
  "end": 33
413
421
  },
414
- "word": "property1",
415
- "text": "the property1 of object1",
416
- "value": "property1",
417
- "unknown": true,
418
422
  "dead": true,
419
423
  "types": [
420
424
  "property",
@@ -429,15 +433,15 @@
429
433
  "determiner"
430
434
  ],
431
435
  "object": {
436
+ "value": "object1",
437
+ "unknown": true,
438
+ "text": "object1",
432
439
  "marker": "unknown",
440
+ "word": "object1",
433
441
  "range": {
434
442
  "start": 17,
435
443
  "end": 23
436
444
  },
437
- "word": "object1",
438
- "text": "object1",
439
- "value": "object1",
440
- "unknown": true,
441
445
  "dead": true,
442
446
  "types": [
443
447
  "unknown"
@@ -446,15 +450,15 @@
446
450
  },
447
451
  "objects": [
448
452
  {
453
+ "value": "property1",
454
+ "unknown": true,
455
+ "text": "the property1",
449
456
  "marker": "property",
457
+ "word": "property1",
450
458
  "range": {
451
459
  "start": 0,
452
460
  "end": 12
453
461
  },
454
- "word": "property1",
455
- "text": "the property1",
456
- "value": "property1",
457
- "unknown": true,
458
462
  "dead": true,
459
463
  "types": [
460
464
  "property",
@@ -471,15 +475,15 @@
471
475
  "level": 1
472
476
  },
473
477
  {
478
+ "value": "object1",
479
+ "unknown": true,
480
+ "text": "object1",
474
481
  "marker": "unknown",
482
+ "word": "object1",
475
483
  "range": {
476
484
  "start": 17,
477
485
  "end": 23
478
486
  },
479
- "word": "object1",
480
- "text": "object1",
481
- "value": "object1",
482
- "unknown": true,
483
487
  "dead": true,
484
488
  "types": [
485
489
  "unknown"
@@ -490,15 +494,15 @@
490
494
  "level": 1
491
495
  },
492
496
  "two": {
497
+ "value": "value1",
498
+ "unknown": true,
499
+ "text": "value1",
493
500
  "marker": "unknown",
501
+ "word": "value1",
494
502
  "range": {
495
503
  "start": 28,
496
504
  "end": 33
497
505
  },
498
- "word": "value1",
499
- "text": "value1",
500
- "value": "value1",
501
- "unknown": true,
502
506
  "dead": true,
503
507
  "types": [
504
508
  "unknown"
@@ -611,20 +615,6 @@
611
615
  1
612
616
  ]
613
617
  ],
614
- [
615
- [
616
- "is",
617
- 0
618
- ],
619
- [
620
- "the",
621
- 0
622
- ],
623
- [
624
- "unknown",
625
- 0
626
- ]
627
- ],
628
618
  [
629
619
  [
630
620
  "is",
@@ -732,20 +722,6 @@
732
722
  1
733
723
  ]
734
724
  ],
735
- [
736
- [
737
- "is",
738
- 0
739
- ],
740
- [
741
- "the",
742
- 0
743
- ],
744
- [
745
- "unknown",
746
- 0
747
- ]
748
- ],
749
725
  [
750
726
  [
751
727
  "is",