ekms 7.12.3 → 7.12.4-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/common/animals.instance.json +52 -0
  2. package/common/avatar.js +1 -2
  3. package/common/comparable.js +1 -1
  4. package/common/concept.js +2 -0
  5. package/common/countable.js +1 -1
  6. package/common/crew.instance.json +348 -0
  7. package/common/crew.js +3 -2
  8. package/common/currency.js +2 -0
  9. package/common/dialogues.js +7 -3
  10. package/common/dimension.js +3 -1
  11. package/common/dimension.test.json +170 -26
  12. package/common/dimensionTemplate.instance.json +4 -0
  13. package/common/edible.instance.json +128 -0
  14. package/common/edible.js +1 -2
  15. package/common/emotions.instance.json +4 -0
  16. package/common/emotions.js +2 -0
  17. package/common/fastfood.instance.json +939 -435
  18. package/common/fastfood.js +149 -62
  19. package/common/fastfood.test.json +36474 -985
  20. package/common/formulas.js +3 -1
  21. package/common/formulasTemplate.instance.json +4 -0
  22. package/common/formulasTemplate.js +1 -1
  23. package/common/help.js +2 -0
  24. package/common/hierarchy.js +2 -0
  25. package/common/javascript.js +2 -0
  26. package/common/kirk.instance.json +4 -0
  27. package/common/length.instance.json +60 -0
  28. package/common/math.js +1 -4
  29. package/common/mathTemplate.instance.json +8 -0
  30. package/common/mathTemplate.js +1 -1
  31. package/common/ordering.instance.json +8 -0
  32. package/common/ordering.js +2 -0
  33. package/common/people.instance.json +32 -60
  34. package/common/people.js +2 -0
  35. package/common/pipboy.js +3 -1
  36. package/common/pipboy.test.json +13 -5
  37. package/common/pipboyTemplate.js +1 -1
  38. package/common/pokemon.instance.json +52 -0
  39. package/common/pokemon.js +2 -0
  40. package/common/pressure.instance.json +16 -0
  41. package/common/properties.instance.json +4 -0
  42. package/common/properties.js +3 -3
  43. package/common/reports.instance.json +9 -1
  44. package/common/reports.js +7 -3
  45. package/common/scorekeeper.js +3 -3
  46. package/common/sizeable.js +1 -1
  47. package/common/spock.instance.json +4 -0
  48. package/common/stgame.js +2 -0
  49. package/common/stm.js +21 -6
  50. package/common/tell.js +2 -0
  51. package/common/temperature.instance.json +16 -84
  52. package/common/time.js +2 -0
  53. package/common/ui.instance.json +4 -0
  54. package/common/ui.js +3 -1
  55. package/common/weight.instance.json +48 -0
  56. package/package.json +2 -2
@@ -812,6 +812,10 @@
812
812
  "thisitthat",
813
813
  "queryable"
814
814
  ],
815
+ [
816
+ "to",
817
+ "preposition"
818
+ ],
815
819
  [
816
820
  "toAble",
817
821
  "toAble"
@@ -2069,6 +2073,10 @@
2069
2073
  "thisitthat",
2070
2074
  "queryable"
2071
2075
  ],
2076
+ [
2077
+ "to",
2078
+ "preposition"
2079
+ ],
2072
2080
  [
2073
2081
  "toAble",
2074
2082
  "toAble"
@@ -3326,6 +3334,10 @@
3326
3334
  "thisitthat",
3327
3335
  "queryable"
3328
3336
  ],
3337
+ [
3338
+ "to",
3339
+ "preposition"
3340
+ ],
3329
3341
  [
3330
3342
  "toAble",
3331
3343
  "toAble"
@@ -4573,6 +4585,10 @@
4573
4585
  "thisitthat",
4574
4586
  "queryable"
4575
4587
  ],
4588
+ [
4589
+ "to",
4590
+ "preposition"
4591
+ ],
4576
4592
  [
4577
4593
  "toAble",
4578
4594
  "toAble"
@@ -5786,6 +5802,10 @@
5786
5802
  "thisitthat",
5787
5803
  "queryable"
5788
5804
  ],
5805
+ [
5806
+ "to",
5807
+ "preposition"
5808
+ ],
5789
5809
  [
5790
5810
  "toAble",
5791
5811
  "toAble"
@@ -7028,6 +7048,10 @@
7028
7048
  "thisitthat",
7029
7049
  "queryable"
7030
7050
  ],
