tpmkms_4wp 8.0.0-beta.20 → 8.0.0-beta.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/common/animals.instance.json +0 -88
  2. package/common/animals.js +2 -2
  3. package/common/avatar.js +2 -2
  4. package/common/characters.js +12 -16
  5. package/common/colors.instance.json +10 -326
  6. package/common/colors.js +2 -2
  7. package/common/comparable.js +2 -2
  8. package/common/concept.js +4 -5
  9. package/common/countable.js +2 -2
  10. package/common/crew.instance.json +0 -416
  11. package/common/crew.js +3 -3
  12. package/common/currency.js +4 -4
  13. package/common/dialogues.js +4 -4
  14. package/common/dimension.js +4 -4
  15. package/common/edible.instance.json +17 -93
  16. package/common/edible.js +2 -2
  17. package/common/emotions.instance.json +0 -60
  18. package/common/emotions.js +3 -3
  19. package/common/events.js +3 -3
  20. package/common/fastfood.instance.json +237 -517
  21. package/common/fastfood.js +4 -4
  22. package/common/formulas.js +4 -4
  23. package/common/gdefaults.js +2 -2
  24. package/common/help.js +3 -3
  25. package/common/helpers/concept.js +0 -1
  26. package/common/hierarchy.js +3 -3
  27. package/common/javascript.js +3 -3
  28. package/common/kirk.js +2 -2
  29. package/common/length.instance.json +0 -60
  30. package/common/length.js +2 -2
  31. package/common/math.js +2 -2
  32. package/common/meta.js +3 -3
  33. package/common/negation.js +1 -1
  34. package/common/numbers.js +2 -2
  35. package/common/ordering.js +4 -4
  36. package/common/people.js +3 -3
  37. package/common/percentages.js +2 -2
  38. package/common/pipboy.instance.json +10 -78
  39. package/common/pipboy.js +4 -4
  40. package/common/pokemon.instance.json +0 -44
  41. package/common/pokemon.js +3 -3
  42. package/common/pos.js +1 -1
  43. package/common/pressure.js +2 -2
  44. package/common/properties.js +4 -4
  45. package/common/punctuation.js +1 -1
  46. package/common/reports.instance.json +1 -1
  47. package/common/reports.js +11 -11
  48. package/common/scorekeeper.js +3 -3
  49. package/common/sdefaults.js +1 -1
  50. package/common/sizeable.js +2 -2
  51. package/common/spock.js +2 -2
  52. package/common/stgame.js +13 -9
  53. package/common/stm.js +3 -3
  54. package/common/tell.js +4 -4
  55. package/common/temperature.instance.json +84 -60
  56. package/common/temperature.js +2 -2
  57. package/common/tester.js +2 -2
  58. package/common/testing.js +2 -2
  59. package/common/time.js +4 -4
  60. package/common/tokenize.js +1 -1
  61. package/common/ui.js +4 -4
  62. package/common/weight.js +2 -2
  63. package/common/yesno.js +1 -1
  64. package/package.json +2 -2
@@ -803,7 +803,7 @@
803
803
  }
804
804
  ]
805
805
  },
