ekms 7.12.2 → 7.12.3-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/common/avatar.js +6 -6
  2. package/common/comparable.js +1 -1
  3. package/common/concept.js +2 -0
  4. package/common/countable.js +1 -1
  5. package/common/crew.instance.json +36 -0
  6. package/common/crew.js +3 -2
  7. package/common/crew.test.json +45 -45
  8. package/common/currency.js +2 -0
  9. package/common/dialogues.js +11 -3
  10. package/common/dimension.js +5 -3
  11. package/common/dimension.test.json +204 -158
  12. package/common/edible.instance.json +56 -0
  13. package/common/edible.js +1 -2
  14. package/common/edible.test.json +34 -4
  15. package/common/emotions.js +2 -0
  16. package/common/fastfood.instance.json +732 -224
  17. package/common/fastfood.js +3 -4
  18. package/common/fastfood.test.json +686 -2164
  19. package/common/formulas.js +3 -1
  20. package/common/formulas.test.json +25 -85
  21. package/common/formulasTemplate.js +1 -1
  22. package/common/gdefaults.js +2 -1
  23. package/common/help.js +2 -0
  24. package/common/hierarchy.js +4 -2
  25. package/common/javascript.js +2 -0
  26. package/common/math.js +13 -5
  27. package/common/math.test.json +127 -543
  28. package/common/mathTemplate.js +1 -1
  29. package/common/ordering.instance.json +0 -68
  30. package/common/ordering.js +2 -0
  31. package/common/people.js +2 -0
  32. package/common/people.test.json +118 -56
  33. package/common/pipboy.js +3 -1
  34. package/common/pipboy.test.json +1813 -91
  35. package/common/pipboyTemplate.js +1 -1
  36. package/common/pokemon.js +2 -0
  37. package/common/pokemon.test.json +1658 -4
  38. package/common/properties.js +3 -3
  39. package/common/properties.test.json +198 -90
  40. package/common/reports.instance.json +1 -1
  41. package/common/reports.js +4 -1
  42. package/common/scorekeeper.js +3 -3
  43. package/common/scorekeeper.test.json +46 -46
  44. package/common/sizeable.js +1 -1
  45. package/common/stgame.js +2 -0
  46. package/common/tell.js +2 -0
  47. package/common/temperature.instance.json +0 -112
  48. package/common/time.js +2 -0
  49. package/common/ui.js +3 -1
  50. package/common/weight.test.json +22 -22
  51. package/package.json +2 -2
@@ -3612,36 +3612,6 @@
3612
3612
  0
3613
3613
  ]
3614
3614
  ],
3615
- [
3616
- [
3617
- "celcius",
3618
- 0
3619
- ],
3620
- [
3621
- "divideByOperator",
3622
- 0
3623
- ],
3624
- [
3625
- "equals",
3626
- 0
3627
- ],
3628
- [
3629
- "fahrenheit",
3630
- 0
3631
- ],
3632
- [
3633
- "number",
3634
- 0
3635
- ],
3636
- [
3637
- "plusOperator",
3638
- 0
3639
- ],
3640
- [
3641
- "timesOperator",
3642
- 0
3643
- ]
3644
- ],
3645
3615
  [
3646
3616
  [
3647
3617
  "celcius",
@@ -5253,32 +5223,6 @@
5253
5223
  0
5254
5224
  ]
5255
5225
  ],
5256
- [
5257
- [
5258
- "celcius",
5259
- 0
5260
- ],
5261
- [
5262
- "divideByOperator",
5263
- 0
5264
- ],
5265
- [
5266
- "equals",
5267
- 0
5268
- ],
5269
- [
5270
- "number",
5271
- 0
5272
- ],
5273
- [
5274
- "plusOperator",
5275
- 0
5276
- ],
5277
- [
5278
- "timesOperator",
5279
- 0
5280
- ]
5281
- ],
5282
5226
  [
5283
5227
  [
5284
5228
  "celcius",
@@ -5524,36 +5468,6 @@
5524
5468
  0
5525
5469
  ]
5526
5470
  ],