7051
+ [
7052
+ "to",
7053
+ "preposition"
7054
+ ],
7031
7055
  [
7032
7056
  "toAble",
7033
7057
  "toAble"
@@ -8349,6 +8373,10 @@
8349
8373
  "thisitthat",
8350
8374
  "queryable"
8351
8375
  ],
8376
+ [
8377
+ "to",
8378
+ "preposition"
8379
+ ],
8352
8380
  [
8353
8381
  "toAble",
8354
8382
  "toAble"
@@ -9670,6 +9698,10 @@
9670
9698
  "thisitthat",
9671
9699
  "queryable"
9672
9700
  ],
9701
+ [
9702
+ "to",
9703
+ "preposition"
9704
+ ],
9673
9705
  [
9674
9706
  "toAble",
9675
9707
  "toAble"
@@ -10981,6 +11013,10 @@
10981
11013
  "thisitthat",
10982
11014
  "queryable"
10983
11015
  ],
11016
+ [
11017
+ "to",
11018
+ "preposition"
11019
+ ],
10984
11020
  [
10985
11021
  "toAble",
10986
11022
  "toAble"
@@ -12258,6 +12294,10 @@
12258
12294
  "thisitthat",
12259
12295
  "queryable"
12260
12296
  ],
12297
+ [
12298
+ "to",
12299
+ "preposition"
12300
+ ],
12261
12301
  [
12262
12302
  "toAble",
12263
12303
  "toAble"
@@ -13564,6 +13604,10 @@
13564
13604
  "thisitthat",
13565
13605
  "queryable"
13566
13606
  ],
13607
+ [
13608
+ "to",
13609
+ "preposition"
13610
+ ],
13567
13611
  [
13568
13612
  "toAble",
13569
13613
  "toAble"
@@ -14969,6 +15013,10 @@
14969
15013
  "thisitthat",
14970
15014
  "queryable"
14971
15015
  ],
15016
+ [
15017
+ "to",
15018
+ "preposition"
15019
+ ],
14972
15020
  [
14973
15021
  "toAble",
14974
15022
  "toAble"
@@ -16354,6 +16402,10 @@
16354
16402
  "thisitthat",
16355
16403
  "queryable"
16356
16404
  ],
16405
+ [
16406
+ "to",
16407
+ "preposition"
16408
+ ],
16357
16409
  [
16358
16410
  "toAble",
16359
16411
  "toAble"
@@ -17729,6 +17781,10 @@
17729
17781
  "thisitthat",
17730
17782
  "queryable"
17731
17783
  ],
17784
+ [
17785
+ "to",
17786
+ "preposition"
17787
+ ],
17732
17788
  [
17733
17789
  "toAble",
17734
17790
  "toAble"
@@ -19086,6 +19142,10 @@
19086
19142
  "thisitthat",
19087
19143
  "queryable"
19088
19144
  ],
19145
+ [
19146
+ "to",
19147
+ "preposition"
19148
+ ],
19089
19149
  [
19090
19150
  "toAble",
19091
19151
  "toAble"
@@ -20387,6 +20447,10 @@
20387
20447
  "thisitthat",
20388
20448
  "queryable"
20389
20449
  ],
20450
+ [
20451
+ "to",
20452
+ "preposition"
20453
+ ],
20390
20454
  [
20391
20455
  "toAble",
20392
20456
  "toAble"
@@ -20932,6 +20996,24 @@
20932
20996
  1
20933
20997
  ]
20934
20998
  ],
20999
+ [
21000
+ [
21001
+ "is",
21002
+ 0
21003
+ ],
21004
+ [
21005
+ "propertyOf",
21006
+ 0
21007
+ ],
21008
+ [
21009
+ "the",
21010
+ 0
21011
+ ],
21012
+ [
21013
+ "unknown",
21014
+ 1
21015
+ ]
21016
+ ],
20935
21017
  [
20936
21018
  [
20937
21019
  "is",
@@ -21941,6 +22023,10 @@
21941
22023
  "thisitthat",
21942
22024
  "queryable"
21943
22025
  ],
22026
+ [
22027
+ "to",
22028
+ "preposition"
22029
+ ],
21944
22030
  [
21945
22031
  "toAble",
21946
22032
  "toAble"
@@ -22600,6 +22686,24 @@
22600
22686
  1
22601
22687
  ]
22602
22688
  ],
