tpmkms_4wp 9.1.1 → 9.2.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.
- package/common/animals.instance.json +13 -0
- package/common/articles.js +3 -0
- package/common/asking.test.json +193 -72
- package/common/avatar.js +0 -6
- package/common/colors.instance.json +42 -0
- package/common/comparable.instance.json +3 -0
- package/common/comparable.js +6 -0
- package/common/concept.js +1 -1
- package/common/crew.instance.json +26 -39
- package/common/crew.js +0 -7
- package/common/dialogues.js +2 -1
- package/common/dimension.instance.json +1 -0
- package/common/edible.instance.json +92 -0
- package/common/emotions.instance.json +1 -0
- package/common/events.js +3 -3
- package/common/events.test.json +107 -36
- package/common/fastfood.instance.json +1053 -12554
- package/common/fastfood.js +2 -1
- package/common/formulas.instance.json +1 -0
- package/common/formulas.js +3 -1
- package/common/formulas.test.json +643 -711
- package/common/helpers/concept.js +6 -2
- package/common/helpers/dialogues.js +1 -1
- package/common/helpers/menus.js +154 -0
- package/common/helpers.js +16 -0
- package/common/kirk.instance.json +1 -0
- package/common/length.instance.json +15 -0
- package/common/math.instance.json +1 -0
- package/common/menus.instance.json +10097 -0
- package/common/menus.js +260 -0
- package/common/menus.test.json +26163 -0
- package/common/negation.js +5 -0
- package/common/ordering.instance.json +2 -0
- package/common/people.instance.json +96 -8
- package/common/pipboy.instance.json +105 -123
- package/common/pipboy.js +0 -7
- package/common/pokemon.instance.json +13 -8
- package/common/pressure.instance.json +4 -0
- package/common/properties.instance.json +1 -0
- package/common/properties.js +1 -0
- package/common/reports.instance.json +18 -23
- package/common/reports.js +12 -3
- package/common/sdefaults.js +28 -3
- package/common/spock.instance.json +1 -0
- package/common/stm.js +2 -1
- package/common/temperature.instance.json +4 -0
- package/common/tester.js +24 -2
- package/common/ui.instance.json +446 -0
- package/common/ui.js +9 -4
- package/common/ui.test.json +6794 -0
- package/common/weight.instance.json +14 -0
- package/common/wp.instance.json +6262 -2
- package/main.js +2 -0
- package/package.json +8 -3
package/common/ui.js
CHANGED
@@ -2,6 +2,7 @@ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammable
|
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
3
|
const dialogues = require('./dialogues')
|
4
4
|
const ordinals = require('./ordinals')
|
5
|
+
const math = require('./math')
|
5
6
|
const countable = require('./countable')
|
6
7
|
const ui_tests = require('./ui.test.json')
|
7
8
|
const ui_instance = require('./ui.instance.json')
|
@@ -53,7 +54,9 @@ const config = {
|
|
53
54
|
"([right])",
|
54
55
|
"([stop] ([action]))",
|
55
56
|
"([listening])",
|
56
|
-
"(([direction]) [moveAmount|] (number/* ||
|
57
|
+
"(([direction]) [moveAmount|] (number/* || quantity != null))"
|
58
|
+
// "(([direction]) [moveAmount|] (number/* || context.quantity))"
|
59
|
+
// "(([direction]) [moveAmount|] (number/*))"
|
57
60
|
],
|
58
61
|
semantics: [
|
59
62
|
{
|
@@ -126,11 +129,13 @@ const config = {
|
|
126
129
|
localHierarchy: [['thisitthat', 'moveable']],
|
127
130
|
optional: { 1: "{ marker: 'moveable', pullFromContext: true, default: true, skipDefault: true }" },
|
128
131
|
bridge: "{ ...next(operator), operator: operator, moveable: after[0], direction: after[1], generate: ['operator', 'moveable', 'direction' ] }",
|
129
|
-
semantic: ({api, context}) => {
|
132
|
+
semantic: async ({api, context, e}) => {
|
130
133
|
if (context.direction?.steps?.quantity) {
|
131
134
|
api.move(context.direction.value, context.direction.steps.quantity.value, context.direction.steps.marker)
|
132
135
|
} else {
|
133
|
-
|
136
|
+
const steps = await e(context.direction.steps)
|
137
|
+
api.move(context.direction.value, steps?.evalue || 1)
|
138
|
+
// api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
|
134
139
|
}
|
135
140
|
}
|
136
141
|
},
|
@@ -173,7 +178,7 @@ const template = {
|
|
173
178
|
|
174
179
|
knowledgeModule({
|
175
180
|
config,
|
176
|
-
includes: [dialogues, ordinals, countable],
|
181
|
+
includes: [dialogues, ordinals, countable, math],
|
177
182
|
api: () => new API(),
|
178
183
|
|
179
184
|
module,
|