806
- "trace": "\n\n>>>>>>>>>>>>> Counter 1\n 0. price/0 (1, 1) - \"price\"\n {\n default: true\n marker: Operator(price/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n 1. list/0 (1, 3) - \"and\"\n {\n default: true\n marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({}) bridge(bridge))\n range: {'start': 6, 'end': 8}\n text: \"and\"\n word: \"and\"\n }\n 2. quantity/0 (1, 7) - \"quantity\"\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n 3. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 4. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=0) is Context({default: True, marker: Operator(price/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 0, 'end': 4}, text: price, value: price, word: price})\n\n>>>>>>>>>>>>> Counter 2\n *0. price/1 (dead) (2, 0) - \"price\"\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n 1. list/0 (1, 3) - \"and\"\n {\n default: true\n marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge))\n range: {'start': 6, 'end': 8}\n text: \"and\"\n types: [\n ]\n word: \"and\"\n }\n 2. quantity/0 (1, 7) - \"quantity\"\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n 3. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 4. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=1) is Context({default: True, marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge)), range: {'start': 6, 'end': 8}, text: and, types: [], word: and})\n\n>>>>>>>>>>>>> Counter 3\n *0. list/1 (3, 0) - \"price and quantity\"\n {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge))\n range: {'start': 0, 'end': 17}\n text: \"price and quantity\"\n types: [\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n 1. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 2. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=2) is Context({marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 23, 'end': 32}, text: properties, value: property, word: properties})\n\n>>>>>>>>>>>>> Counter 4\n 0. list/1 (3, 0) - \"price and quantity\"\n {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge))\n range: {'start': 0, 'end': 17}\n text: \"price and quantity\"\n types: [\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n 1. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n *2. property/1 (dead) (2, 1) - \"properties\"\n {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=1) is Context({marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge)), number: many, range: {'start': 19, 'end': 21}, text: are, word: are})\n\n>>>>>>>>>>>>> Counter 5\n *0. is/1 (4, 0) - \"price and quantity are properties\"\n {\n marker: Operator(is/1, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n number: \"many\"\n one: {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge))\n number: \"many\"\n range: {'start': 0, 'end': 32}\n text: \"price and quantity\"\n types: [\n 'price'\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n\n range: {'start': 0, 'end': 32}\n text: \"price and quantity are properties\"\n two: {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n types: [\n 'property'\n ]\n value: \"property\"\n word: \"properties\"\n }\n\n word: \"are\"\n }\n<<<<<<<<<<<<<\nNext Op (index=0) is Context({marker: Operator(is/1, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), number: many, one: Context({default: True, isList: True, listable: True, marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge)), number: many, range: {'start': 0, 'end': 32}, text: price and quantity, types: ['price'], value: [Context({dead: True, default: True, marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge)), range: {'start': 0, 'end': 4}, text: price, value: price, word: price}), Context({default: True, marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 10, 'end': 17}, text: quantity, value: quantity, word: quantity})], word: and}), range: {'start': 0, 'end': 32}, text: price and quantity are properties, two: Context({dead: True, marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge)), range: {'start': 23, 'end': 32}, text: properties, types: ['property'], value: property, word: properties}), word: are})\n\n>>>>>>>>>>>>> Counter 6\n *0. is/2 (dead) (5, 0) - \"price and quantity are properties\"\n {\n dead: true\n marker: Operator(is/2, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n number: \"many\"\n one: {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['object', 'quantifier', 'theAble', 'hierarchyAble', 'queryable', 'quantity', 'number', 'unknown', 'property']}) bridge(bridge))\n number: \"many\"\n range: {'start': 0, 'end': 32}\n text: \"price and quantity\"\n types: [\n 'price'\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n\n range: {'start': 0, 'end': 32}\n text: \"price and quantity are properties\"\n two: {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n types: [\n 'property'\n ]\n value: \"property\"\n word: \"properties\"\n }\n\n word: \"are\"\n }\n<<<<<<<<<<<<<\n",
806
+ "trace": "\n\n>>>>>>>>>>>>> Counter 1\n 0. price/0 (1, 1) - \"price\"\n {\n default: true\n marker: Operator(price/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n 1. list/0 (1, 3) - \"and\"\n {\n default: true\n marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({}) bridge(bridge))\n range: {'start': 6, 'end': 8}\n text: \"and\"\n word: \"and\"\n }\n 2. quantity/0 (1, 7) - \"quantity\"\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n 3. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 4. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=0) is Context({default: True, marker: Operator(price/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 0, 'end': 4}, text: price, value: price, word: price})\n\n>>>>>>>>>>>>> Counter 2\n *0. price/1 (dead) (2, 0) - \"price\"\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n 1. list/0 (1, 3) - \"and\"\n {\n default: true\n marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge))\n range: {'start': 6, 'end': 8}\n text: \"and\"\n types: [\n ]\n word: \"and\"\n }\n 2. quantity/0 (1, 7) - \"quantity\"\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n 3. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 4. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=1) is Context({default: True, marker: Operator(list/0, PASS, [\"Selector(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }'), , same/(), [Type(variable: 'type')]<==>[Type(variable: 'type')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), listable: true, isList: true, value: append(before, after) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge)), range: {'start': 6, 'end': 8}, text: and, types: [], word: and})\n\n>>>>>>>>>>>>> Counter 3\n *0. list/1 (3, 0) - \"price and quantity\"\n {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge))\n range: {'start': 0, 'end': 17}\n text: \"price and quantity\"\n types: [\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n 1. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n 2. property/0 (1, 15) - \"properties\"\n {\n marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=2) is Context({marker: Operator(property/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 23, 'end': 32}, text: properties, value: property, word: properties})\n\n>>>>>>>>>>>>> Counter 4\n 0. list/1 (3, 0) - \"price and quantity\"\n {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge))\n range: {'start': 0, 'end': 17}\n text: \"price and quantity\"\n types: [\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n 1. is/0 (1, 9) - \"are\"\n {\n marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge))\n number: \"many\"\n range: {'start': 19, 'end': 21}\n text: \"are\"\n word: \"are\"\n }\n *2. property/1 (dead) (2, 1) - \"properties\"\n {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n value: \"property\"\n word: \"properties\"\n }\n<<<<<<<<<<<<<\nNext Op (index=1) is Context({marker: Operator(is/0, [\"Selector(Bridge('{ ...next(operator), one: after[0], two: after[1], query: true }'), , []<==>[Type('queryable'), Type('queryable')], bridge(queryBridge))\", \"Selector(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }'), , [Type('queryable')]<==>[Type('queryable')], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator), one: { number: operator.number, ...before[0] }, two: after[0] }')), variables({}) bridge(bridge)), number: many, range: {'start': 19, 'end': 21}, text: are, word: are})\n\n>>>>>>>>>>>>> Counter 5\n *0. is/1 (4, 0) - \"price and quantity are properties\"\n {\n marker: Operator(is/1, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n number: \"many\"\n one: {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge))\n number: \"many\"\n range: {'start': 0, 'end': 32}\n text: \"price and quantity\"\n types: [\n 'price'\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n\n range: {'start': 0, 'end': 32}\n text: \"price and quantity are properties\"\n two: {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n types: [\n 'property'\n ]\n value: \"property\"\n word: \"properties\"\n }\n\n word: \"are\"\n }\n<<<<<<<<<<<<<\nNext Op (index=0) is Context({marker: Operator(is/1, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), number: many, one: Context({default: True, isList: True, listable: True, marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge)), number: many, range: {'start': 0, 'end': 32}, text: price and quantity, types: ['price'], value: [Context({dead: True, default: True, marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge)), range: {'start': 0, 'end': 4}, text: price, value: price, word: price}), Context({default: True, marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge)), range: {'start': 10, 'end': 17}, text: quantity, value: quantity, word: quantity})], word: and}), range: {'start': 0, 'end': 32}, text: price and quantity are properties, two: Context({dead: True, marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge)), range: {'start': 23, 'end': 32}, text: properties, types: ['property'], value: property, word: properties}), word: are})\n\n>>>>>>>>>>>>> Counter 6\n *0. is/2 (dead) (5, 0) - \"price and quantity are properties\"\n {\n dead: true\n marker: Operator(is/2, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n number: \"many\"\n one: {\n default: true\n isList: true\n listable: true\n marker: Operator(list/1, PASS, ['Selector(Bridge(\\'{ ...operator, value: append(before, operator.value) }\\'), , same/(), [And([\"Type(variable: \\'type\\')\", \"Listable(Unify(Property((\\'context\\', \\'instance\\')), Property((\\'variables\\', \\'instance\\'))))\"])]<==>[], bridge(bridge), passthrough)'], evaluator(Bridge('{ ...operator, value: append(before, operator.value) }')), variables({'type': ['number', 'theAble', 'hierarchyAble', 'property', 'quantity', 'object', 'unknown', 'quantifier', 'queryable']}) bridge(bridge))\n number: \"many\"\n range: {'start': 0, 'end': 32}\n text: \"price and quantity\"\n types: [\n 'price'\n ]\n value: [\n {\n dead: true\n default: true\n marker: Operator(price/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 0, 'end': 4}\n text: \"price\"\n value: \"price\"\n word: \"price\"\n }\n\n {\n default: true\n marker: Operator(quantity/0, [\"Selector(Bridge('{ ...next(operator) }'), , []<==>[], bridge(bridge))\"], evaluator(Bridge('{ ...next(operator) }')), variables({}) bridge(bridge))\n range: {'start': 10, 'end': 17}\n text: \"quantity\"\n value: \"quantity\"\n word: \"quantity\"\n }\n ]\n word: \"and\"\n }\n\n range: {'start': 0, 'end': 32}\n text: \"price and quantity are properties\"\n two: {\n dead: true\n marker: Operator(property/1, ['Selector(None, , []<==>[], bridge(bridge))'], evaluator(None), variables({}) bridge(bridge))\n range: {'start': 23, 'end': 32}\n text: \"properties\"\n types: [\n 'property'\n ]\n value: \"property\"\n word: \"properties\"\n }\n\n word: \"are\"\n }\n<<<<<<<<<<<<<\n",
807
807
  "contexts": [
808
808
  {
809
809
  "number": "many",
package/common/reports.js CHANGED
@@ -465,7 +465,6 @@ let configStruct = {
465
465
  const c1 = { marker: 'worth', value: 'worth' }
466
466
  r1 = toEValue(e(c1));
467
467
  r2 = e({ marker: 'supplier', value: 'supplier' })
468
- // api.listing.api = context.what.api
469
468
  }
470
469
  const data = products.map( (product) => {
471
470
  const row = []
@@ -604,19 +603,20 @@ const initializeApi = (config, api, km) => {
604
603
  // config.addWord(type, {"id": "report", "initial": `${open} value: '${type}' ${close}` })
605
604
  }
606
605
 
607
- const createConfig = () => {
606
+ const createConfig = async () => {
608
607
  const config = new Config(configStruct, module)
609
608
  config.stop_auto_rebuild()
610
- config.add(currencyKM(), helpKM(), math(), events())
611
- config.multiApi = initializeApi
609
+ await config.add(currencyKM, helpKM, math, events)
610
+ await config.setMultiApi(initializeApi)
612
611
  // mode this to non-module init only
612
+ const isModule = require.main !== module
613
+ if (!isModule) {
614
+ await config.addAPI(api1)
615
+ await config.addAPI(api2)
616
+ // config.addAPI(api1)
617
+ // config.addAPI(api2)
618
+ }
613
619
  config.initializer(({config, objects, km, isModule}) => {
614
- if (!isModule) {
615
- km('reports').addAPI(api1)
616
- km('reports').addAPI(api2)
617
- // config.addAPI(api1)
618
- // config.addAPI(api2)
619
- }
620
620
  objects.tempReportId = 0
621
621
  objects.listings = {
622
622
  }
@@ -625,7 +625,7 @@ const createConfig = () => {
625
625
  objects.listings[id].api = 'clothes'
626
626
  }
627
627
  })
628
- config.restart_auto_rebuild()
628
+ await config.restart_auto_rebuild()
629
629
  return config
630
630
  }
631
631
 
@@ -350,10 +350,10 @@ let configStruct = {
350
350
  ],
351
351
  };
352
352
 
353
- const createConfig = () => {
353
+ const createConfig = async () => {
354
354
  const config = new Config(configStruct, module)
355
355
  config.stop_auto_rebuild()
356
- config.add(dialogues(), numbers(), properties())
356
+ await config.add(dialogues, numbers, properties)
357
357
  config.initializer( ({objects, km, isModule}) => {
358
358
  objects.players = []
359
359
  objects.nextPlayer = undefined;
@@ -362,7 +362,7 @@ const createConfig = () => {
362
362
  objects.winningScore = null
363
363
  objects.allPlayersAreKnown = false;
364
364
  })
365
- config.restart_auto_rebuild()
365
+ await config.restart_auto_rebuild()
366
366
  return config
367
367
  }
368
368
 
@@ -32,7 +32,7 @@ let configStruct = {
32
32
  ],
33
33
  };
34
34
 
35
- const createConfig = () => new Config(configStruct, module)
35
+ const createConfig = async () => new Config(configStruct, module)
36
36
 
37
37
  knowledgeModule({
38
38
  module,
@@ -52,9 +52,9 @@ let configStruct = {
52
52
  ]
53
53
  };
54
54
 
55
- const createConfig = () => {
55
+ const createConfig = async () => {
56
56
  const config = new Config(configStruct, module)
57
- config.add(dialogues(), numbers())
57
+ await config.add(dialogues, numbers)
58
58
  return config
59
59
  }
60
60
 
package/common/spock.js CHANGED
@@ -10,9 +10,9 @@ const template = {
10
10
  ]
11
11
  };
12
12
 
13
- const createConfig = () => {
13
+ const createConfig = async () => {
14
14
  const config = new Config({ name: 'spock', }, module)
15
- config.add(crew())
15
+ await config.add(crew)
16
16
  return config
17
17
  }
18
18
 
package/common/stgame.js CHANGED
@@ -62,22 +62,26 @@ class SpockAPI {
62
62
  }
63
63
 
64
64
 
65
- const createConfig = () => {
66
- const characters = createCharacters()
67
- const kirk = createKirk()
68
- const spock = createSpock()
69
- characters.api = new KirkAPI(kirk);
70
- characters.api = new SpockAPI(spock);
65
+ const createConfig = async () => {
71
66
  const config = new Config({
72
67
  name: 'stgame',
73
68
  operators: [ "([a])" ],
74
69
  bridges: [ { id: 'a', level: 0, bridge: "{ ...next(operator) }" } ],
75
70
  words: {"?": [{"id": "a", "initial": "{}" }]},
76
71
  }, module)
72
+
73
+ const createCharactersHelper = async () => {
74
+ const characters = await createCharacters()
75
+ const kirk = await createKirk()
76
+ const spock = await createSpock()
77
+ await characters.setApi(new KirkAPI(kirk))
78
+ await characters.setApi(new SpockAPI(spock))
79
+ return characters
80
+ }
77
81
  config.stop_auto_rebuild()
78
- config.api = api
79
- config.add(characters)
80
- config.restart_auto_rebuild()
82
+ await config.setApi(api)
83
+ await config.add(createCharactersHelper)
84
+ await config.restart_auto_rebuild()
81
85
  return config
82
86
  }
83
87
 
package/common/stm.js CHANGED
@@ -99,7 +99,7 @@ class API {
99
99
 
100
100
  const api = new API()
101
101
 
102
- let createConfig = () => {
102
+ let createConfig = async () => {
103
103
  const config = new Config({ name: 'stm' }, module)
104
104
  config.stop_auto_rebuild()
105
105
 
@@ -113,9 +113,9 @@ let createConfig = () => {
113
113
  },
114
114
  }))
115
115
  })
116
- config.api = api
116
+ await config.setApi(api)
117
117
 
118
- config.restart_auto_rebuild()
118
+ await config.restart_auto_rebuild()
119
119
  return config
120
120
  }
121
121
 
package/common/tell.js CHANGED
@@ -98,11 +98,11 @@ let configStruct = {
98
98
  ],
99
99
  };
100
100
 
101
- const createConfig = () => {
101
+ const createConfig = async () => {
102
102
  const config = new Config(configStruct, module)
103
103
  config.stop_auto_rebuild()
104
- config.api = api
105
- config.add(dialogues())
104
+ await config.setApi(api)
105
+ await config.add(dialogues)
106
106
  config.initializer( ({config, isModule}) => {
107
107
  if (!isModule) {
108
108
  config.addSemantic({
@@ -113,7 +113,7 @@ const createConfig = () => {
113
113
  })
114
114
  }
115
115
  })
116
- config.restart_auto_rebuild()
116
+ await config.restart_auto_rebuild()
117
117
  return config
118
118
  }
119
119
 
@@ -2225,36 +2225,6 @@
2225
2225
  1
2226
2226
  ]
2227
2227
  ],
2228
- [
2229
- [
2230
- "is",
2231
- 0
2232
- ],
2233
- [
2234
- "list",
2235
- 0
2236
- ],
2237
- [
2238
- "propertyOf",
2239
- 0
2240
- ],
2241
- [
2242
- "temperature",
2243
- 0
2244
- ],
2245
- [
2246
- "unit",
2247
- 0
2248
- ],
2249
- [
2250
- "unknown",
2251
- 0
2252
- ],
2253
- [
2254
- "unknown",
2255
- 1
2256
- ]
2257
- ],
2258
2228
  [
2259
2229
  [
2260
2230
  "is",
@@ -5269,6 +5239,48 @@
5269
5239
  0
5270
5240
  ]
5271
5241
  ],
5242
+ [
5243
+ [
5244
+ "celcius",
5245
+ 0
5246
+ ],
5247
+ [
5248
+ "divideByOperator",
5249
+ 0
5250
+ ],
5251
+ [
5252
+ "equals",
5253
+ 0
5254
+ ],
5255
+ [
5256
+ "fahrenheit",
5257
+ 0
5258
+ ],
5259
+ [
5260
+ "leftParenthesis",
5261
+ 0
5262
+ ],
5263
+ [
5264
+ "minusOperator",
5265
+ 0
5266
+ ],
5267
+ [
5268
+ "number",
5269
+ 0
5270
+ ],
5271
+ [
5272
+ "plusOperator",
5273
+ 0
5274
+ ],
5275
+ [
5276
+ "rightParenthesis",
5277
+ 0
5278
+ ],
5279
+ [
5280
+ "timesOperator",
5281
+ 0
5282
+ ]
5283
+ ],
5272
5284
  [
5273
5285
  [
5274
5286
  "celcius",
@@ -5564,6 +5576,48 @@
5564
5576
  0
5565
5577
  ]
5566
5578
  ],
5579
+ [
5580
+ [
5581
+ "celcius",
5582
+ 0
5583
+ ],
5584
+ [
5585
+ "divideByOperator",
5586
+ 0
5587
+ ],
5588
+ [
5589
+ "equals",
5590
+ 0
5591
+ ],
5592
+ [
5593
+ "fahrenheit",
5594
+ 0
5595
+ ],
5596
+ [
5597
+ "leftParenthesis",
5598
+ 0
5599
+ ],
5600
+ [
5601
+ "minusOperator",
5602
+ 0
5603
+ ],
5604
+ [
5605
+ "number",
5606
+ 0
5607
+ ],
5608
+ [
5609
+ "plusOperator",
5610
+ 0
5611
+ ],
5612
+ [
5613
+ "rightParenthesis",
5614
+ 0
5615
+ ],
5616
+ [
5617
+ "timesOperator",
5618
+ 0
5619
+ ]
5620
+ ],
5567
5621
  [
5568
5622
  [
5569
5623
  "celcius",
@@ -5932,36 +5986,6 @@
5932
5986
  1
5933
5987
  ]
5934
5988
  ],
5935
- [
5936
- [
5937
- "is",
5938
- 0
5939
- ],
5940
- [
5941
- "list",
5942
- 0
5943
- ],
5944
- [
5945
- "propertyOf",
5946
- 0
5947
- ],
5948
- [
5949
- "temperature",
5950
- 0
5951
- ],
5952
- [
5953
- "unit",
5954
- 0
5955
- ],
5956
- [
5957
- "unknown",
5958
- 0
5959
- ],
5960
- [
5961
- "unknown",
5962
- 1
5963
- ]
5964
- ],
5965
5989
  [
5966
5990
  [
5967
5991
  "is",
@@ -14,9 +14,9 @@ const template = {
14
14
  ],
15
15
  }
16
16
 
17
- const createConfig = () => {
17
+ const createConfig = async () => {
18
18
  const config = new Config({ name: 'temperature' }, module)
19
- config.add(dimension())
19
+ await config.add(dimension)
20
20
  return config
21
21
  }
22
22
 
package/common/tester.js CHANGED
@@ -12,7 +12,7 @@ const [args, unknown] = parser.parse_known_args()
12
12
 
13
13
  process.argv = [process.argv[0], process.argv[1], ...unknown]
14
14
 
15
- const createConfig = () => {
15
+ const createConfig = async () => {
16
16
  const config = new Config({ name: 'tester' })
17
17
  global.theprogrammablemind = {
18
18
  loadForTesting: {}
@@ -21,7 +21,7 @@ const createConfig = () => {
21
21
  global.theprogrammablemind.loadForTesting[module] = true
22
22
  const km = require(`./${module}`)
23
23
  // km.rebuild({ isModule: false }) // load the usually defaults
24
- config.add(km())
24
+ await config.add(km)
25
25
  }
26
26
  return config
27
27
  }
package/common/testing.js CHANGED
@@ -30,9 +30,9 @@ let configStruct = {
30
30
  ],
31
31
  };
32
32
 
33
- const createConfig = () => {
33
+ const createConfig = async () => {
34
34
  const config = new Config(configStruct, module)
35
- config.add(gdefaults())
35
+ await config.add(gdefaults)
36
36
  return config
37
37
  }
38
38
 
package/common/time.js CHANGED
@@ -170,11 +170,11 @@ const configStruct = {
170
170
  ],
171
171
  };
172
172
 
173
- const createConfig = () => {
173
+ const createConfig = async () => {
174
174
  const config = new Config(configStruct, module)
175
175
  config.stop_auto_rebuild()
176
- config.add(tell()).add(numbers()).add(countable())
177
- config.api = api
176
+ await config.add(tell, numbers, countable)
177
+ await config.setApi(api)
178
178
  config.initializer( ({config, objects, kms, isModule}) => {
179
179
  if (!isModule) {
180
180
  kms.time.api.newDate = () => new Date("December 25, 1995 1:59:58 pm" )
@@ -187,7 +187,7 @@ const createConfig = () => {
187
187
  apply: api.semantics
188
188
  })
189
189
  })
190
- config.restart_auto_rebuild()
190
+ await config.restart_auto_rebuild()
191
191
  return config
192
192
  }
193
193
 
@@ -31,7 +31,7 @@ let configStruct = {
31
31
  },
32
32
  };
33
33
 
34
- createConfig = () => new Config(configStruct, module)
34
+ createConfig = async () => new Config(configStruct, module)
35
35
 
36
36
  knowledgeModule( {
37
37
  module,
package/common/ui.js CHANGED
@@ -183,12 +183,12 @@ const template = {
183
183
  ],
184
184
  }
185
185
 
186
- const createConfig = () => {
186
+ const createConfig = async () => {
187
187
  const config = new Config(configStruct, module)
188
188
  config.stop_auto_rebuild()
189
- config.add(dialogues(), math())
190
- config.api = new API()
191
- config.restart_auto_rebuild()
189
+ await config.add(dialogues, math)
190
+ await config.setApi(new API())
191
+ await config.restart_auto_rebuild()
192
192
  return config
193
193
  }
194
194
 
package/common/weight.js CHANGED
@@ -34,9 +34,9 @@ const template = {
34
34
  ],
35
35
  }
36
36
 
37
- const createConfig = () => {
37
+ const createConfig = async () => {
38
38
  const config = new Config({ name: 'weight' }, module)
39
- config.add(dimension())
39
+ await config.add(dimension)
40
40
  return config
41
41
  }
42
42
 
package/common/yesno.js CHANGED
@@ -22,7 +22,7 @@ let configStruct = {
22
22
  ],
23
23
  };
24
24
 
25
- const createConfig = () => new Config(configStruct, module).add(gdefaults())
25
+ const createConfig = async () => new Config(configStruct, module).add(gdefaults)
26
26
 
27
27
  knowledgeModule( {
28
28
  module,
package/package.json CHANGED
@@ -280,8 +280,8 @@
280
280
  "table": "^6.7.1",
281
281
  "base-64": "^1.0.0",
282
282
  "argparse": "^2.0.1",
283
- "theprogrammablemind_4wp": "8.0.0-beta.20"
283
+ "theprogrammablemind_4wp": "8.0.0-beta.21"
284
284
  },
285
- "version": "8.0.0-beta.20",
285
+ "version": "8.0.0-beta.21",
286
286
  "license": "UNLICENSED"
287
287
  }