22689
+ [
22690
+ [
22691
+ "is",
22692
+ 0
22693
+ ],
22694
+ [
22695
+ "propertyOf",
22696
+ 0
22697
+ ],
22698
+ [
22699
+ "the",
22700
+ 0
22701
+ ],
22702
+ [
22703
+ "unknown",
22704
+ 1
22705
+ ]
22706
+ ],
22603
22707
  [
22604
22708
  [
22605
22709
  "is",
@@ -23595,6 +23699,10 @@
23595
23699
  "thisitthat",
23596
23700
  "queryable"
23597
23701
  ],
23702
+ [
23703
+ "to",
23704
+ "preposition"
23705
+ ],
23598
23706
  [
23599
23707
  "toAble",
23600
23708
  "toAble"
@@ -24880,6 +24988,10 @@
24880
24988
  "thisitthat",
24881
24989
  "queryable"
24882
24990
  ],
24991
+ [
24992
+ "to",
24993
+ "preposition"
24994
+ ],
24883
24995
  [
24884
24996
  "toAble",
24885
24997
  "toAble"
@@ -26168,6 +26280,10 @@
26168
26280
  "thisitthat",
26169
26281
  "queryable"
26170
26282
  ],
26283
+ [
26284
+ "to",
26285
+ "preposition"
26286
+ ],
26171
26287
  [
26172
26288
  "toAble",
26173
26289
  "toAble"
@@ -27446,6 +27562,10 @@
27446
27562
  "thisitthat",
27447
27563
  "queryable"
27448
27564
  ],
27565
+ [
27566
+ "to",
27567
+ "preposition"
27568
+ ],
27449
27569
  [
27450
27570
  "toAble",
27451
27571
  "toAble"
@@ -28724,6 +28844,10 @@
28724
28844
  "thisitthat",
28725
28845
  "queryable"
28726
28846
  ],
28847
+ [
28848
+ "to",
28849
+ "preposition"
28850
+ ],
28727
28851
  [
28728
28852
  "toAble",
28729
28853
  "toAble"
@@ -30002,6 +30126,10 @@
30002
30126
  "thisitthat",
30003
30127
  "queryable"
30004
30128
  ],
30129
+ [
30130
+ "to",
30131
+ "preposition"
30132
+ ],
30005
30133
  [
30006
30134
  "toAble",
30007
30135
  "toAble"
@@ -30814,6 +30942,32 @@
30814
30942
  1
30815
30943
  ]
30816
30944
  ],
30945
+ [
30946
+ [
30947
+ "arm",
30948
+ 0
30949
+ ],
30950
+ [
30951
+ "is",
30952
+ 0
30953
+ ],
30954
+ [
30955
+ "means",
30956
+ 0
30957
+ ],
30958
+ [
30959
+ "propertyOf",
30960
+ 0
30961
+ ],
30962
+ [
30963
+ "the",
30964
+ 0
30965
+ ],
30966
+ [
30967
+ "unknown",
30968
+ 1
30969
+ ]
30970
+ ],
30817
30971
  [
30818
30972
  [
30819
30973
  "arm",
@@ -31907,6 +32061,10 @@
31907
32061
  "thisitthat",
31908
32062
  "queryable"
31909
32063
  ],
32064
+ [
32065
+ "to",
32066
+ "preposition"
32067
+ ],
31910
32068
  [
31911
32069
  "toAble",
31912
32070
  "toAble"
@@ -32759,6 +32917,70 @@
32759
32917
  1
32760
32918
  ]
32761
32919
  ],
