tpmkms 7.12.7 → 7.12.8-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 (36) hide show
  1. package/common/animals.instance.json +0 -44
  2. package/common/dialogues.js +106 -3
  3. package/common/dimension.instance.json +736 -62
  4. package/common/dimension.js +15 -7
  5. package/common/edible.instance.json +2 -190
  6. package/common/fastfood.instance.json +886 -922
  7. package/common/formulas.instance.json +992 -0
  8. package/common/formulas.js +18 -5
  9. package/common/formulas.test.json +1187 -3651
  10. package/common/length.instance.json +261 -505
  11. package/common/math.instance.json +1979 -1
  12. package/common/math.js +17 -5
  13. package/common/ordering.instance.json +0 -52
  14. package/common/pipboy.instance.json +23454 -1101
  15. package/common/pipboy.js +31 -4
  16. package/common/pipboy.test.json +13 -9
  17. package/common/pokemon.instance.json +0 -44
  18. package/common/pressure.instance.json +80 -0
  19. package/common/reports.instance.json +17 -1
  20. package/common/temperature.instance.json +80 -60
  21. package/common/ui.instance.json +8 -0
  22. package/common/weight.instance.json +272 -48
  23. package/main.js +0 -8
  24. package/package.json +4 -20
  25. package/common/dimensionTemplate.instance.json +0 -582
  26. package/common/dimensionTemplate.js +0 -35
  27. package/common/dimensionTemplate.test.json +0 -2
  28. package/common/formulasTemplate.instance.json +0 -483
  29. package/common/formulasTemplate.js +0 -30
  30. package/common/formulasTemplate.test.json +0 -2
  31. package/common/mathTemplate.instance.json +0 -1635
  32. package/common/mathTemplate.js +0 -32
  33. package/common/mathTemplate.test.json +0 -1422
  34. package/common/pipboyTemplate.instance.json +0 -17420
  35. package/common/pipboyTemplate.js +0 -48
  36. package/common/pipboyTemplate.test.json +0 -2
package/common/math.js CHANGED
@@ -3,8 +3,11 @@ const { defaultContextCheck } = require('./helpers')
3
3
  const dialogues = require('./dialogues')
4
4
  const numbers = require('./numbers')
5
5
  const punctuation = require('./punctuation')
6
- const mathTemplate = require('./mathTemplate')
7
- const math_tests = require('./math.test.json')
6
+ const countable = require('./countable')
7
+ const comparable = require('./comparable')
8
+ const tests = require('./math.test.json')
9
+ const instance = require('./math.instance.json')
10
+
8
11
 
9
12
  // TODO 10 dollars times 20
10
13
  /*
@@ -102,9 +105,17 @@ let configStruct = {
102
105
  ],
103
106
  };
104
107
 
108
+ const template = {
109
+ queries: [
110
+ "mathematical modifies operator",
111
+ "* + / and - are mathematical operators",
112
+ configStruct,
113
+ ]
114
+ }
115
+
105
116
  const createConfig = () => {
106
- const config = new Config(configStruct, module)
107
- config.add(numbers(), dialogues(), punctuation(), mathTemplate());
117
+ const config = new Config({ name: 'math' }, module)
118
+ config.add(numbers(), dialogues(), punctuation(), countable(), comparable())
108
119
  return config
109
120
  }
110
121
 
@@ -112,9 +123,10 @@ knowledgeModule( {
112
123
  module,
113
124
  createConfig,
114
125
  description: 'talking about math',
126
+ template: { template, instance },
115
127
  test: {
116
128
  name: './math.test.json',
117
- contents: math_tests,
129
+ contents: tests,
118
130
  checks: {
119
131
  context: defaultContextCheck,
120
132
  },
@@ -639,32 +639,6 @@
639
639
  0
640
640
  ]
641
641
  ],
642
- [
643
- [
644
- "between",
645
- 0
646
- ],
647
- [
648
- "is",
649
- 0
650
- ],
651
- [
652
- "list",
653
- 0
654
- ],
655
- [
656
- "unknown",
657
- 0
658
- ],
659
- [
660
- "unknown",
661
- 1
662
- ],
663
- [
664
- "xfx",
665
- 0
666
- ]
667
- ],
668
642
  [
669
643
  [
670
644
  "between",
@@ -2130,32 +2104,6 @@
2130
2104
  0
2131
2105
  ]
2132
2106
  ],
2133
- [
2134
- [
2135
- "between",
2136
- 0
2137
- ],
2138
- [
2139
- "is",
2140
- 0
2141
- ],
2142
- [
2143
- "list",
2144
- 0
2145
- ],
2146
- [
2147
- "unknown",
2148
- 0
2149
- ],
2150
- [
2151
- "unknown",
2152
- 1
2153
- ],
2154
- [
2155
- "xfx",
2156
- 0
2157
- ]
2158
- ],
2159
2107
  [
2160
2108
  [
2161
2109
  "between",