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
@@ -14,7 +14,7 @@ const template = {
14
14
  }
15
15
 
16
16
  const createConfig = () => {
17
- return new Config({ name: 'mathTemplate' }, module).add(base_km()).add(countable()).add(comparable())
17
+ return new Config({ name: 'mathTemplate' }, module).add(base_km(), countable(), comparable())
18
18
  }
19
19
 
20
20
  knowledgeModule({
@@ -1849,40 +1849,6 @@
1849
1849
  0
1850
1850
  ]
1851
1851
  ],
1852
- [
1853
- [
1854
- "if",
1855
- 0
1856
- ],
1857
- [
1858
- "like",
1859
- 0
1860
- ],
1861
- [
1862
- "love",
1863
- 0
1864
- ],
1865
- [
1866
- "orList",
1867
- 0
1868
- ],
1869
- [
1870
- "then",
1871
- 0
1872
- ],
1873
- [
1874
- "unknown",
1875
- 0
1876
- ],
1877
- [
1878
- "unknown",
1879
- 1
1880
- ],
1881
- [
1882
- "want",
1883
- 0
1884
- ]
1885
- ],
1886
1852
  [
1887
1853
  [
1888
1854
  "if",
@@ -2276,40 +2242,6 @@
2276
2242
  0
2277
2243
  ]
2278
2244
  ],
2279
- [
2280
- [
2281
- "if",
2282
- 0
2283
- ],
2284
- [
2285
- "like",
2286
- 0
2287
- ],
2288
- [
2289
- "love",
2290
- 0
2291
- ],
2292
- [
2293
- "orList",
2294
- 0
2295
- ],
2296
- [
2297
- "then",
2298
- 0
2299
- ],
2300
- [
2301
- "unknown",
2302
- 0
2303
- ],
2304
- [
2305
- "unknown",
2306
- 1
2307
- ],
2308
- [
2309
- "want",
2310
- 0
2311
- ]
2312
- ],
2313
2245
  [
2314
2246
  [
2315
2247
  "if",
@@ -34,6 +34,7 @@ const api = new API();
34
34
  */
35
35
  const createConfig = () => {
36
36
  const config = new Config({ name: 'ordering' }, module)
37
+ config.stop_auto_rebuild()
37
38
  config.api = api
38
39
  config.add(hierarchy())
39
40
  // config.load(template, ordering_instance)
@@ -113,6 +114,7 @@ const createConfig = () => {
113
114
  })
114
115
  */
115
116
  })
117
+ config.restart_auto_rebuild()
116
118
  return config
117
119
  }
118
120
 
package/common/people.js CHANGED
@@ -47,6 +47,7 @@ let configStruct = {
47
47
 
48
48
  const createConfig = () => {
49
49
  const config = new Config(configStruct, module)
50
+ config.stop_auto_rebuild()
50
51
  config.add(hierarchy())
51
52
  config.initializer( ({baseConfig, context, apis, isModule}) => {
52
53
  // const api = km('properties').api
@@ -66,6 +67,7 @@ const createConfig = () => {
66
67
  })
67
68
 
68
69
  })
70
+ config.restart_auto_rebuild()
69
71
  return config
70
72
  }
71
73
 
@@ -215,6 +215,16 @@
215
215
  1
216
216
  ]
217
217
  ],
