tpmkms_4wp 8.9.1-beta.7 → 8.9.1-beta.9
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.
- package/common/articles.js +1 -1
- package/common/asking.js +2 -2
- package/common/avatar.js +1 -1
- package/common/characters.js +1 -1
- package/common/comparable.js +1 -1
- package/common/concept.js +1 -1
- package/common/conjunction.js +1 -1
- package/common/countable.js +1 -1
- package/common/currency.js +2 -2
- package/common/dialogues.js +3 -3
- package/common/dimension.js +2 -2
- package/common/errors.js +1 -1
- package/common/events.js +1 -1
- package/common/fastfood.instance.json +705 -928
- package/common/fastfood.js +3 -3
- package/common/formulas.js +1 -1
- package/common/gdefaults.js +2 -2
- package/common/help.js +4 -4
- package/common/helpers/concept.js +3 -3
- package/common/helpers/conjunction.js +1 -1
- package/common/helpers/formulas.js +4 -4
- package/common/helpers/frankenhash.js +4 -4
- package/common/helpers/meta.js +4 -4
- package/common/helpers/ordering.js +2 -2
- package/common/helpers/properties.js +16 -16
- package/common/helpers.js +1 -1
- package/common/hierarchy.js +3 -3
- package/common/javascript.js +1 -1
- package/common/math.js +1 -1
- package/common/meta.js +5 -5
- package/common/negation.js +1 -1
- package/common/numbers.js +1 -1
- package/common/ordinals.js +1 -1
- package/common/people.js +1 -1
- package/common/percentages.js +1 -1
- package/common/pipboy.js +1 -1
- package/common/pos.js +1 -1
- package/common/properties.js +2 -2
- package/common/punctuation.js +1 -1
- package/common/reports.instance.json +2 -2
- package/common/reports.js +7 -7
- package/common/scorekeeper.js +5 -5
- package/common/sdefaults.js +2 -2
- package/common/sizeable.js +1 -1
- package/common/stm.js +6 -6
- package/common/tell.js +1 -1
- package/common/tester.js +1 -1
- package/common/wp.instance.json +50 -2
- package/common/wp.js +40 -3
- package/common/wp.test.json +9804 -91
- package/common/yesno.js +1 -1
- package/package.json +4 -4
package/common/articles.js
CHANGED
package/common/asking.js
CHANGED
@@ -8,7 +8,7 @@ const { defaultContextCheck, indent, focus, requiredArgument } = require('./help
|
|
8
8
|
const pluralize = require('pluralize')
|
9
9
|
|
10
10
|
// TODO implement what / what did you say ...
|
11
|
-
|
11
|
+
const config = {
|
12
12
|
name: 'asking',
|
13
13
|
operators: [
|
14
14
|
"([nevermind])",
|
@@ -191,7 +191,7 @@ const initializer = ({objects, config, isModule}) => {
|
|
191
191
|
return {
|
192
192
|
ask,
|
193
193
|
askWhich: ({ choices, chosen, question, isChoice, onNevermind }) => {
|
194
|
-
|
194
|
+
const state = {}
|
195
195
|
|
196
196
|
requiredArgument(choices, 'choices')
|
197
197
|
requiredArgument(chosen, 'chosen')
|
package/common/avatar.js
CHANGED
package/common/characters.js
CHANGED
package/common/comparable.js
CHANGED
package/common/concept.js
CHANGED
package/common/conjunction.js
CHANGED
@@ -4,7 +4,7 @@ const conjunction_tests = require('./conjunction.test.json')
|
|
4
4
|
const { defaultContextCheck, propertyToArray } = require('./helpers')
|
5
5
|
const { isA, asList, listable } = require('./helpers/conjunction.js')
|
6
6
|
|
7
|
-
|
7
|
+
const config = {
|
8
8
|
name: 'conjunction',
|
9
9
|
operators: [
|
10
10
|
"(x [list|and] y)",
|
package/common/countable.js
CHANGED
package/common/currency.js
CHANGED
@@ -40,7 +40,7 @@ class API {
|
|
40
40
|
|
41
41
|
const api = new API()
|
42
42
|
|
43
|
-
|
43
|
+
const config = {
|
44
44
|
name: 'currency',
|
45
45
|
operators: [
|
46
46
|
"(([number]) [currency])",
|
@@ -98,7 +98,7 @@ const initializer = ({config, objects, apis, addWord, addGenerator, baseConfig,
|
|
98
98
|
addWord(word, def)
|
99
99
|
}
|
100
100
|
unitWords = api.getUnitWords();
|
101
|
-
for (
|
101
|
+
for (const words of unitWords) {
|
102
102
|
addGenerator({
|
103
103
|
match: ({context}) => context.marker == 'currency' && context.units == words.units && context.value == 1 && context.isAbstract,
|
104
104
|
apply: ({context, g}) => words.one, uuid
|
package/common/dialogues.js
CHANGED
@@ -37,7 +37,7 @@ const warningSameNotEvaluated = (log, one) => {
|
|
37
37
|
}
|
38
38
|
|
39
39
|
// TODO implement what / what did you say ...
|
40
|
-
|
40
|
+
const config = {
|
41
41
|
name: 'dialogues',
|
42
42
|
operators: [
|
43
43
|
"(<thatVerb|that> (verb/0))",
|
@@ -659,7 +659,7 @@ let config = {
|
|
659
659
|
// km('dialogues').api.mentioned(concept)
|
660
660
|
// TODO wtf is the next line?
|
661
661
|
value = JSON.parse(JSON.stringify(value))
|
662
|
-
|
662
|
+
const instance = await e(value)
|
663
663
|
if (false && instance.evalue) {
|
664
664
|
km('stm').api.mentioned({ context: value })
|
665
665
|
}
|
@@ -794,7 +794,7 @@ const initializer = ({objects, config, isModule}) => {
|
|
794
794
|
return api('dialogues').toScopedId(context)
|
795
795
|
},
|
796
796
|
addWords: (id, word, additional) => {
|
797
|
-
for (
|
797
|
+
for (const props of words(word, { ...additional })) {
|
798
798
|
config.addWord(props.word, { id, initial: JSON.stringify(props) })
|
799
799
|
}
|
800
800
|
},
|
package/common/dimension.js
CHANGED
@@ -40,7 +40,7 @@ class API {
|
|
40
40
|
})
|
41
41
|
|
42
42
|
// for example, celcius and fahrenheit
|
43
|
-
for (
|
43
|
+
for (const unit of units) {
|
44
44
|
config.addOperator(`([${unit}])`)
|
45
45
|
config.addBridge({
|
46
46
|
id: unit,
|
@@ -52,7 +52,7 @@ class API {
|
|
52
52
|
|
53
53
|
const api = new API()
|
54
54
|
|
55
|
-
|
55
|
+
const config = {
|
56
56
|
name: 'dimension',
|
57
57
|
operators: [
|
58
58
|
"([dimension])",
|
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
|
-
|
6
|
+
const config = {
|
7
7
|
name: 'errors',
|
8
8
|
operators: [
|
9
9
|
{ pattern: "([drop] ([dropable]))", development: true },
|