tpmkms_4wp 7.12.8-beta.5 → 7.12.8-beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/common/animals.instance.json +67 -227
  2. package/common/animals.js +1 -1
  3. package/common/avatar.js +7 -5
  4. package/common/characters.js +7 -5
  5. package/common/crew.instance.json +257 -417
  6. package/common/crew.js +1 -1
  7. package/common/currency.js +0 -2
  8. package/common/dialogues.js +13 -11
  9. package/common/dimension.instance.json +10 -10
  10. package/common/dimension.js +1 -1
  11. package/common/edible.instance.json +139 -255
  12. package/common/edible.js +1 -1
  13. package/common/emotions.instance.json +56 -32
  14. package/common/emotions.js +1 -1
  15. package/common/fastfood.instance.json +915 -1919
  16. package/common/fastfood.js +1 -1
  17. package/common/formulas.instance.json +7 -7
  18. package/common/formulas.js +2 -2
  19. package/common/help.js +4 -2
  20. package/common/helpers.js +5 -0
  21. package/common/javascript.js +8 -6
  22. package/common/kirk.instance.json +1 -1
  23. package/common/kirk.js +1 -1
  24. package/common/length.instance.json +37 -217
  25. package/common/length.js +1 -1
  26. package/common/math.instance.json +19 -39
  27. package/common/math.js +1 -1
  28. package/common/meta.instance.json +1 -1
  29. package/common/meta.js +29 -10
  30. package/common/numbers.js +31 -24
  31. package/common/ordering.instance.json +86 -82
  32. package/common/ordering.js +1 -1
  33. package/common/people.instance.json +42 -70
  34. package/common/people.js +1 -1
  35. package/common/pipboy.instance.json +109 -169
  36. package/common/pipboy.js +1 -1
  37. package/common/pokemon.instance.json +31 -87
  38. package/common/pokemon.js +1 -1
  39. package/common/pressure.instance.json +10 -30
  40. package/common/pressure.js +1 -1
  41. package/common/properties.instance.json +16 -44
  42. package/common/properties.js +13 -8
  43. package/common/reports.instance.json +6 -62
  44. package/common/reports.js +9 -7
  45. package/common/scorekeeper.instance.json +1 -1
  46. package/common/scorekeeper.js +9 -7
  47. package/common/spock.instance.json +1 -1
  48. package/common/spock.js +1 -1
  49. package/common/tell.js +4 -2
  50. package/common/temperature.instance.json +13 -129
  51. package/common/temperature.js +1 -1
  52. package/common/time.js +36 -20
  53. package/common/time.test.json +66 -44
  54. package/common/ui.instance.json +1 -1
  55. package/common/weight.instance.json +25 -193
  56. package/common/weight.js +1 -1
  57. package/package.json +2 -2
package/common/pipboy.js CHANGED
@@ -503,7 +503,7 @@ addWeapon('rifle')
503
503
  */
504
504
 