5527
- [
5528
- [
5529
- "celcius",
5530
- 0
5531
- ],
5532
- [
5533
- "divideByOperator",
5534
- 0
5535
- ],
5536
- [
5537
- "equals",
5538
- 0
5539
- ],
5540
- [
5541
- "fahrenheit",
5542
- 0
5543
- ],
5544
- [
5545
- "number",
5546
- 0
5547
- ],
5548
- [
5549
- "plusOperator",
5550
- 0
5551
- ],
5552
- [
5553
- "timesOperator",
5554
- 0
5555
- ]
5556
- ],
5557
5471
  [
5558
5472
  [
5559
5473
  "celcius",
@@ -5708,32 +5622,6 @@
5708
5622
  0
5709
5623
  ]
5710
5624
  ],
5711
- [
5712
- [
5713
- "celcius",
5714
- 0
5715
- ],
5716
- [
5717
- "divideByOperator",
5718
- 0
5719
- ],
5720
- [
5721
- "equals",
5722
- 0
5723
- ],
5724
- [
5725
- "number",
5726
- 0
5727
- ],
5728
- [
5729
- "plusOperator",
5730
- 0
5731
- ],
5732
- [
5733
- "timesOperator",
5734
- 0
5735
- ]
5736
- ],
5737
5625
  [
5738
5626
  [
5739
5627
  "celcius",
package/common/time.js CHANGED
@@ -156,6 +156,7 @@ const configStruct = {
156
156
 
157
157
  const createConfig = () => {
158
158
  const config = new Config(configStruct, module)
159
+ config.stop_auto_rebuild()
159
160
  config.add(tell())
160
161
  config.api = api
161
162
  config.initializer( ({config, objects, kms, isModule}) => {
@@ -170,6 +171,7 @@ const createConfig = () => {
170
171
  apply: api.semantics
171
172
  })
172
173
  })
174
+ config.restart_auto_rebuild()
173
175
  return config
174
176
  }
175
177
 
package/common/ui.js CHANGED
@@ -186,8 +186,10 @@ const template = {
186
186
 
187
187
  const createConfig = () => {
188
188
  const config = new Config(configStruct, module)
189
- config.add(dialogues()).add(math())
189
+ config.stop_auto_rebuild()
190
+ config.add(dialogues(), math())
190
191
  config.api = new API()
192
+ config.restart_auto_rebuild()
191
193
  return config
192
194
  }
193
195
 
@@ -488,7 +488,7 @@
488
488
  }
489
489
  ],
490
490
  "generatedParenthesized": [
491
- "(((in) is (((((pounds) * (0.453592))) (kilograms)))))"
491
+ "(((((10) (pounds)) in (kilograms)) is ((((4.53592)) (kilograms)))))"
492
492
  ],
493
493
  "metadata": {
494
494
  "opChoices": [
@@ -3071,11 +3071,11 @@
3071
3071
  },
3072
3072
  "word": "is"
3073
3073
  },
3074
- "generatedParenthesized": "(((in) is (((((pounds) * (0.453592))) (kilograms)))))",
3074
+ "generatedParenthesized": "(((((10) (pounds)) in (kilograms)) is ((((4.53592)) (kilograms)))))",
3075
3075
  "paraphrases": "what is 10 pounds in kilograms?",
3076
3076
  "paraphrasesParenthesized": "(((what) is (((10) (pounds)) in (kilograms)))?)",
3077
3077
  "responses": [
3078
- "in is pounds * 0.453592 kilograms"
3078
+ "10 pounds in kilograms is 4.53592 kilograms"
3079
3079
  ]
3080
3080
  },
3081
3081
  {
@@ -3568,7 +3568,7 @@
3568
3568
  ],
3569
3569
  "query": "what is 10 pounds in kilograms",
3570
3570
  "responses": [
3571
- "in is pounds * 0.453592 kilograms"
3571
+ "10 pounds in kilograms is 4.53592 kilograms"
3572
3572
  ]