32920
+ [
32921
+ [
32922
+ "disarm",
32923
+ 0
32924
+ ],
32925
+ [
32926
+ "is",
32927
+ 0
32928
+ ],
32929
+ [
32930
+ "means",
32931
+ 0
32932
+ ],
32933
+ [
32934
+ "not",
32935
+ 0
32936
+ ],
32937
+ [
32938
+ "propertyOf",
32939
+ 0
32940
+ ],
32941
+ [
32942
+ "the",
32943
+ 0
32944
+ ],
32945
+ [
32946
+ "unknown",
32947
+ 0
32948
+ ],
32949
+ [
32950
+ "unknown",
32951
+ 1
32952
+ ]
32953
+ ],
32954
+ [
32955
+ [
32956
+ "disarm",
32957
+ 0
32958
+ ],
32959
+ [
32960
+ "is",
32961
+ 0
32962
+ ],
32963
+ [
32964
+ "means",
32965
+ 0
32966
+ ],
32967
+ [
32968
+ "not",
32969
+ 0
32970
+ ],
32971
+ [
32972
+ "propertyOf",
32973
+ 0
32974
+ ],
32975
+ [
32976
+ "the",
32977
+ 0
32978
+ ],
32979
+ [
32980
+ "unknown",
32981
+ 1
32982
+ ]
32983
+ ],
32762
32984
  [
32763
32985
  [
32764
32986
  "disarm",
@@ -33325,6 +33547,10 @@
33325
33547
  "propertyOf",
33326
33548
  0
33327
33549
  ],
33550
+ [
33551
+ "the",
33552
+ 0
33553
+ ],
33328
33554
  [
33329
33555
  "unknown",
33330
33556
  1
@@ -33343,6 +33569,58 @@
33343
33569
  "means",
33344
33570
  0
33345
33571
  ],
33572
+ [
33573
+ "propertyOf",
33574
+ 0
33575
+ ],
33576
+ [
33577
+ "unknown",
33578
+ 1
33579
+ ]
33580
+ ],
33581
+ [
33582
+ [
33583
+ "arm",
33584
+ 0
33585
+ ],
33586
+ [
33587
+ "is",
33588
+ 0
33589
+ ],
33590
+ [
33591
+ "means",
33592
+ 0
33593
+ ],
33594
+ [
33595
+ "the",
33596
+ 0
33597
+ ],
33598
+ [
33599
+ "unknown",
33600
+ 0
33601
+ ]
33602
+ ],
33603
+ [
33604
+ [
33605
+ "disarm",
33606
+ 0
33607
+ ],
33608
+ [
33609
+ "is",
33610
+ 0
33611
+ ],
33612
+ [
33613
+ "means",
33614
+ 0
33615
+ ],
33616
+ [
33617
+ "not",
33618
+ 0
33619
+ ],
33620
+ [
33621
+ "propertyOf",
33622
+ 0
33623
+ ],
33346
33624
  [
33347
33625
  "the",
33348
33626
  0
@@ -33380,6 +33658,10 @@
33380
33658
  [
33381
33659
  "unknown",
33382
33660
  0
33661
+ ],
33662
+ [
33663
+ "unknown",
33664
+ 1
33383
33665
  ]
33384
33666
  ],
33385
33667
  [
@@ -33446,6 +33728,36 @@
33446
33728
  1
33447
33729
  ]
33448
33730
  ],
33731
+ [
33732
+ [
33733
+ "disarm",
33734
+ 0
33735
+ ],
33736
+ [
33737
+ "is",
33738
+ 0
33739
+ ],
33740
+ [
33741
+ "means",
33742
+ 0
33743
+ ],
33744
+ [
33745
+ "not",
33746
+ 0
33747
+ ],
33748
+ [
33749
+ "propertyOf",
33750
+ 0
33751
+ ],
33752
+ [
33753
+ "the",
33754
+ 0
33755
+ ],
33756
+ [
33757
+ "unknown",
33758
+ 1
33759
+ ]
33760
+ ],
33449
33761
  [
33450
33762
  [
33451
33763
  "disarm",
@@ -34404,6 +34716,42 @@
34404
34716
  1
34405
34717
  ]
34406
34718
  ],
