tpmkms_4wp 7.12.8 → 8.0.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +89 -293
- package/common/animals.js +1 -1
- package/common/avatar.js +7 -5
- package/common/characters.js +12 -5
- package/common/crew.instance.json +289 -577
- package/common/crew.js +1 -1
- package/common/currency.js +0 -2
- package/common/dialogues.js +122 -17
- package/common/dimension.instance.json +747 -73
- package/common/dimension.js +15 -7
- package/common/edible.instance.json +243 -435
- package/common/edible.js +1 -1
- package/common/emotions.instance.json +29 -65
- package/common/emotions.js +1 -1
- package/common/fastfood.instance.json +1080 -2072
- package/common/fastfood.js +1 -1
- package/common/formulas.instance.json +992 -0
- package/common/formulas.js +19 -6
- package/common/formulas.test.json +1187 -3651
- package/common/gdefaults.js +2 -0
- package/common/help.js +7 -2
- package/common/help.test.json +9 -5
- package/common/helpers.js +5 -0
- package/common/javascript.js +8 -6
- package/common/kirk.instance.json +1 -1
- package/common/kirk.js +1 -1
- package/common/length.instance.json +316 -740
- package/common/length.js +1 -1
- package/common/math.instance.json +1959 -1
- package/common/math.js +17 -5
- package/common/meta.instance.json +1 -1
- package/common/meta.js +35 -10
- package/common/numbers.js +28 -24
- package/common/ordering.instance.json +37 -153
- package/common/ordering.js +1 -1
- package/common/people.instance.json +50 -78
- package/common/people.js +1 -1
- package/common/pipboy.instance.json +23431 -1082
- package/common/pipboy.js +31 -4
- package/common/pipboy.test.json +13 -9
- package/common/pokemon.instance.json +41 -141
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +93 -33
- package/common/pressure.js +1 -1
- package/common/properties.instance.json +21 -49
- package/common/properties.js +13 -8
- package/common/reports.instance.json +23 -63
- package/common/reports.js +9 -7
- package/common/scorekeeper.instance.json +1 -1
- package/common/scorekeeper.js +9 -7
- package/common/spock.instance.json +1 -1
- package/common/spock.js +1 -1
- package/common/tell.js +4 -2
- package/common/temperature.instance.json +97 -193
- package/common/temperature.js +1 -1
- package/common/time.js +36 -20
- package/common/time.test.json +66 -44
- package/common/tokenize.js +46 -0
- package/common/ui.instance.json +9 -1
- package/common/weight.instance.json +273 -217
- package/common/weight.js +1 -1
- package/main.js +4 -8
- package/package.json +6 -18
- package/common/dimensionTemplate.instance.json +0 -582
- package/common/dimensionTemplate.js +0 -35
- package/common/formulasTemplate.instance.json +0 -483
- package/common/formulasTemplate.js +0 -30
- package/common/formulasTemplate.test.json +0 -2
- package/common/mathTemplate.instance.json +0 -1635
- package/common/mathTemplate.js +0 -32
- package/common/mathTemplate.test.json +0 -1422
- package/common/pipboyTemplate.instance.json +0 -17420
- package/common/pipboyTemplate.js +0 -48
- package/common/pipboyTemplate.test.json +0 -2
- /package/common/{dimensionTemplate.test.json → tokenize.test.json} +0 -0
package/common/avatar.js
CHANGED
@@ -22,11 +22,13 @@ let configStruct = {
|
|
22
22
|
],
|
23
23
|
|
24
24
|
words: {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
"literals": {
|
26
|
+
// TODO use pronoun
|
27
|
+
"my": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'other', possessive: true }" }],
|
28
|
+
"your": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'self', possessive: true }" }],
|
29
|
+
"you": [{ id: 'self', initial: "{ variable: true, value: 'self' }" }],
|
30
|
+
"i": [{ id: 'self', initial: "{ variable: true, value: 'speaker' }" }],
|
31
|
+
}
|
30
32
|
},
|
31
33
|
|
32
34
|
generators: [
|
package/common/characters.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
const { Config, knowledgeModule, where } = require('./runtime').theprogrammablemind
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
|
+
const gdefaults = require('./gdefaults.js')
|
3
4
|
const createCurrencyKM = require('./currency.js')
|
4
5
|
const createTimeKM = require('./time.js')
|
5
6
|
const { table } = require('table')
|
@@ -40,11 +41,13 @@ let configStruct = {
|
|
40
41
|
{ id: 'help', level: 0, bridge: "{ ...next(operator) }" },
|
41
42
|
],
|
42
43
|
"words": {
|
43
|
-
"
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
"literals": {
|
45
|
+
"sally": [{"id": "character", development: true, "initial": "{ value: 'sally' }" }],
|
46
|
+
"bob": [{"id": "character", development: true, "initial": "{ value: 'bob' }" }],
|
47
|
+
//"product1": [{"id": "reportObject", "initial": "{ value: 'api1' }" }],
|
48
|
+
//"api2": [{"id": "reportObject", "initial": "{ value: 'api2' }" }],
|
49
|
+
//" ([0-9]+)": [{"id": "amount", "initial": "{ value: int(group[0]) }" }],
|
50
|
+
},
|
48
51
|
},
|
49
52
|
|
50
53
|
generators: [
|
@@ -178,6 +181,9 @@ const createConfig = () => {
|
|
178
181
|
const api2 = new Bob(currencyKM)
|
179
182
|
|
180
183
|
const config = new Config(configStruct, module)
|
184
|
+
config.stop_auto_rebuild()
|
185
|
+
config.add(gdefaults())
|
186
|
+
|
181
187
|
config.multiApi = initializeApi
|
182
188
|
config.initializer( ({isModule, config, km}) => {
|
183
189
|
if (!isModule) {
|
@@ -188,6 +194,7 @@ const createConfig = () => {
|
|
188
194
|
config.api = api
|
189
195
|
}
|
190
196
|
})
|
197
|
+
config.restart_auto_rebuild()
|
191
198
|
return config
|
192
199
|
}
|
193
200
|
|