3573
3573
  },
3574
3574
  {
@@ -12386,7 +12386,7 @@
12386
12386
  }
12387
12387
  ],
12388
12388
  "generatedParenthesized": [
12389
- "(((in) is (((((ounces) / (1.097))) ((troy) (ounces))))))"
12389
+ "(((((1) (ounce)) in ((troy) (ounces))) is ((((0.9115770282588879)) ((troy) (ounces))))))"
12390
12390
  ],
12391
12391
  "metadata": {
12392
12392
  "opChoices": [
@@ -15057,11 +15057,11 @@
15057
15057
  },
15058
15058
  "word": "is"
15059
15059
  },
15060
- "generatedParenthesized": "(((in) is (((((ounces) / (1.097))) ((troy) (ounces))))))",
15060
+ "generatedParenthesized": "(((((1) (ounce)) in ((troy) (ounces))) is ((((0.9115770282588879)) ((troy) (ounces))))))",
15061
15061
  "paraphrases": "what is 1 ounce in troy ounces?",
15062
15062
  "paraphrasesParenthesized": "(((what) is (((1) (ounce)) in ((troy) (ounces))))?)",
15063
15063
  "responses": [
15064
- "in is ounces / 1.097 troy ounces"
15064
+ "1 ounce in troy ounces is 0.9115770282588879 troy ounces"
15065
15065
  ]
15066
15066
  },
15067
15067
  {
@@ -15554,7 +15554,7 @@
15554
15554
  ],
15555
15555
  "query": "what is 1 ounce in troy ounces",
15556
15556
  "responses": [
15557
- "in is ounces / 1.097 troy ounces"
15557
+ "1 ounce in troy ounces is 0.9115770282588879 troy ounces"
15558
15558
  ]
15559
15559
  },
15560
15560
  {
@@ -16130,7 +16130,7 @@
16130
16130
  }
16131
16131
  ],
16132
16132
  "generatedParenthesized": [
16133
- "(((in) is (((((1.097) * ((troy) (ounces)))) (ounces)))))"
16133
+ "(((((1) ((troy) (ounce))) in (ounces)) is ((((1.097)) (ounces)))))"
16134
16134
  ],
16135
16135
  "metadata": {
16136
16136
  "opChoices": [
@@ -18797,11 +18797,11 @@
18797
18797
  },
18798
18798
  "word": "is"
18799
18799
  },
18800
- "generatedParenthesized": "(((in) is (((((1.097) * ((troy) (ounces)))) (ounces)))))",
18800
+ "generatedParenthesized": "(((((1) ((troy) (ounce))) in (ounces)) is ((((1.097)) (ounces)))))",
18801
18801
  "paraphrases": "what is 1 troy ounce in ounces?",
18802
18802
  "paraphrasesParenthesized": "(((what) is (((1) ((troy) (ounce))) in (ounces)))?)",
18803
18803
  "responses": [
18804
- "in is 1.097 * troy ounces ounces"
18804
+ "1 troy ounce in ounces is 1.097 ounces"
18805
18805
  ]
18806
18806
  },
18807
18807
  {
@@ -19294,7 +19294,7 @@
19294
19294
  ],
19295
19295
  "query": "what is 1 troy ounce in ounces",
19296
19296
  "responses": [
19297
- "in is 1.097 * troy ounces ounces"
19297
+ "1 troy ounce in ounces is 1.097 ounces"
19298
19298
  ]
19299
19299
  },
19300
19300
  {
@@ -20037,7 +20037,7 @@
20037
20037
  ],
20038
20038
  "generatedParenthesized": [
20039
20039
  "",
20040
- "((((greg) (weight)) is (((213) (pounds)))))"
20040
+ "(((((greg)'s) (weight)) is (((213) (pounds)))))"
20041
20041
  ],
20042
20042
  "metadata": {
20043
20043
  "opChoices": [
@@ -23012,12 +23012,12 @@
23012
23012
  },
23013
23013
  "word": "is"
23014
23014
  },
