tpmkms 7.12.8 → 8.0.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 (75) hide show
  1. package/common/animals.instance.json +89 -293
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +12 -5
  5. package/common/crew.instance.json +289 -577
  6. package/common/crew.js +1 -1
  7. package/common/currency.js +0 -2
  8. package/common/dialogues.js +122 -17
  9. package/common/dimension.instance.json +747 -73
  10. package/common/dimension.js +15 -7
  11. package/common/edible.instance.json +243 -435
  12. package/common/edible.js +1 -1
  13. package/common/emotions.instance.json +29 -65
  14. package/common/emotions.js +1 -1
  15. package/common/fastfood.instance.json +1080 -2072
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +992 -0
  18. package/common/formulas.js +19 -6
  19. package/common/formulas.test.json +1187 -3651
  20. package/common/gdefaults.js +2 -0
  21. package/common/help.js +7 -2
  22. package/common/help.test.json +9 -5
  23. package/common/helpers.js +5 -0
  24. package/common/javascript.js +8 -6
  25. package/common/kirk.instance.json +1 -1
  26. package/common/kirk.js +1 -1
  27. package/common/length.instance.json +316 -740
  28. package/common/length.js +1 -1
  29. package/common/math.instance.json +1959 -1
  30. package/common/math.js +17 -5
  31. package/common/meta.instance.json +1 -1
  32. package/common/meta.js +35 -10
  33. package/common/numbers.js +28 -24
  34. package/common/ordering.instance.json +37 -153
  35. package/common/ordering.js +1 -1
  36. package/common/people.instance.json +50 -78
  37. package/common/people.js +1 -1
  38. package/common/pipboy.instance.json +23431 -1082
  39. package/common/pipboy.js +31 -4
  40. package/common/pipboy.test.json +13 -9
  41. package/common/pokemon.instance.json +41 -141
  42. package/common/pokemon.js +1 -1
  43. package/common/pressure.instance.json +93 -33
  44. package/common/pressure.js +1 -1
  45. package/common/properties.instance.json +21 -49
  46. package/common/properties.js +13 -8
  47. package/common/reports.instance.json +23 -63
  48. package/common/reports.js +9 -7
  49. package/common/scorekeeper.instance.json +1 -1
  50. package/common/scorekeeper.js +9 -7
  51. package/common/spock.instance.json +1 -1
  52. package/common/spock.js +1 -1
  53. package/common/tell.js +4 -2
  54. package/common/temperature.instance.json +97 -193
  55. package/common/temperature.js +1 -1
  56. package/common/time.js +36 -20
  57. package/common/time.test.json +66 -44
  58. package/common/tokenize.js +46 -0
  59. package/common/ui.instance.json +9 -1
  60. package/common/weight.instance.json +273 -217
  61. package/common/weight.js +1 -1
  62. package/main.js +2 -8
  63. package/package.json +6 -18
  64. package/common/dimensionTemplate.instance.json +0 -582
  65. package/common/dimensionTemplate.js +0 -35
  66. package/common/formulasTemplate.instance.json +0 -483
  67. package/common/formulasTemplate.js +0 -30
  68. package/common/formulasTemplate.test.json +0 -2
  69. package/common/mathTemplate.instance.json +0 -1635
  70. package/common/mathTemplate.js +0 -32
  71. package/common/mathTemplate.test.json +0 -1422
  72. package/common/pipboyTemplate.instance.json +0 -17420
  73. package/common/pipboyTemplate.js +0 -48
  74. package/common/pipboyTemplate.test.json +0 -2
  75. /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
package/common/edible.js CHANGED
@@ -20,7 +20,7 @@ const edible_instance = require('./edible.instance.json')
20
20
  // the value of x is 20 | fruit is a kind of food
21
21
 