218
+ [
219
+ [
220
+ "is",
221
+ 0
222
+ ],
223
+ [
224
+ "unknown",
225
+ 1
226
+ ]
227
+ ],
218
228
  [
219
229
  [
220
230
  "owns",
@@ -434,14 +444,14 @@
434
444
  "owner": {
435
445
  "dead": true,
436
446
  "level": 1,
437
- "marker": "owner",
447
+ "marker": "unknown",
438
448
  "range": {
439
449
  "end": 58,
440
450
  "start": 54
441
451
  },
442
452
  "text": "wendy",
443
453
  "types": [
444
- "owner"
454
+ "isEder"
445
455
  ],
446
456
  "unknown": true,
447
457
  "value": "wendy",
@@ -647,14 +657,14 @@
647
657
  "owner": {
648
658
  "dead": true,
649
659
  "level": 1,
650
- "marker": "owner",
660
+ "marker": "unknown",
651
661
  "range": {
652
662
  "end": 58,
653
663
  "start": 54
654
664
  },
655
665
  "text": "wendy",
656
666
  "types": [
657
- "owner"
667
+ "isEder"
658
668
  ],
659
669
  "unknown": true,
660
670
  "value": "wendy",
@@ -735,7 +745,7 @@
735
745
  "generatedParenthesized": [
736
746
  "",
737
747
  "",
738
- "(((cat) is (((cleo)))))"
748
+ "(((((the (cat)) owned by (wendy))) is (((cleo)))))"
739
749
  ],
740
750
  "metadata": {
741
751
  "opChoices": [
@@ -1824,14 +1834,14 @@
1824
1834
  "owner": {
1825
1835
  "dead": true,
1826
1836
  "level": 1,
1827
- "marker": "owner",
1837
+ "marker": "unknown",
1828
1838
  "range": {
1829
1839
  "end": 58,
1830
1840
  "start": 54
1831
1841
  },
1832
1842
  "text": "wendy",
1833
1843
  "types": [
1834
- "owner"
1844
+ "isEder"
1835
1845
  ],
1836
1846
  "unknown": true,
1837
1847
  "value": "wendy",
@@ -2037,14 +2047,14 @@
2037
2047
  "owner": {
2038
2048
  "dead": true,
2039
2049
  "level": 1,
2040
- "marker": "owner",
2050
+ "marker": "unknown",
2041
2051
  "range": {
2042
2052
  "end": 58,
2043
2053
  "start": 54
2044
2054
  },
2045
2055
  "text": "wendy",
2046
2056
  "types": [
2047
- "owner"
2057
+ "isEder"
2048
2058
  ],
2049
2059
  "unknown": true,
2050
2060
  "value": "wendy",
@@ -2121,13 +2131,13 @@
2121
2131
  },
2122
2132
  "word": "is"
2123
2133
  },
2124
- "generatedParenthesized": "(((cat) is (((cleo)))))",
2134
+ "generatedParenthesized": "(((((the (cat)) owned by (wendy))) is (((cleo)))))",
2125
2135
  "paraphrases": "who is the cat owned by wendy?",
2126
2136
  "paraphrasesParenthesized": "(((who) is (((the (cat)) owned by (wendy))))?)",
2127
2137
  "responses": [
2128
2138
  "",
2129
2139
  "",
2130
- "cat is cleo"
2140
+ "the cat owned by wendy is cleo"
2131
2141
  ]
2132
2142
  },
2133
2143
  {
@@ -2203,7 +2213,7 @@
2203
2213
  "responses": [
2204
2214
  "",
2205
2215
  "",
2206
- "cat is cleo"
2216
+ "the cat owned by wendy is cleo"
2207
2217
  ]
2208
2218
  },
2209
2219
  {
@@ -2280,7 +2290,7 @@
2280
2290
  "responses": [
2281
2291
  "",
2282
2292
  "",
2283
- "cat is cleo"
2293
+ "the cat owned by wendy is cleo"
2284
2294
  ]
2285
2295
  },
2286
2296
  {
@@ -2612,7 +2622,7 @@
2612
2622
  "responses": [
2613
2623
  "",
2614
2624
  "",
2615
- "cat is cleo"
2625
+ "the cat owned by wendy is cleo"
2616
2626
  ]
2617
2627
  },
2618
2628
  {
@@ -2813,14 +2823,15 @@
2813
2823
  "owner": {
2814
2824
  "dead": true,
2815
2825
  "level": 1,
2816
- "marker": "owner",
2826
+ "marker": "unknown",
2817
2827
  "range": {
2818
2828
  "end": 21,
2819
2829
  "start": 17
2820
2830
  },
2821
2831
  "text": "wendy",
2822
2832
  "types": [
2823
- "owner"
2833
+ "isEder",
2834
+ "unknown"
2824
2835
  ],
2825
2836
  "unknown": true,
2826
2837
  "value": "wendy",
@@ -2913,14 +2924,15 @@
2913
2924
  "dead": true,
2914
2925
  "focus": true,
2915
2926
  "level": 1,
2916
- "marker": "owner",
2927
+ "marker": "unknown",
2917
2928
  "range": {
2918
2929
  "end": 21,
2919
2930
  "start": 17
2920
2931
  },
2921
2932
  "text": "wendy",
2922
2933
  "types": [
2923
- "owner"
2934
+ "isEder",
2935
+ "unknown"
2924
2936
  ],
2925
2937
  "unknown": true,
2926
2938
  "value": "wendy",
@@ -3642,14 +3654,15 @@
3642
3654
  "dead": true,
3643
3655
  "focus": true,
3644
3656
  "level": 1,
3645
- "marker": "owner",
3657
+ "marker": "unknown",
3646
3658
  "range": {
3647
3659
  "end": 21,
3648
3660
  "start": 17
3649
3661
  },
3650
3662
  "text": "wendy",
3651
3663
  "types": [
3652
- "owner"
3664
+ "isEder",
3665
+ "unknown"
3653
3666
  ],
3654
3667
  "unknown": true,
3655
3668
  "value": "wendy",
@@ -3764,14 +3777,15 @@
3764
3777
  "dead": true,
3765
3778
  "focus": true,
3766
3779
  "level": 1,
3767
- "marker": "owner",
3780
+ "marker": "unknown",
3768
3781
  "range": {
3769
3782
  "end": 21,
3770
3783
  "start": 17
3771
3784
  },
3772
3785
  "text": "wendy",
3773
3786
  "types": [
3774
- "owner"
3787
+ "isEder",
3788
+ "unknown"
3775
3789
  ],
3776
3790
  "unknown": true,
3777
3791
  "value": "wendy",
@@ -3911,14 +3925,15 @@
3911
3925
  "owner": {
3912
3926
  "dead": true,
3913
3927
  "level": 1,
3914
- "marker": "owner",
3928
+ "marker": "unknown",
3915
3929
  "range": {
3916
3930
  "end": 21,
3917
3931
  "start": 17
3918
3932
  },
3919
3933
  "text": "wendy",
3920
3934
  "types": [
3921
- "owner"
3935
+ "isEder",
3936
+ "unknown"
3922
3937
  ],
3923
3938
  "unknown": true,
3924
3939
  "value": "wendy",
@@ -4568,6 +4583,16 @@
4568
4583
  1
4569
4584
  ]
4570
4585
  ],
4586
+ [
4587
+ [
4588
+ "is",
4589
+ 0
4590
+ ],
4591
+ [
4592
+ "unknown",
4593
+ 1
4594
+ ]
4595
+ ],
4571
4596
  [
4572
4597
  [
4573
4598
  "owns",
@@ -4787,14 +4812,14 @@
4787
4812
  "owner": {
4788
4813
  "dead": true,
4789
4814
  "level": 1,
4790
- "marker": "owner",
4815
+ "marker": "unknown",
4791
4816
  "range": {
4792
4817
  "end": 58,
4793
4818
  "start": 54
4794
4819
  },
4795
4820
  "text": "wendy",
4796
4821
  "types": [
4797
- "owner"
4822
+ "isEder"
4798
4823
  ],
4799
4824
  "unknown": true,
4800
4825
  "value": "wendy",
@@ -4909,14 +4934,14 @@
4909
4934
  "owner": {
4910
4935
  "dead": true,
4911
4936
  "level": 1,
4912
- "marker": "owner",
4937
+ "marker": "unknown",
4913
4938
  "range": {
4914
4939
  "end": 58,
4915
4940
  "start": 54
4916
4941
  },
4917
4942
  "text": "wendy",
4918
4943
  "types": [
4919
- "owner"
4944
+ "isEder"
4920
4945
  ],
4921
4946
  "unknown": true,
4922
4947
  "value": "wendy",
@@ -5082,14 +5107,14 @@
5082
5107
  "owner": {
5083
5108
  "dead": true,
5084
5109
  "level": 1,
5085
- "marker": "owner",
5110
+ "marker": "unknown",
5086
5111
  "range": {
5087
5112
  "end": 58,
5088
5113
  "start": 54
5089
5114
  },
5090
5115
  "text": "wendy",
5091
5116
  "types": [
5092
- "owner"
5117
+ "isEder"
5093
5118
  ],
5094
5119
  "unknown": true,
5095
5120
  "value": "wendy",
@@ -6259,14 +6284,14 @@
6259
6284
  "owner": {
6260
6285
  "dead": true,
6261
6286
  "level": 1,
6262
- "marker": "owner",
6287
+ "marker": "unknown",
6263
6288
  "range": {
6264
6289
  "end": 58,
6265
6290
  "start": 54
6266
6291
  },
6267
6292
  "text": "wendy",
6268
6293
  "types": [
6269
- "owner"
6294
+ "isEder"
6270
6295
  ],
6271
6296
  "unknown": true,
6272
6297
  "value": "wendy",
@@ -6381,14 +6406,14 @@
6381
6406
  "owner": {
6382
6407
  "dead": true,
6383
6408
  "level": 1,
6384
- "marker": "owner",
6409
+ "marker": "unknown",
6385
6410
  "range": {
6386
6411
  "end": 58,
6387
6412
  "start": 54
6388
6413
  },
6389
6414
  "text": "wendy",
6390
6415
  "types": [
6391
- "owner"
6416
+ "isEder"
6392
6417
  ],
6393
6418
  "unknown": true,
6394
6419
  "value": "wendy",
@@ -6554,14 +6579,14 @@
6554
6579
  "owner": {
6555
6580
  "dead": true,
6556
6581
  "level": 1,
6557
- "marker": "owner",
6582
+ "marker": "unknown",
6558
6583
  "range": {
6559
6584
  "end": 58,
6560
6585
  "start": 54
6561
6586
  },
6562
6587
  "text": "wendy",
6563
6588
  "types": [
6564
- "owner"
6589
+ "isEder"
6565
6590
  ],
6566
6591
  "unknown": true,
6567
6592
  "value": "wendy",
@@ -7410,6 +7435,20 @@
7410
7435
  1
7411
7436
  ]
7412
7437
  ],
7438
+ [
7439
+ [
7440
+ "is",
7441
+ 0
7442
+ ],
7443
+ [
7444
+ "propertyOf",
7445
+ 0
7446
+ ],
7447
+ [
7448
+ "unknown",
7449
+ 1
7450
+ ]
7451
+ ],
7413
7452
  [
7414
7453
  [
7415
7454
  "is",
@@ -8104,7 +8143,7 @@
8104
8143
  "generatedParenthesized": [
8105
8144
  "",
8106
8145
  "",
8107
- "(((given_name) is (((greg23)))))"
8146
+ "((((the (given) (name)) of (greg)) is (((greg23)))))"
8108
8147
  ],
8109
8148
  "metadata": {
8110
8149
  "opChoices": [
@@ -9698,13 +9737,13 @@
9698
9737
  },
9699
9738
  "word": "is"
9700
9739
  },
9701
- "generatedParenthesized": "(((given_name) is (((greg23)))))",
9740
+ "generatedParenthesized": "((((the (given) (name)) of (greg)) is (((greg23)))))",
9702
9741
  "paraphrases": "what is the given name of greg?",
9703
9742
  "paraphrasesParenthesized": "(((what) is ((the (given) (name)) of (greg)))?)",
9704
9743
  "responses": [
9705
9744
  "",
9706
9745
  "",
9707
- "given_name is greg23"
9746
+ "the given name of greg is greg23"
9708
9747
  ]
9709
9748
  },
9710
9749
  {
@@ -9863,7 +9902,7 @@
9863
9902
  "responses": [
9864
9903
  "",
9865
9904
  "",
9866
- "given_name is greg23"
9905
+ "the given name of greg is greg23"
9867
9906
  ]
9868
9907
  },
9869
9908
  {
@@ -9961,7 +10000,7 @@
9961
10000
  "responses": [
9962
10001
  "",
9963
10002
  "",
9964
- "given_name is greg23"
10003
+ "the given name of greg is greg23"
9965
10004
  ]
9966
10005
  },
9967
10006
  {
@@ -10293,7 +10332,7 @@
10293
10332
  "responses": [
10294
10333
  "",
10295
10334
  "",
10296
- "given_name is greg23"
10335
+ "the given name of greg is greg23"
10297
10336
  ]
10298
10337
  },
10299
10338
  {
@@ -18538,6 +18577,24 @@
18538
18577
  0
18539
18578
  ]
18540
18579
  ],
18580
+ [
18581
+ [
18582
+ "by",
18583
+ 0
18584
+ ],
18585
+ [
18586
+ "is",
18587
+ 0
18588
+ ],
18589
+ [
18590
+ "owned",
18591
+ 0
18592
+ ],
18593
+ [
18594
+ "unknown",
18595
+ 0
18596
+ ]
18597
+ ],
18541
18598
  [
18542
18599
  [
18543
18600
  "by",
@@ -18754,14 +18811,15 @@
18754
18811
  "owner": {
18755
18812
  "dead": true,
18756
18813
  "level": 1,
18757
- "marker": "owner",
18814
+ "marker": "unknown",
18758
18815
  "range": {
18759
18816
  "end": 26,
18760
18817
  "start": 20
18761
18818
  },
18762
18819
  "text": "owner23",
18763
18820
  "types": [
18764
- "owner"
18821
+ "isEder",
18822
+ "unknown"
18765
18823
  ],
18766
18824
  "unknown": true,
18767
18825
  "value": "owner23",
@@ -18899,14 +18957,15 @@
18899
18957
  {
18900
18958
  "dead": true,
18901
18959
  "level": 1,
18902
- "marker": "owner",
18960
+ "marker": "unknown",
18903
18961
  "range": {
18904
18962
  "end": 26,
18905
18963
  "start": 20
18906
18964
  },
18907
18965
  "text": "owner23",
18908
18966
  "types": [
18909
- "owner"
18967
+ "isEder",
18968
+ "unknown"
18910
18969
  ],
18911
18970
  "unknown": true,
18912
18971
  "value": "owner23",
@@ -19803,14 +19862,15 @@
19803
19862
  "owner": {
19804
19863
  "dead": true,
19805
19864
  "level": 1,
19806
- "marker": "owner",
19865
+ "marker": "unknown",
19807
19866
  "range": {
19808
19867
  "end": 26,
19809
19868
  "start": 20
19810
19869
  },
19811
19870
  "text": "owner23",
19812
19871
  "types": [
19813
- "owner"
19872
+ "isEder",
19873
+ "unknown"
19814
19874
  ],
19815
19875
  "unknown": true,
19816
19876
  "value": "owner23",
@@ -19970,14 +20030,15 @@
19970
20030
  {
19971
20031
  "dead": true,
19972
20032
  "level": 1,
19973
- "marker": "owner",
20033
+ "marker": "unknown",
19974
20034
  "range": {
19975
20035
  "end": 26,
19976
20036
  "start": 20
19977
20037
  },
19978
20038
  "text": "owner23",
19979
20039
  "types": [
19980
- "owner"
20040
+ "isEder",
20041
+ "unknown"
19981
20042
  ],
19982
20043
  "unknown": true,
19983
20044
  "value": "owner23",
@@ -20199,14 +20260,15 @@
20199
20260
  "owner": {
20200
20261
  "dead": true,
20201
20262
  "level": 1,
20202
- "marker": "owner",
20263
+ "marker": "unknown",
20203
20264
  "range": {
20204
20265
  "end": 26,
20205
20266
  "start": 20
20206
20267
  },
20207
20268
  "text": "owner23",
20208
20269
  "types": [
20209
- "owner"
20270
+ "isEder",
20271
+ "unknown"
20210
20272
  ],
20211
20273
  "unknown": true,
20212
20274
  "value": "owner23",
@@ -21634,14 +21696,14 @@
21634
21696
  "owner": {
21635
21697
  "dead": true,
21636
21698
  "level": 1,
21637
- "marker": "owner",
21699
+ "marker": "unknown",
21638
21700
  "range": {
21639
21701
  "end": 21,
21640
21702
  "start": 17
21641
21703
  },
21642
21704
  "text": "wendy",
21643
21705
  "types": [
21644
- "owner"
21706
+ "isEder"
21645
21707
  ],
21646
21708
  "unknown": true,
21647
21709
  "value": "wendy",
@@ -22222,14 +22284,14 @@
22222
22284
  "owner": {
22223
22285
  "dead": true,
22224
22286
  "level": 1,
22225
- "marker": "owner",
22287
+ "marker": "unknown",
22226
22288
  "range": {
22227
22289
  "end": 21,
22228
22290
  "start": 17
22229
22291
  },
22230
22292
  "text": "wendy",
22231
22293
  "types": [
22232
- "owner"
22294
+ "isEder"
22233
22295
  ],
22234
22296
  "unknown": true,
22235
22297
  "value": "wendy",
package/common/pipboy.js CHANGED
@@ -503,11 +503,13 @@ addWeapon('rifle')
503
503
 
504
504
  const createConfig = () => {
505
505
  const config = new Config(configStruct, module)
506
+ config.stop_auto_rebuild()
506
507
  //console.log('base_km.config.hierarchy', JSON.stringify(base_km.config.hierarchy, null, 2))
507
- config.add(base_km()).add(countable()).add(comparable()).add(help()).add(math())
508
+ config.add(base_km(), countable(), comparable(), help(), math())
508
509
  // console.log('config.config.hierarchy', JSON.stringify(config.config.hierarchy, null, 2))
509
510
  // console.log('config.hierarchy', config.hierarchy)
510
511
  config.api = api
512
+ config.restart_auto_rebuild()
511
513
  return config
512
514
  }
513
515