tpmkms 7.12.3 → 7.12.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -183,8 +183,10 @@ let configStruct = {
183
183
  const createConfig = () => {
184
184
  const api = new API()
185
185
  config = new Config(configStruct, module)
186
- config.add(dialogues()).add(pos()).add(math()).add(formulasTemplate())
186
+ config.stop_auto_rebuild()
187
+ config.add(dialogues(), pos(), math(), formulasTemplate())
187
188
  config.api = api
189
+ config.restart_auto_rebuild()
188
190
  return config
189
191
  }
190
192
 
@@ -205,6 +205,10 @@
205
205
  "thisitthat",
206
206
  "queryable"
207
207
  ],
208
+ [
209
+ "to",
210
+ "preposition"
211
+ ],
208
212
  [
209
213
  "toAble",
210
214
  "toAble"
@@ -12,7 +12,7 @@ const template = {
12
12
  ]
13
13
  }
14
14
 
15
- const createConfig = () => new Config({ name: 'formulasTemplate' }, module).add(base_km()).add(countable()).add(comparable())
15
+ const createConfig = () => new Config({ name: 'formulasTemplate' }, module).add(base_km(), countable(), comparable())
16
16
 
17
17
  knowledgeModule({
18
18
  module,
package/common/help.js CHANGED
@@ -79,6 +79,7 @@ const configStruct = {
79
79
 
80
80
  const createConfig = () => {
81
81
  const config = new Config(configStruct, module)
82
+ config.stop_auto_rebuild()
82
83
  config.add(dialogues())
83
84
 
84
85
  config.initializer( ({ config, addWord, kms }) => {
@@ -90,6 +91,7 @@ const createConfig = () => {
90
91
  addWord(name, {id: "km", initial: `{ value: '${name}', word: '${name}' }`})
91
92
  }
92
93
  })
94
+ config.restart_auto_rebuild()
93
95
  return config
94
96
  }
95
97
 
@@ -290,12 +290,14 @@ let configStruct = {
290
290
 
291
291
  const createConfig = () => {
292
292
  const config = new Config(configStruct, module)
293
+ config.stop_auto_rebuild()
293
294
  config.add(properties())
294
295
  config.initializer( ({apis, hierarchy}) => {
295
296
  apis('stm').addIsA( (child, parent) => {
296
297
  return hierarchy.isA(child, parent)
297
298
  })
298
299
  })
300
+ config.restart_auto_rebuild()
299
301
  return config
300
302
  }
301
303
 
@@ -60,11 +60,13 @@ let configStruct = {
60
60
 
61
61
  const createConfig = () => {
62
62
  const config = new Config(configStruct, module)
63
+ config.stop_auto_rebuild()
63
64
  config.add(dialogues())
64
65
 
65
66
  config.initializer( ({objects, uuid}) => {
66
67
  objects.variables = {}
67
68
  })
69
+ config.restart_auto_rebuild()
68
70
  return config
69
71
  }
70
72
 
@@ -985,6 +985,10 @@
985
985
  "thisitthat",
986
986
  "queryable"
987
987
  ],
988
+ [
989
+ "to",
990
+ "preposition"
991
+ ],
988
992
  [
989
993
  "toAble",
990
994
  "toAble"
@@ -611,6 +611,10 @@
611
611
  "timesOperator",
612
612
  "mathematicalOperator"
613
613
  ],
614
+ [
615
+ "to",
616
+ "preposition"
617
+ ],
614
618
  [
615
619
  "toAble",
616
620
  "toAble"
@@ -1567,6 +1571,10 @@
1567
1571
  "timesOperator",
1568
1572
  "mathematicalOperator"
1569
1573
  ],
1574
+ [
1575
+ "to",
1576
+ "preposition"
1577
+ ],
1570
1578
  [
1571
1579
  "toAble",
1572
1580
  "toAble"
@@ -3166,6 +3174,10 @@
3166
3174
  "timesOperator",
3167
3175
  "mathematicalOperator"
3168
3176
  ],
3177
+ [
3178
+ "to",
3179
+ "preposition"
3180
+ ],
3169
3181
  [
3170
3182
  "toAble",
3171
3183
  "toAble"
@@ -4289,6 +4301,10 @@
4289
4301
  "timesOperator",
4290
4302
  "mathematicalOperator"
4291
4303
  ],
4304
+ [
4305
+ "to",
4306
+ "preposition"
4307
+ ],
4292
4308
  [
4293
4309
  "toAble",
4294
4310
  "toAble"
@@ -5412,6 +5428,10 @@
5412
5428
  "timesOperator",
5413
5429
  "mathematicalOperator"
5414
5430
  ],
5431
+ [
5432
+ "to",
5433
+ "preposition"
5434
+ ],
5415
5435
  [
5416
5436
  "toAble",
5417
5437
  "toAble"
@@ -6557,6 +6577,10 @@
6557
6577
  "timesOperator",
6558
6578
  "mathematicalOperator"
6559
6579
  ],
6580
+ [
6581
+ "to",
6582
+ "preposition"
6583
+ ],
6560
6584
  [
6561
6585
  "toAble",
6562
6586
  "toAble"
@@ -7712,6 +7736,10 @@
7712
7736
  "timesOperator",
7713
7737
  "mathematicalOperator"
7714
7738
  ],
7739
+ [
7740
+ "to",
7741
+ "preposition"
7742
+ ],
7715
7743
  [
7716
7744
  "toAble",
7717
7745
  "toAble"
@@ -8867,6 +8895,10 @@
8867
8895
  "timesOperator",
8868
8896
  "mathematicalOperator"
8869
8897
  ],
8898
+ [
8899
+ "to",
8900
+ "preposition"
8901
+ ],
8870
8902
  [
8871
8903
  "toAble",
8872
8904
  "toAble"
@@ -10012,6 +10044,10 @@
10012
10044
  "timesOperator",
10013
10045
  "mathematicalOperator"
10014
10046
  ],
10047
+ [
10048
+ "to",
10049
+ "preposition"
10050
+ ],
10015
10051
  [
10016
10052
  "toAble",
10017
10053
  "toAble"
@@ -11135,6 +11171,10 @@
11135
11171
  "timesOperator",
11136
11172
  "mathematicalOperator"
11137
11173
  ],
11174
+ [
11175
+ "to",
11176
+ "preposition"
11177
+ ],
11138
11178
  [
11139
11179
  "toAble",
11140
11180
  "toAble"
@@ -12258,6 +12298,10 @@
12258
12298
  "timesOperator",
12259
12299
  "mathematicalOperator"
12260
12300
  ],
12301
+ [
12302
+ "to",
12303
+ "preposition"
12304
+ ],
12261
12305
  [
12262
12306
  "toAble",
12263
12307
  "toAble"
@@ -13381,6 +13425,10 @@
13381
13425
  "timesOperator",
13382
13426
  "mathematicalOperator"
13383
13427
  ],
13428
+ [
13429
+ "to",
13430
+ "preposition"
13431
+ ],
13384
13432
  [
13385
13433
  "toAble",
13386
13434
  "toAble"
@@ -14504,6 +14552,10 @@
14504
14552
  "timesOperator",
14505
14553
  "mathematicalOperator"
14506
14554
  ],
14555
+ [
14556
+ "to",
14557
+ "preposition"
14558
+ ],
14507
14559
  [
14508
14560
  "toAble",
14509
14561
  "toAble"
@@ -15649,6 +15701,10 @@
15649
15701
  "timesOperator",
15650
15702
  "mathematicalOperator"
15651
15703
  ],
15704
+ [
15705
+ "to",
15706
+ "preposition"
15707
+ ],
15652
15708
  [
15653
15709
  "toAble",
15654
15710
  "toAble"
@@ -16804,6 +16860,10 @@
16804
16860
  "timesOperator",
16805
16861
  "mathematicalOperator"
16806
16862
  ],
16863
+ [
16864
+ "to",
16865
+ "preposition"
16866
+ ],
16807
16867
  [
16808
16868
  "toAble",
16809
16869
  "toAble"
package/common/math.js CHANGED
@@ -104,10 +104,7 @@ let configStruct = {
104
104
 
105
105
  const createConfig = () => {
106
106
  const config = new Config(configStruct, module)
107
- config.add(numbers());
108
- config.add(dialogues());
109
- config.add(punctuation());
110
- config.add(mathTemplate());
107
+ config.add(numbers(), dialogues(), punctuation(), mathTemplate());
111
108
  return config
112
109
  }
113
110
 
@@ -206,6 +206,10 @@
206
206
  "thisitthat",
207
207
  "queryable"
208
208
  ],
209
+ [
210
+ "to",
211
+ "preposition"
212
+ ],
209
213
  [
210
214
  "toAble",
211
215
  "toAble"
@@ -733,6 +737,10 @@
733
737
  "thisitthat",
734
738
  "queryable"
735
739
  ],
740
+ [
741
+ "to",
742
+ "preposition"
743
+ ],
736
744
  [
737
745
  "toAble",
738
746
  "toAble"
@@ -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({
@@ -234,6 +234,10 @@
234
234
  "thisitthat",
235
235
  "queryable"
236
236
  ],
237
+ [
238
+ "to",
239
+ "preposition"
240
+ ],
237
241
  [
238
242
  "toAble",
239
243
  "toAble"
@@ -994,6 +998,10 @@
994
998
  "thisitthat",
995
999
  "queryable"
996
1000
  ],
1001
+ [
1002
+ "to",
1003
+ "preposition"
1004
+ ],
997
1005
  [
998
1006
  "toAble",
999
1007
  "toAble"
@@ -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
 
@@ -234,6 +234,10 @@
234
234
  "thisitthat",
235
235
  "queryable"
236
236
  ],
237
+ [
238
+ "to",
239
+ "preposition"
240
+ ],
237
241
  [
238
242
  "toAble",
239
243
  "toAble"
@@ -777,6 +781,10 @@
777
781
  "thisitthat",
778
782
  "queryable"
779
783
  ],
784
+ [
785
+ "to",
786
+ "preposition"
787
+ ],
780
788
  [
781
789
  "toAble",
782
790
  "toAble"
@@ -1392,6 +1400,10 @@
1392
1400
  "thisitthat",
1393
1401
  "queryable"
1394
1402
  ],
1403
+ [
1404
+ "to",
1405
+ "preposition"
1406
+ ],
1395
1407
  [
1396
1408
  "toAble",
1397
1409
  "toAble"
@@ -2051,6 +2063,10 @@
2051
2063
  "thisitthat",
2052
2064
  "queryable"
2053
2065
  ],
2066
+ [
2067
+ "to",
2068
+ "preposition"
2069
+ ],
2054
2070
  [
2055
2071
  "toAble",
2056
2072
  "toAble"
@@ -2734,6 +2750,10 @@
2734
2750
  "thisitthat",
2735
2751
  "queryable"
2736
2752
  ],
2753
+ [
2754
+ "to",
2755
+ "preposition"
2756
+ ],
2737
2757
  [
2738
2758
  "toAble",
2739
2759
  "toAble"
@@ -3474,6 +3494,10 @@
3474
3494
  "thisitthat",
3475
3495
  "queryable"
3476
3496
  ],
3497
+ [
3498
+ "to",
3499
+ "preposition"
3500
+ ],
3477
3501
  [
3478
3502
  "toAble",
3479
3503
  "toAble"
@@ -4043,36 +4067,6 @@
4043
4067
  0
4044
4068
  ]
4045
4069
  ],
4046
- [
4047
- [
4048
- "by",
4049
- 0
4050
- ],
4051
- [
4052
- "isEd",
4053
- 0
4054
- ],
4055
- [
4056
- "means",
4057
- 0
4058
- ],
4059
- [
4060
- "owned",
4061
- 0
4062
- ],
4063
- [
4064
- "ownee",
4065
- 0
4066
- ],
4067
- [
4068
- "owner",
4069
- 0
4070
- ],
4071
- [
4072
- "owns",
4073
- 0
4074
- ]
4075
- ],
4076
4070
  [
4077
4071
  [
4078
4072
  "by",
@@ -4648,6 +4642,10 @@
4648
4642
  "thisitthat",
4649
4643
  "queryable"
4650
4644
  ],
4645
+ [
4646
+ "to",
4647
+ "preposition"
4648
+ ],
4651
4649
  [
4652
4650
  "toAble",
4653
4651
  "toAble"
@@ -5590,6 +5588,10 @@
5590
5588
  "thisitthat",
5591
5589
  "queryable"
5592
5590
  ],
5591
+ [
5592
+ "to",
5593
+ "preposition"
5594
+ ],
5593
5595
  [
5594
5596
  "toAble",
5595
5597
  "toAble"
@@ -6037,36 +6039,6 @@
6037
6039
  0
6038
6040
  ]
6039
6041
  ],
6040
- [
6041
- [
6042
- "by",
6043
- 0
6044
- ],
6045
- [
6046
- "isEd",
6047
- 0
6048
- ],
6049
- [
6050
- "means",
6051
- 0
6052
- ],
6053
- [
6054
- "owned",
6055
- 0
6056
- ],
6057
- [
6058
- "ownee",
6059
- 0
6060
- ],
6061
- [
6062
- "owner",
6063
- 0
6064
- ],
6065
- [
6066
- "owns",
6067
- 0
6068
- ]
6069
- ],
6070
6042
  [
6071
6043
  [
6072
6044
  "by",
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
 
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
 
@@ -24420,6 +24420,7 @@
24420
24420
  "word": "apply"
24421
24421
  }
24422
24422
  ],
24423
+ "developerTest": false,
24423
24424
  "generatedParenthesized": [
24424
24425
  ""
24425
24426
  ],
@@ -24667,7 +24668,8 @@
24667
24668
  "whatAble",
24668
24669
  "this",
24669
24670
  "thisitthat",
24670
- "reason"
24671
+ "reason",
24672
+ "number"
24671
24673
  ],
24672
24674
  "takeable": [
24673
24675
  "medicine",
@@ -24747,6 +24749,7 @@
24747
24749
  "that",
24748
24750
  "orAble",
24749
24751
  "ifAble",
24752
+ "number",
24750
24753
  "*",
24751
24754
  "mathematical_operator",
24752
24755
  "+",
@@ -24897,6 +24900,9 @@
24897
24900
  "noun": [
24898
24901
  "theAble"
24899
24902
  ],
24903
+ "number": [
24904
+ "queryable"
24905
+ ],
24900
24906
  "object": [
24901
24907
  "queryable",
24902
24908
  "theAble"
@@ -25080,6 +25086,8 @@
25080
25086
  },
25081
25087
  "noun": {
25082
25088
  },
25089
+ "number": {
25090
+ },
25083
25091
  "object": {
25084
25092
  },
25085
25093
  "orAble": {
@@ -25226,8 +25234,8 @@
25226
25234
  "word": "apply"
25227
25235
  },
25228
25236
  "generatedParenthesized": "",
25229
- "paraphrases": "apply 4 stimpacks",
25230
- "paraphrasesParenthesized": "(apply ((4) (stimpacks)))",
25237
+ "paraphrases": "apply four stimpacks",
25238
+ "paraphrasesParenthesized": "(apply ((four) (stimpacks)))",
25231
25239
  "responses": [
25232
25240
  ""
25233
25241
  ]
@@ -25750,10 +25758,10 @@
25750
25758
  ]
25751
25759
  },
25752
25760
  "paraphrases": [
25753
- "apply 4 stimpacks"
25761
+ "apply four stimpacks"
25754
25762
  ],
25755
25763
  "paraphrasesParenthesized": [
25756
- "(apply ((4) (stimpacks)))"
25764
+ "(apply ((four) (stimpacks)))"
25757
25765
  ],
25758
25766
  "query": "apply four stimpacks",
25759
25767
  "responses": [
@@ -31,7 +31,7 @@ const template = {
31
31
  ]
32
32
  }
33
33
 
34
- const createConfig = () => new Config({ name: 'pipboyTemplate' }, module).add(base_km()).add(countable()).add(comparable())
34
+ const createConfig = () => new Config({ name: 'pipboyTemplate' }, module).add(base_km(), countable(), comparable())
35
35
 
36
36
  knowledgeModule({
37
37
  module,