34719
+ [
34720
+ [
34721
+ "is",
34722
+ 0
34723
+ ],
34724
+ [
34725
+ "propertyOf",
34726
+ 0
34727
+ ],
34728
+ [
34729
+ "the",
34730
+ 0
34731
+ ],
34732
+ [
34733
+ "unknown",
34734
+ 1
34735
+ ]
34736
+ ],
34737
+ [
34738
+ [
34739
+ "is",
34740
+ 0
34741
+ ],
34742
+ [
34743
+ "propertyOf",
34744
+ 0
34745
+ ],
34746
+ [
34747
+ "the",
34748
+ 0
34749
+ ],
34750
+ [
34751
+ "unknown",
34752
+ 1
34753
+ ]
34754
+ ],
34407
34755
  [
34408
34756
  [
34409
34757
  "is",
package/common/crew.js CHANGED
@@ -37,8 +37,8 @@ const template = {
37
37
 
38
38
  const createConfig = () => {
39
39
  const config = new Config({ name: 'crew', }, module)
40
- config.add(avatar())
41
- config.add(animals())
40
+ config.stop_auto_rebuild()
41
+ config.add(avatar(), animals())
42
42
  crew_instance.base = 'avatar'
43
43
  config.initializer( ({config, apis}) => {
44
44
  const api = apis('properties')
@@ -73,6 +73,7 @@ const createConfig = () => {
73
73
  after: [{tag: 'weapon', id: 'weapon'}],
74
74
  config })
75
75
  })
76
+ config.restart_auto_rebuild()
76
77
  return config
77
78
  }
78
79
 
@@ -94,6 +94,7 @@ let configStruct = {
94
94
 
95
95
  const createConfig = () => {
96
96
  const config = new Config(configStruct, module)
97
+ config.stop_auto_rebuild()
97
98
  config.add(numbersKM())
98
99
  config.api = api
99
100
  config.initializer( ({config, objects, apis, addWord, addGenerator, baseConfig, uuid}) => {
@@ -129,6 +130,7 @@ const createConfig = () => {
129
130
  })
130
131
  }
131
132
  })
133
+ config.restart_auto_rebuild()
132
134
  return config
133
135
  }
134
136
 
@@ -131,6 +131,7 @@ let configStruct = {
131
131
  where: where(),
132
132
  id: "to",
133
133
  level: 0,
134
+ isA: ['preposition'],
134
135
  bridge: "{ ...next(operator), toObject: after[0] }",
135
136
  generatorp: ({context, gp}) => {
136
137
  return `to ${gp(context.toObject)}`
@@ -569,8 +570,8 @@ let configStruct = {
569
570
  where: where(),
570
571
  notes: 'pull from context',
571
572
  // match: ({context}) => context.marker == 'it' && context.pullFromContext, // && context.value,
572
- match: ({context}) => context.pullFromContext && !context.same, // && context.value,
573
- apply: ({context, s, kms, e, log, retry}) => {
573
+ match: ({context, callId}) => context.pullFromContext && !context.same, // && context.value,
574
+ apply: ({callId, context, s, kms, e, log, retry}) => {
574
575
  if (true) {
575
576
  /*
576
577
  {
@@ -803,6 +804,7 @@ let configStruct = {
803
804
  {
804
805
  where: where(),
805
806
  notes: 'get variable from stm',
807
+ // match: ({context, kms}) => !context.determiner && context.evaluate && kms.stm.api.getVariable(context.value) != context.value,
806
808
  match: ({context, kms}) => context.evaluate && kms.stm.api.getVariable(context.value) != context.value,
807
809
  // match: ({context, kms}) => context.evaluate,
808
810
  priority: -1,
@@ -853,8 +855,9 @@ let configStruct = {
853
855
 
854
856
  const createConfig = () => {
855
857
  const config = new Config(configStruct, module)
858
+ config.stop_auto_rebuild()
856
859
  config.api = api
857
- config.add(gdefaults()).add(sdefaults()).add(pos()).add(stm()).add(meta()).add(punctuation())
860
+ config.add(gdefaults(), sdefaults(), pos(), stm(), meta(), punctuation())
858
861
  config.initializer( ({objects, config, isModule}) => {
859
862
  /* TODO add this beck in. some stuff from config needs to be here
860
863
  config.addArgs((args) => ({
@@ -888,6 +891,7 @@ const createConfig = () => {
888
891
  config.addWord("doesable", { id: "doesAble", "initial": "{}" })
889
892
  }
890
893
  })
894
+ config.restart_auto_rebuild()
891
895
  return config
892
896
  }
893
897
 
@@ -168,8 +168,10 @@ let configStruct = {
168
168
 
169
169
  const createConfig = () => {
170
170
  const config = new Config(configStruct, module)
171
- config.add(base()).add(formulas()).add(testing())
171
+ config.stop_auto_rebuild()
172
+ config.add(base(), formulas(), testing())
172
173
  config.api = api
174
+ config.restart_auto_rebuild()
173
175
  return config
174
176
  }
175
177