23015
- "generatedParenthesized": "((((greg) (weight)) is (((213) (pounds)))))",
23015
+ "generatedParenthesized": "(((((greg)'s) (weight)) is (((213) (pounds)))))",
23016
23016
  "paraphrases": "what is greg's weight?",
23017
23017
  "paraphrasesParenthesized": "(((what) is (((greg)'s) (weight)))?)",
23018
23018
  "responses": [
23019
23019
  "",
23020
- "greg weight is 213 pounds"
23020
+ "greg's weight is 213 pounds"
23021
23021
  ]
23022
23022
  },
23023
23023
  {
@@ -23170,7 +23170,7 @@
23170
23170
  "paraphrasesParenthesized": "(((the (weight)) of (greg)) is ((213) (pounds)))",
23171
23171
  "responses": [
23172
23172
  "",
23173
- "greg weight is 213 pounds"
23173
+ "greg's weight is 213 pounds"
23174
23174
  ]
23175
23175
  },
23176
23176
  {
@@ -23570,7 +23570,7 @@
23570
23570
  "query": "the weight of greg is 213 pounds what is greg's weight",
23571
23571
  "responses": [
23572
23572
  "",
23573
- "greg weight is 213 pounds"
23573
+ "greg's weight is 213 pounds"
23574
23574
  ]
23575
23575
  },
23576
23576
  {
@@ -24517,7 +24517,7 @@
24517
24517
  ],
24518
24518
  "generatedParenthesized": [
24519
24519
  "",
24520
- "(((in) is (((((pounds) * (0.453592))) (kilograms)))))"
24520
+ "((((((greg)'s) (weight)) in (kilograms)) is ((((96.615096)) (kilograms)))))"
24521
24521
  ],
24522
24522
  "metadata": {
24523
24523
  "opChoices": [
@@ -27794,12 +27794,12 @@
27794
27794
  },
27795
27795
  "word": "is"
27796
27796
  },
27797
- "generatedParenthesized": "(((in) is (((((pounds) * (0.453592))) (kilograms)))))",
27797
+ "generatedParenthesized": "((((((greg)'s) (weight)) in (kilograms)) is ((((96.615096)) (kilograms)))))",
27798
27798
  "paraphrases": "what is greg's weight in kilograms?",
27799
27799
  "paraphrasesParenthesized": "(((what) is ((((greg)'s) (weight)) in (kilograms)))?)",
27800
27800
  "responses": [
27801
27801
  "",
27802
- "in is pounds * 0.453592 kilograms"
27802
+ "greg's weight in kilograms is 96.615096 kilograms"
27803
27803
  ]
27804
27804
  },
27805
27805
  {
@@ -27952,7 +27952,7 @@
27952
27952
  "paraphrasesParenthesized": "(((the (weight)) of (greg)) is ((213) (pounds)))",
27953
27953
  "responses": [
27954
27954
  "",
27955
- "in is pounds * 0.453592 kilograms"
27955
+ "greg's weight in kilograms is 96.615096 kilograms"
27956
27956
  ]
27957
27957
  },
27958
27958
  {
@@ -28352,7 +28352,7 @@
28352
28352
  "query": "the weight of greg is 213 pounds what is greg's weight in kilograms",
28353
28353
  "responses": [
28354
28354
  "",
28355
- "in is pounds * 0.453592 kilograms"
28355
+ "greg's weight in kilograms is 96.615096 kilograms"
28356
28356
  ]
28357
28357
  }
28358
28358
  ]
package/package.json CHANGED
@@ -281,8 +281,8 @@
281
281
  "table": "^6.7.1",
282
282
  "base-64": "^1.0.0",
283
283
  "argparse": "^2.0.1",
284
- "theprogrammablemind": "7.12.2"
284
+ "theprogrammablemind": "7.12.3-beta.1"
285
285
  },
286
- "version": "7.12.2",
286
+ "version": "7.12.3-beta.1",
287
287
  "license": "UNLICENSED"
288
288
  }