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.
Files changed (54) hide show
  1. package/common/animals.instance.json +13 -0
  2. package/common/articles.js +3 -0
  3. package/common/asking.test.json +193 -72
  4. package/common/avatar.js +0 -6
  5. package/common/colors.instance.json +42 -0
  6. package/common/comparable.instance.json +3 -0
  7. package/common/comparable.js +6 -0
  8. package/common/concept.js +1 -1
  9. package/common/crew.instance.json +26 -39
  10. package/common/crew.js +0 -7
  11. package/common/dialogues.js +2 -1
  12. package/common/dimension.instance.json +1 -0
  13. package/common/edible.instance.json +92 -0
  14. package/common/emotions.instance.json +1 -0
  15. package/common/events.js +3 -3
  16. package/common/events.test.json +107 -36
  17. package/common/fastfood.instance.json +1053 -12554
  18. package/common/fastfood.js +2 -1
  19. package/common/formulas.instance.json +1 -0
  20. package/common/formulas.js +3 -1
  21. package/common/formulas.test.json +643 -711
  22. package/common/helpers/concept.js +6 -2
  23. package/common/helpers/dialogues.js +1 -1
  24. package/common/helpers/menus.js +154 -0
  25. package/common/helpers.js +16 -0
  26. package/common/kirk.instance.json +1 -0
  27. package/common/length.instance.json +15 -0
  28. package/common/math.instance.json +1 -0
  29. package/common/menus.instance.json +10097 -0
  30. package/common/menus.js +260 -0
  31. package/common/menus.test.json +26163 -0
  32. package/common/negation.js +5 -0
  33. package/common/ordering.instance.json +2 -0
  34. package/common/people.instance.json +96 -8
  35. package/common/pipboy.instance.json +105 -123
  36. package/common/pipboy.js +0 -7
  37. package/common/pokemon.instance.json +13 -8
  38. package/common/pressure.instance.json +4 -0
  39. package/common/properties.instance.json +1 -0
  40. package/common/properties.js +1 -0
  41. package/common/reports.instance.json +18 -23
  42. package/common/reports.js +12 -3
  43. package/common/sdefaults.js +28 -3
  44. package/common/spock.instance.json +1 -0
  45. package/common/stm.js +2 -1
  46. package/common/temperature.instance.json +4 -0
  47. package/common/tester.js +24 -2
  48. package/common/ui.instance.json +446 -0
  49. package/common/ui.js +9 -4
  50. package/common/ui.test.json +6794 -0
  51. package/common/weight.instance.json +14 -0
  52. package/common/wp.instance.json +6262 -2
  53. package/main.js +2 -0
  54. 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/* || context.quantity != null))"
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
- api.move(context.direction.value, context.direction.steps ? context.direction.steps.value : 1)
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,