505
505
  const template = {
506
- queries: [
506
+ configs: [
507
507
  "pistols rifles grenades mines and shotguns are weapons",
508
508
  "mines and grenades are explosives",
509
509
  "explosives are weapons",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "pokemon modifies type",
4
4
  "pokemon type is a type",
5
5
  "pikachu squirtle weedle and pidgeot are pokemon",
@@ -325,13 +325,13 @@
325
325
  "modifiers": [
326
326
  {
327
327
  "marker": "unknown",
328
+ "value": "pokemon",
329
+ "word": "pokemon",
330
+ "text": "pokemon",
328
331
  "range": {
329
332
  "start": 0,
330
333
  "end": 6
331
334
  },
332
- "word": "pokemon",
333
- "text": "pokemon",
334
- "value": "pokemon",
335
335
  "unknown": true,
336
336
  "dead": true,
337
337
  "level": 1
@@ -1645,52 +1645,52 @@
1645
1645
  "value": [
1646
1646
  {
1647
1647
  "marker": "unknown",
1648
+ "value": "pikachu",
1649
+ "word": "pikachu",
1650
+ "text": "pikachu",
1648
1651
  "range": {
1649
1652
  "start": 0,
1650
1653
  "end": 6
1651
1654
  },
1652
- "word": "pikachu",
1653
- "text": "pikachu",
1654
- "value": "pikachu",
1655
1655
  "unknown": true,
1656
1656
  "dead": true,
1657
1657
  "level": 1
1658
1658
  },
1659
1659
  {
1660
1660
  "marker": "unknown",
1661
+ "value": "squirtle",
1662
+ "word": "squirtle",
1663
+ "text": "squirtle",
1661
1664
  "range": {
1662
1665
  "start": 8,
1663
1666
  "end": 15
1664
1667
  },
1665
- "word": "squirtle",
1666
- "text": "squirtle",
1667
- "value": "squirtle",
1668
1668
  "unknown": true,
1669
1669
  "dead": true,
1670
1670
  "level": 1
1671
1671
  },
1672
1672
  {
1673
1673
  "marker": "unknown",
1674
+ "value": "weedle",
1675
+ "word": "weedle",
1676
+ "text": "weedle",
1674
1677
  "range": {
1675
1678
  "start": 17,
1676
1679
  "end": 22
1677
1680
  },
1678
- "word": "weedle",
1679
- "text": "weedle",
1680
- "value": "weedle",
1681
1681
  "unknown": true,
1682
1682
  "dead": true,
1683
1683
  "level": 2
1684
1684
  },
1685
1685
  {
1686
1686
  "marker": "unknown",
1687
+ "value": "pidgeot",
1688
+ "word": "pidgeot",
1689
+ "text": "pidgeot",
1687
1690
  "range": {
1688
1691
  "start": 28,
1689
1692
  "end": 34
1690
1693
  },
1691
- "word": "pidgeot",
1692
- "text": "pidgeot",
1693
- "value": "pidgeot",
1694
1694
  "unknown": true,
1695
1695
  "dead": true,
1696
1696
  "level": 2
@@ -1842,16 +1842,6 @@
1842
1842
  "unknown",
1843
1843
  1
1844
1844
  ]
1845
- ],
1846
- [
1847
- [
1848
- "pokemon",
1849
- 0
1850
- ],
1851
- [
1852
- "unknown",
1853
- 0
1854
- ]
1855
1845
  ]
1856
1846
  ],
1857
1847
  "learned_contextual_priorities": [],
@@ -2414,13 +2404,13 @@
2414
2404
  "modifiers": [
2415
2405
  {
2416
2406
  "marker": "unknown",
2407
+ "value": "fire",
2408
+ "word": "fire",
2409
+ "text": "fire",
2417
2410
  "range": {
2418
2411
  "start": 0,
2419
2412
  "end": 3
2420
2413
  },
2421
- "word": "fire",
2422
- "text": "fire",
2423
- "value": "fire",
2424
2414
  "unknown": true,
2425
2415
  "dead": true,
2426
2416
  "level": 1
@@ -3129,13 +3119,13 @@
3129
3119
  "modifiers": [
3130
3120
  {
3131
3121
  "marker": "unknown",
3122
+ "value": "water",
3123
+ "word": "water",
3124
+ "text": "water",
3132
3125
  "range": {
3133
3126
  "start": 0,
3134
3127
  "end": 4
3135
3128
  },
3136
- "word": "water",
3137
- "text": "water",
3138
- "value": "water",
3139
3129
  "unknown": true,
3140
3130
  "dead": true,
3141
3131
  "level": 1
@@ -3916,13 +3906,13 @@
3916
3906
  "modifiers": [
3917
3907
  {
3918
3908
  "marker": "unknown",
3909
+ "value": "earth",
3910
+ "word": "earth",
3911
+ "text": "earth",
3919
3912
  "range": {
3920
3913
  "start": 0,
3921
3914
  "end": 4
3922
3915
  },
3923
- "word": "earth",
3924
- "text": "earth",
3925
- "value": "earth",
3926
3916
  "unknown": true,
3927
3917
  "dead": true,
3928
3918
  "level": 1
@@ -4775,13 +4765,13 @@
4775
4765
  "modifiers": [
4776
4766
  {
4777
4767
  "marker": "unknown",
4768
+ "value": "electric",
4769
+ "word": "electric",
4770
+ "text": "electric",
4778
4771
  "range": {
4779
4772
  "start": 0,
4780
4773
  "end": 7
4781
4774
  },
4782
- "word": "electric",
4783
- "text": "electric",
4784
- "value": "electric",
4785
4775
  "unknown": true,
4786
4776
  "dead": true,
4787
4777
  "level": 1
@@ -10158,24 +10148,6 @@
10158
10148
  "is",
10159
10149
  0
10160
10150
  ]
10161
- ],
10162
- [
10163
- [
10164
- "electric",
10165
- 0
10166
- ],
10167
- [
10168
- "is",
10169
- 0
10170
- ],
10171
- [
10172
- "pikachu",
10173
- 0
10174
- ],
10175
- [
10176
- "type",
10177
- 0
10178
- ]
10179
10151
  ]
10180
10152
  ],
10181
10153
  "learned_contextual_priorities": [],
@@ -11098,13 +11070,13 @@
11098
11070
  "one": {
11099
11071
  "number": "one",
11100
11072
  "marker": "unknown",
11073
+ "value": "charmander",
11074
+ "word": "charmander",
11075
+ "text": "charmander",
11101
11076
  "range": {
11102
11077
  "start": 0,
11103
11078
  "end": 24
11104
11079
  },
11105
- "word": "charmander",
11106
- "text": "charmander",
11107
- "value": "charmander",
11108
11080
  "unknown": true,
11109
11081
  "dead": true,
11110
11082
  "types": [
@@ -11611,24 +11583,6 @@
11611
11583
  1
11612
11584
  ]
11613
11585
  ],
11614
- [
11615
- [
11616
- "electric",
11617
- 0
11618
- ],
11619
- [
11620
- "is",
11621
- 0
11622
- ],
11623
- [
11624
- "pikachu",
11625
- 0
11626
- ],
11627
- [
11628
- "type",
11629
- 0
11630
- ]
11631
- ],
11632
11586
  [
11633
11587
  [
11634
11588
  "is",
@@ -11928,16 +11882,6 @@
11928
11882
  "unknown",
11929
11883
  1
11930
11884
  ]
11931
- ],
11932
- [
11933
- [
11934
- "pokemon",
11935
- 0
11936
- ],
11937
- [
11938
- "unknown",
11939
- 0
11940
- ]
11941
11885
  ]
11942
11886
  ],
11943
11887
  "learned_contextual_priorities": []
package/common/pokemon.js CHANGED
@@ -6,7 +6,7 @@ const pokemon_instance = require('./pokemon.instance.json')
6
6
  const pluralize = require('pluralize')
7
7
 
8
8
  const template = {
9
- queries: [
9
+ configs: [
10
10
  "pokemon modifies type",
11
11
  "pokemon type is a type",
12
12
  "pikachu squirtle weedle and pidgeot are pokemon",
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "pressure is a dimension",
4
4
  "pascals and atmospheres are units of pressure",
5
5
  "pascals = atmospheres * 101325",
@@ -828,13 +828,13 @@
828
828
  "one": {
829
829
  "number": "one",
830
830
  "marker": "unknown",
831
+ "value": "pressure",
832
+ "word": "pressure",
833
+ "text": "pressure",
831
834
  "range": {
832
835
  "start": 0,
833
836
  "end": 22
834
837
  },
835
- "word": "pressure",
836
- "text": "pressure",
837
- "value": "pressure",
838
838
  "unknown": true,
839
839
  "dead": true,
840
840
  "types": [
@@ -1965,26 +1965,26 @@
1965
1965
  "value": [
1966
1966
  {
1967
1967
  "marker": "unknown",
1968
+ "value": "pascals",
1969
+ "word": "pascals",
1970
+ "text": "pascals",
1968
1971
  "range": {
1969
1972
  "start": 0,
1970
1973
  "end": 6
1971
1974
  },
1972
- "word": "pascals",
1973
- "text": "pascals",
1974
- "value": "pascals",
1975
1975
  "unknown": true,
1976
1976
  "dead": true,
1977
1977
  "level": 2
1978
1978
  },
1979
1979
  {
1980
1980
  "marker": "unknown",
1981
+ "value": "atmospheres",
1982
+ "word": "atmospheres",
1983
+ "text": "atmospheres",
1981
1984
  "range": {
1982
1985
  "start": 12,
1983
1986
  "end": 22
1984
1987
  },
1985
- "word": "atmospheres",
1986
- "text": "atmospheres",
1987
- "value": "atmospheres",
1988
1988
  "unknown": true,
1989
1989
  "dead": true,
1990
1990
  "level": 2
@@ -2247,16 +2247,6 @@
2247
2247
  "propertyOf",
2248
2248
  1
2249
2249
  ]
2250
- ],
2251
- [
2252
- [
2253
- "pressure",
2254
- 0
2255
- ],
2256
- [
2257
- "unknown",
2258
- 0
2259
- ]
2260
2250
  ]
2261
2251
  ],
2262
2252
  "learned_contextual_priorities": [],
@@ -4798,16 +4788,6 @@
4798
4788
  "unknown",
4799
4789
  1
4800
4790
  ]
4801
- ],
4802
- [
4803
- [
4804
- "pressure",
4805
- 0
4806
- ],
4807
- [
4808
- "unknown",
4809
- 0
4810
- ]
4811
4791
  ]
4812
4792
  ],
4813
4793
  "learned_contextual_priorities": []
@@ -5,7 +5,7 @@ const pressure_tests = require('./pressure.test.json')
5
5
  const pressure_instance = require('./pressure.instance.json')
6
6
 
7
7
  const template = {
8
- "queries": [
8
+ configs: [
9
9
  "pressure is a dimension",
10
10
  "pascals and atmospheres are units of pressure",
11
11
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [],
2
+ "configs": [],
3
3
  "resultss": [],
4
4
  "fragments": [
5
5
  {
@@ -407,13 +407,13 @@
407
407
  "one": {
408
408
  "number": "one",
409
409
  "marker": "property",
410
+ "value": "property1",
411
+ "word": "property1",
412
+ "text": "the property1 of object1",
410
413
  "range": {
411
414
  "start": 0,
412
415
  "end": 33
413
416
  },
414
- "word": "property1",
415
- "text": "the property1 of object1",
416
- "value": "property1",
417
417
  "unknown": true,
418
418
  "dead": true,
419
419
  "types": [
@@ -430,13 +430,13 @@
430
430
  ],
431
431
  "object": {
432
432
  "marker": "unknown",
433
+ "value": "object1",
434
+ "word": "object1",
435
+ "text": "object1",
433
436
  "range": {
434
437
  "start": 17,
435
438
  "end": 23
436
439
  },
437
- "word": "object1",
438
- "text": "object1",
439
- "value": "object1",
440
440
  "unknown": true,
441
441
  "dead": true,
442
442
  "types": [
@@ -447,13 +447,13 @@
447
447
  "objects": [
448
448
  {
449
449
  "marker": "property",
450
+ "value": "property1",
451
+ "word": "property1",
452
+ "text": "the property1",
450
453
  "range": {
451
454
  "start": 0,
452
455
  "end": 12
453
456
  },
454
- "word": "property1",
455
- "text": "the property1",
456
- "value": "property1",
457
457
  "unknown": true,
458
458
  "dead": true,
459
459
  "types": [
@@ -472,13 +472,13 @@
472
472
  },
473
473
  {
474
474
  "marker": "unknown",
475
+ "value": "object1",
476
+ "word": "object1",
477
+ "text": "object1",
475
478
  "range": {
476
479
  "start": 17,
477
480
  "end": 23
478
481
  },
479
- "word": "object1",
480
- "text": "object1",
481
- "value": "object1",
482
482
  "unknown": true,
483
483
  "dead": true,
484
484
  "types": [
@@ -491,13 +491,13 @@
491
491
  },
492
492
  "two": {
493
493
  "marker": "unknown",
494
+ "value": "value1",
495
+ "word": "value1",
496
+ "text": "value1",
494
497
  "range": {
495
498
  "start": 28,
496
499
  "end": 33
497
500
  },
498
- "word": "value1",
499
- "text": "value1",
500
- "value": "value1",
501
501
  "unknown": true,
502
502
  "dead": true,
503
503
  "types": [
@@ -611,20 +611,6 @@
611
611
  1
612
612
  ]
613
613
  ],
614
- [
615
- [
616
- "is",
617
- 0
618
- ],
619
- [
620
- "the",
621
- 0
622
- ],
623
- [
624
- "unknown",
625
- 0
626
- ]
627
- ],
628
614
  [
629
615
  [
630
616
  "is",
@@ -732,20 +718,6 @@
732
718
  1
733
719
  ]
734
720
  ],
735
- [
736
- [
737
- "is",
738
- 0
739
- ],
740
- [
741
- "the",
742
- 0
743
- ],
744
- [
745
- "unknown",
746
- 0
747
- ]
748
- ],
749
721
  [
750
722
  [
751
723
  "is",
@@ -172,14 +172,19 @@ let configStruct = {
172
172
  { id: "objectPrefix", level: 0, bridge: '{ ...after[0], object: operator, objects: [after[0], operator] }' },
173
173
  ],
174
174
  words: {
175
- "<<possession>>": [{ id: 'possession', initial: "{ value: 'possession' }" }],
176
- " 's": [{ id: 'possession', initial: "{ value: 'possession' }" }],
177
- "have": [{ id: 'have', initial: "{ doesable: true, number: 'many' }" }],
178
- "has": [{ id: 'have', initial: "{ doesable: true, number: 'one' }" }],
179
- "dont": [{ id: 'doesnt', initial: "{ number: 'many' }" }],
180
- "doesnt": [{ id: 'doesnt', initial: "{ number: 'one' }" }],
181
- // "my": [{ id: 'objectPrefix', initial: "{ value: 'other' }" }],
182
- // "your": [{ id: 'objectPrefix', initial: "{ value: 'self' }" }],
175
+ literals: {
176
+ "<<possession>>": [{ id: 'possession', initial: "{ value: 'possession' }" }],
177
+ " 's": [{ id: 'possession', initial: "{ value: 'possession' }" }],
178
+ "have": [{ id: 'have', initial: "{ doesable: true, number: 'many' }" }],
179
+ "has": [{ id: 'have', initial: "{ doesable: true, number: 'one' }" }],
180
+ "dont": [{ id: 'doesnt', initial: "{ number: 'many' }" }],
181
+ "doesnt": [{ id: 'doesnt', initial: "{ number: 'one' }" }],
182
+ // "my": [{ id: 'objectPrefix', initial: "{ value: 'other' }" }],
183
+ // "your": [{ id: 'objectPrefix', initial: "{ value: 'self' }" }],
184
+ },
185
+ patterns: [
186
+ { "pattern": ["'s"], defs: [{id: "possession", uuid: '1', initial: "{ value: 'possession' }" }]},
187
+ ],
183
188
  },
184
189
  priorities: [
185
190
  { "context": [['list', 0], ['between', 0], ], "choose": [0] },