22
22
  const template ={
23
- "queries": [
23
+ configs: [
24
24
  "food and drinks are edible",
25
25
  "chicken modifies strips",
26
26
  "chicken modifies nugget",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "sentientBeing1 feels emotion1 means the emotion of sentientBeing1 is emotion1"
4
4
  ],
5
5
  "resultss": [
@@ -651,15 +651,15 @@
651
651
  "text": "sentientbeing1 feels emotion1"
652
652
  },
653
653
  "sentientBeing": {
654
+ "value": "sentientbeing1",
655
+ "unknown": true,
656
+ "text": "sentientbeing1",
654
657
  "marker": "sentientBeing",
658
+ "word": "sentientbeing1",
655
659
  "range": {
656
660
  "start": 0,
657
661
  "end": 13
658
662
  },
659
- "word": "sentientbeing1",
660
- "text": "sentientbeing1",
661
- "value": "sentientbeing1",
662
- "unknown": true,
663
663
  "dead": true,
664
664
  "types": [
665
665
  "sentientBeing"
@@ -667,15 +667,15 @@
667
667
  "level": 1
668
668
  },
669
669
  "emotion": {
670
+ "value": "emotion1",
671
+ "unknown": true,
672
+ "text": "emotion1",
670
673
  "marker": "emotion",
674
+ "word": "emotion1",
671
675
  "range": {
672
676
  "start": 21,
673
677
  "end": 28
674
678
  },
675
- "word": "emotion1",
676
- "text": "emotion1",
677
- "value": "emotion1",
678
- "unknown": true,
679
679
  "dead": true,
680
680
  "types": [
681
681
  "emotion"
@@ -704,15 +704,15 @@
704
704
  },
705
705
  "one": {
706
706
  "number": "one",
707
+ "value": "emotion",
708
+ "unknown": true,
709
+ "text": "the emotion of sentientbeing1",
707
710
  "marker": "property",
711
+ "word": "emotion",
708
712
  "range": {
709
713
  "start": 36,
710
714
  "end": 76
711
715
  },
712
- "word": "emotion",
713
- "text": "the emotion of sentientbeing1",
714
- "value": "emotion",
715
- "unknown": true,
716
716
  "dead": true,
717
717
  "types": [
718
718
  "property",
@@ -727,15 +727,15 @@
727
727
  "determiner"
728
728
  ],
729
729
  "object": {
730
+ "value": "sentientbeing1",
731
+ "unknown": true,
732
+ "text": "sentientbeing1",
730
733
  "marker": "unknown",
734
+ "word": "sentientbeing1",
731
735
  "range": {
732
736
  "start": 51,
733
737
  "end": 64
734
738
  },
735
- "word": "sentientbeing1",
736
- "text": "sentientbeing1",
737
- "value": "sentientbeing1",
738
- "unknown": true,
739
739
  "dead": true,
740
740
  "types": [
741
741
  "unknown"
@@ -744,15 +744,15 @@
744
744
  },
745
745
  "objects": [
746
746
  {
747
+ "value": "emotion",
748
+ "unknown": true,
749
+ "text": "the emotion",
747
750
  "marker": "property",
751
+ "word": "emotion",
748
752
  "range": {
749
753
  "start": 36,
750
754
  "end": 46
751
755
  },
752
- "word": "emotion",
753
- "text": "the emotion",
754
- "value": "emotion",
755
- "unknown": true,
756
756
  "dead": true,
757
757
  "types": [
758
758
  "property",
@@ -769,15 +769,15 @@
769
769
  "level": 1
770
770
  },
771
771
  {
772
+ "value": "sentientbeing1",
773
+ "unknown": true,
774
+ "text": "sentientbeing1",
772
775
  "marker": "unknown",
776
+ "word": "sentientbeing1",
773
777
  "range": {
774
778
  "start": 51,
775
779
  "end": 64
776
780
  },
777
- "word": "sentientbeing1",
778
- "text": "sentientbeing1",
779
- "value": "sentientbeing1",
780
- "unknown": true,
781
781
  "dead": true,
782
782
  "types": [
783
783
  "unknown"
@@ -788,15 +788,15 @@
788
788
  "level": 1
789
789
  },
790
790
  "two": {
791
+ "value": "emotion1",
792
+ "unknown": true,
793
+ "text": "emotion1",
791
794
  "marker": "unknown",
795
+ "word": "emotion1",
792
796
  "range": {
793
797
  "start": 69,
794
798
  "end": 76
795
799
  },
796
- "word": "emotion1",
797
- "text": "emotion1",
798
- "value": "emotion1",
799
- "unknown": true,
800
800
  "dead": true,
801
801
  "types": [
802
802
  "unknown"
@@ -987,24 +987,6 @@
987
987
  1
988
988
  ]
989
989
  ],
990
- [
991
- [
992
- "is",
993
- 0
994
- ],
995
- [
996
- "means",
997
- 0
998
- ],
999
- [
1000
- "the",
1001
- 0
1002
- ],
1003
- [
1004
- "unknown",
1005
- 0
1006
- ]
1007
- ],
1008
990
  [
1009
991
  [
1010
992
  "is",
@@ -1202,24 +1184,6 @@
1202
1184
  1
1203
1185
  ]
1204
1186
  ],
1205
- [
1206
- [
1207
- "is",
1208
- 0
1209
- ],
1210
- [
1211
- "means",
1212
- 0
1213
- ],
1214
- [
1215
- "the",
1216
- 0
1217
- ],
1218
- [
1219
- "unknown",
1220
- 0
1221
- ]
1222
- ],
1223
1187
  [
1224
1188
  [
1225
1189
  "is",
@@ -14,7 +14,7 @@ boredom/bored
14
14
  */
15
15
 
16
16
  const template ={
17
- "queries": [
17
+ configs: [
18
18
  // "neutral anger happiness and boredom are concepts",
19
19
  // "neutral anger happiness and boredom are emotions",
20
20
  // TODO add an invert for mapping generator to "sb feels e"