tpmkms 7.12.8-beta.4 → 7.12.8-beta.6

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 (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
@@ -1,5 +1,5 @@
1
1
  {
2
- "queries": [
2
+ "configs": [
3
3
  "birds and mammals are animals",
4
4
  "mammals have ears",
5
5
  "mammals have hair",
@@ -394,26 +394,26 @@
394
394
  "value": [
395
395
  {
396
396
  "marker": "type",
397
+ "value": "birds",
398
+ "word": "birds",
399
+ "text": "birds",
397
400
  "range": {
398
401
  "start": 0,
399
402
  "end": 4
400
403
  },
401
- "word": "birds",
402
- "text": "birds",
403
- "value": "birds",
404
404
  "unknown": true,
405
405
  "dead": true,
406
406
  "level": 1
407
407
  },
408
408
  {
409
409
  "marker": "type",
410
+ "value": "mammals",
411
+ "word": "mammals",
412
+ "text": "mammals",
410
413
  "range": {
411
414
  "start": 10,
412
415
  "end": 16
413
416
  },
414
- "word": "mammals",
415
- "text": "mammals",
416
- "value": "mammals",
417
417
  "unknown": true,
418
418
  "dead": true,
419
419
  "level": 1
@@ -423,13 +423,13 @@
423
423
  },
424
424
  "two": {
425
425
  "marker": "unknown",
426
+ "value": "animals",
427
+ "word": "animals",
428
+ "text": "animals",
426
429
  "range": {
427
430
  "start": 22,
428
431
  "end": 28
429
432
  },
430
- "word": "animals",
431
- "text": "animals",
432
- "value": "animals",
433
433
  "unknown": true,
434
434
  "dead": true,
435
435
  "types": [
@@ -950,13 +950,13 @@
950
950
  },
951
951
  "property": {
952
952
  "marker": "property",
953
+ "value": "ears",
954
+ "word": "ears",
955
+ "text": "ears",
953
956
  "range": {
954
957
  "start": 13,
955
958
  "end": 16
956
959
  },
957
- "word": "ears",
958
- "text": "ears",
959
- "value": "ears",
960
960
  "unknown": true,
961
961
  "dead": true,
962
962
  "types": [
@@ -1022,16 +1022,6 @@
1022
1022
  1
1023
1023
  ]
1024
1024
  ],
1025
- [
1026
- [
1027
- "have",
1028
- 0
1029
- ],
1030
- [
1031
- "unknown",
1032
- 0
1033
- ]
1034
- ],
1035
1025
  [
1036
1026
  [
1037
1027
  "have",
@@ -1474,13 +1464,13 @@
1474
1464
  },
1475
1465
  "property": {
1476
1466
  "marker": "property",
1467
+ "value": "hair",
1468
+ "word": "hair",
1469
+ "text": "hair",
1477
1470
  "range": {
1478
1471
  "start": 13,
1479
1472
  "end": 16
1480
1473
  },
1481
- "word": "hair",
1482
- "text": "hair",
1483
- "value": "hair",
1484
1474
  "unknown": true,
1485
1475
  "dead": true,
1486
1476
  "types": [
@@ -1546,16 +1536,6 @@
1546
1536
  1
1547
1537
  ]
1548
1538
  ],
1549
- [
1550
- [
1551
- "have",
1552
- 0
1553
- ],
1554
- [
1555
- "unknown",
1556
- 0
1557
- ]
1558
- ],
1559
1539
  [
1560
1540
  [
1561
1541
  "have",
@@ -2028,13 +2008,13 @@
2028
2008
  },
2029
2009
  "property": {
2030
2010
  "marker": "property",
2011
+ "value": "wings",
2012
+ "word": "wings",
2013
+ "text": "wings",
2031
2014
  "range": {
2032
2015
  "start": 18,
2033
2016
  "end": 22
2034
2017
  },
2035
- "word": "wings",
2036
- "text": "wings",
2037
- "value": "wings",
2038
2018
  "unknown": true,
2039
2019
  "dead": true,
2040
2020
  "types": [
@@ -2122,16 +2102,6 @@
2122
2102
  1
2123
2103
  ]
2124
2104
  ],
2125
- [
2126
- [
2127
- "have",
2128
- 0
2129
- ],
2130
- [
2131
- "unknown",
2132
- 0
2133
- ]
2134
- ],
2135
2105
  [
2136
2106
  [
2137
2107
  "have",
@@ -2574,13 +2544,13 @@
2574
2544
  },
2575
2545
  "property": {
2576
2546
  "marker": "property",
2547
+ "value": "skin",
2548
+ "word": "skin",
2549
+ "text": "skin",
2577
2550
  "range": {
2578
2551
  "start": 13,
2579
2552
  "end": 16
2580
2553
  },
2581
- "word": "skin",
2582
- "text": "skin",
2583
- "value": "skin",
2584
2554
  "unknown": true,
2585
2555
  "dead": true,
2586
2556
  "types": [
@@ -2646,16 +2616,6 @@
2646
2616
  1
2647
2617
  ]
2648
2618
  ],
2649
- [
2650
- [
2651
- "have",
2652
- 0
2653
- ],
2654
- [
2655
- "unknown",
2656
- 0
2657
- ]
2658
- ],
2659
2619
  [
2660
2620
  [
2661
2621
  "have",
@@ -3098,13 +3058,13 @@
3098
3058
  },
3099
3059
  "property": {
3100
3060
  "marker": "property",
3061
+ "value": "eyes",
3062
+ "word": "eyes",
3063
+ "text": "eyes",
3101
3064
  "range": {
3102
3065
  "start": 13,
3103
3066
  "end": 16
3104
3067
  },
3105
- "word": "eyes",
3106
- "text": "eyes",
3107
- "value": "eyes",
3108
3068
  "unknown": true,
3109
3069
  "dead": true,
3110
3070
  "types": [
@@ -3170,16 +3130,6 @@
3170
3130
  1
3171
3131
  ]
3172
3132
  ],
3173
- [
3174
- [
3175
- "have",
3176
- 0
3177
- ],
3178
- [
3179
- "unknown",
3180
- 0
3181
- ]
3182
- ],
3183
3133
  [
3184
3134
  [
3185
3135
  "have",
@@ -3622,13 +3572,13 @@
3622
3572
  },
3623
3573
  "property": {
3624
3574
  "marker": "property",
3575
+ "value": "wings",
3576
+ "word": "wings",
3577
+ "text": "wings",
3625
3578
  "range": {
3626
3579
  "start": 11,
3627
3580
  "end": 15
3628
3581
  },
3629
- "word": "wings",
3630
- "text": "wings",
3631
- "value": "wings",
3632
3582
  "unknown": true,
3633
3583
  "dead": true,
3634
3584
  "types": [
@@ -3694,16 +3644,6 @@
3694
3644
  1
3695
3645
  ]
3696
3646
  ],
3697
- [
3698
- [
3699
- "have",
3700
- 0
3701
- ],
3702
- [
3703
- "unknown",
3704
- 0
3705
- ]
3706
- ],
3707
3647
  [
3708
3648
  [
3709
3649
  "have",
@@ -4146,13 +4086,13 @@
4146
4086
  },
4147
4087
  "property": {
4148
4088
  "marker": "property",
4089
+ "value": "beaks",
4090
+ "word": "beaks",
4091
+ "text": "beaks",
4149
4092
  "range": {
4150
4093
  "start": 11,
4151
4094
  "end": 15
4152
4095
  },
4153
- "word": "beaks",
4154
- "text": "beaks",
4155
- "value": "beaks",
4156
4096
  "unknown": true,
4157
4097
  "dead": true,
4158
4098
  "types": [
@@ -4218,16 +4158,6 @@
4218
4158
  1
4219
4159
  ]
4220
4160
  ],
4221
- [
4222
- [
4223
- "have",
4224
- 0
4225
- ],
4226
- [
4227
- "unknown",
4228
- 0
4229
- ]
4230
- ],
4231
4161
  [
4232
4162
  [
4233
4163
  "have",
@@ -4849,52 +4779,52 @@
4849
4779
  "value": [
4850
4780
  {
4851
4781
  "marker": "unknown",
4782
+ "value": "humans",
4783
+ "word": "humans",
4784
+ "text": "humans",
4852
4785
  "range": {
4853
4786
  "start": 0,
4854
4787
  "end": 5
4855
4788
  },
4856
- "word": "humans",
4857
- "text": "humans",
4858
- "value": "humans",
4859
4789
  "unknown": true,
4860
4790
  "dead": true,
4861
4791
  "level": 1
4862
4792
  },
4863
4793
  {
4864
4794
  "marker": "unknown",
4795
+ "value": "bats",
4796
+ "word": "bats",
4797
+ "text": "bats",
4865
4798
  "range": {
4866
4799
  "start": 7,
4867
4800
  "end": 10
4868
4801
  },
4869
- "word": "bats",
4870
- "text": "bats",
4871
- "value": "bats",
4872
4802
  "unknown": true,
4873
4803
  "dead": true,
4874
4804
  "level": 1
4875
4805
  },
4876
4806
  {
4877
4807
  "marker": "unknown",
4808
+ "value": "felines",
4809
+ "word": "felines",
4810
+ "text": "felines",
4878
4811
  "range": {
4879
4812
  "start": 12,
4880
4813
  "end": 18
4881
4814
  },
4882
- "word": "felines",
4883
- "text": "felines",
4884
- "value": "felines",
4885
4815
  "unknown": true,
4886
4816
  "dead": true,
4887
4817
  "level": 2
4888
4818
  },
4889
4819
  {
4890
4820
  "marker": "unknown",
4821
+ "value": "canines",
4822
+ "word": "canines",
4823
+ "text": "canines",
4891
4824
  "range": {
4892
4825
  "start": 24,
4893
4826
  "end": 30
4894
4827
  },
4895
- "word": "canines",
4896
- "text": "canines",
4897
- "value": "canines",
4898
4828
  "unknown": true,
4899
4829
  "dead": true,
4900
4830
  "level": 2
@@ -5787,52 +5717,52 @@
5787
5717
  "value": [
5788
5718
  {
5789
5719
  "marker": "unknown",
5720
+ "value": "owls",
5721
+ "word": "owls",
5722
+ "text": "owls",
5790
5723
  "range": {
5791
5724
  "start": 0,
5792
5725
  "end": 3
5793
5726
  },
5794
- "word": "owls",
5795
- "text": "owls",
5796
- "value": "owls",
5797
5727
  "unknown": true,
5798
5728
  "dead": true,
5799
5729
  "level": 1
5800
5730
  },
5801
5731
  {
5802
5732
  "marker": "unknown",
5733
+ "value": "eagles",
5734
+ "word": "eagles",
5735
+ "text": "eagles",
5803
5736
  "range": {
5804
5737
  "start": 5,
5805
5738
  "end": 10
5806
5739
  },
5807
- "word": "eagles",
5808
- "text": "eagles",
5809
- "value": "eagles",
5810
5740
  "unknown": true,
5811
5741
  "dead": true,
5812
5742
  "level": 1
5813
5743
  },
5814
5744
  {
5815
5745
  "marker": "unknown",
5746
+ "value": "pidgeons",
5747
+ "word": "pidgeons",
5748
+ "text": "pidgeons",
5816
5749
  "range": {
5817
5750
  "start": 12,
5818
5751
  "end": 19
5819
5752
  },
5820
- "word": "pidgeons",
5821
- "text": "pidgeons",
5822
- "value": "pidgeons",
5823
5753
  "unknown": true,
5824
5754
  "dead": true,
5825
5755
  "level": 2
5826
5756
  },
5827
5757
  {
5828
5758
  "marker": "unknown",
5759
+ "value": "parrots",
5760
+ "word": "parrots",
5761
+ "text": "parrots",
5829
5762
  "range": {
5830
5763
  "start": 25,
5831
5764
  "end": 31
5832
5765
  },
5833
- "word": "parrots",
5834
- "text": "parrots",
5835
- "value": "parrots",
5836
5766
  "unknown": true,
5837
5767
  "dead": true,
5838
5768
  "level": 2
@@ -6658,13 +6588,13 @@
6658
6588
  "one": {
6659
6589
  "number": "many",
6660
6590
  "marker": "unknown",
6591
+ "value": "cats",
6592
+ "word": "cats",
6593
+ "text": "cats",
6661
6594
  "range": {
6662
6595
  "start": 0,
6663
6596
  "end": 15
6664
6597
  },
6665
- "word": "cats",
6666
- "text": "cats",
6667
- "value": "cats",
6668
6598
  "unknown": true,
6669
6599
  "dead": true,
6670
6600
  "types": [
@@ -7530,26 +7460,26 @@
7530
7460
  "value": [
7531
7461
  {
7532
7462
  "marker": "unknown",
7463
+ "value": "dogs",
7464
+ "word": "dogs",
7465
+ "text": "dogs",
7533
7466
  "range": {
7534
7467
  "start": 0,
7535
7468
  "end": 3
7536
7469
  },
7537
- "word": "dogs",
7538
- "text": "dogs",
7539
- "value": "dogs",
7540
7470
  "unknown": true,
7541
7471
  "dead": true,
7542
7472
  "level": 2
7543
7473
  },
7544
7474
  {
7545
7475
  "marker": "unknown",
7476
+ "value": "wolves",
7477
+ "word": "wolves",
7478
+ "text": "wolves",
7546
7479
  "range": {
7547
7480
  "start": 9,
7548
7481
  "end": 14
7549
7482
  },
7550
- "word": "wolves",
7551
- "text": "wolves",
7552
- "value": "wolves",
7553
7483
  "unknown": true,
7554
7484
  "dead": true,
7555
7485
  "level": 2
@@ -8469,13 +8399,13 @@
8469
8399
  },
8470
8400
  "property": {
8471
8401
  "marker": "property",
8402
+ "value": "wings",
8403
+ "word": "wings",
8404
+ "text": "wings",
8472
8405
  "range": {
8473
8406
  "start": 10,
8474
8407
  "end": 14
8475
8408
  },
8476
- "word": "wings",
8477
- "text": "wings",
8478
- "value": "wings",
8479
8409
  "unknown": true,
8480
8410
  "dead": true,
8481
8411
  "types": [
@@ -8541,16 +8471,6 @@
8541
8471
  1
8542
8472
  ]
8543
8473
  ],
8544
- [
8545
- [
8546
- "have",
8547
- 0
8548
- ],
8549
- [
8550
- "unknown",
8551
- 0
8552
- ]
8553
- ],
8554
8474
  [
8555
8475
  [
8556
8476
  "have",
@@ -9008,86 +8928,6 @@
9008
8928
  1
9009
8929
  ]
9010
8930
  ],
9011
- [
9012
- [
9013
- "have",
9014
- 0
9015
- ],
9016
- [
9017
- "unknown",
9018
- 0
9019
- ]
9020
- ],
9021
- [
9022
- [
9023
- "have",
9024
- 0
9025
- ],
9026
- [
9027
- "unknown",
9028
- 0
9029
- ]
9030
- ],
9031
- [
9032
- [
9033
- "have",
9034
- 0
9035
- ],
9036
- [
9037
- "unknown",
9038
- 0
9039
- ]
9040
- ],
9041
- [
9042
- [
9043
- "have",
9044
- 0
9045
- ],
9046
- [
9047
- "unknown",
9048
- 0
9049
- ]
9050
- ],
9051
- [
9052
- [
9053
- "have",
9054
- 0
9055
- ],
9056
- [
9057
- "unknown",
9058
- 0
9059
- ]
9060
- ],
9061
- [
9062
- [
9063
- "have",
9064
- 0
9065
- ],
9066
- [
9067
- "unknown",
9068
- 0
9069
- ]
9070
- ],
9071
- [
9072
- [
9073
- "have",
9074
- 0
9075
- ],
9076
- [
9077
- "unknown",
9078
- 0
9079
- ]
9080
- ],
9081
- [
9082
- [
9083
- "have",
9084
- 0
9085
- ],
9086
- [
9087
- "unknown",
9088
- 0
9089
- ]
9090
- ],
9091
8931
  [
9092
8932
  [
9093
8933
  "have",
package/common/animals.js CHANGED
@@ -5,7 +5,7 @@ const animals_tests = require('./animals.test.json')
5
5
  const animals_instance = require('./animals.instance.json')
6
6
 
7
7
  const template = {
8
- queries: [
8
+ configs: [
9
9
  "birds and mammals are animals",
10
10
  "mammals have ears",
11
11
  "mammals have hair",
package/common/avatar.js CHANGED
@@ -22,11 +22,13 @@ let configStruct = {
22
22
  ],
23
23
 
24
24
  words: {
25
- // TODO use pronoun
26
- "my": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'other', possessive: true }" }],
27
- "your": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'self', possessive: true }" }],
28
- "you": [{ id: 'self', initial: "{ variable: true, value: 'self' }" }],
29
- "i": [{ id: 'self', initial: "{ variable: true, value: 'speaker' }" }],
25
+ "literals": {
26
+ // TODO use pronoun
27
+ "my": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'other', possessive: true }" }],
28
+ "your": [{ id: 'objectPrefix', initial: "{ variable: true, value: 'self', possessive: true }" }],
29
+ "you": [{ id: 'self', initial: "{ variable: true, value: 'self' }" }],
30
+ "i": [{ id: 'self', initial: "{ variable: true, value: 'speaker' }" }],
31
+ }
30
32
  },
31
33
 
32
34
  generators: [
@@ -40,11 +40,13 @@ let configStruct = {
40
40
  { id: 'help', level: 0, bridge: "{ ...next(operator) }" },
41
41
  ],
42
42
  "words": {
43
- "sally": [{"id": "character", development: true, "initial": "{ value: 'sally' }" }],
44
- "bob": [{"id": "character", development: true, "initial": "{ value: 'bob' }" }],
45
- //"product1": [{"id": "reportObject", "initial": "{ value: 'api1' }" }],
46
- //"api2": [{"id": "reportObject", "initial": "{ value: 'api2' }" }],
47
- //" ([0-9]+)": [{"id": "amount", "initial": "{ value: int(group[0]) }" }],
43
+ "literals": {
44
+ "sally": [{"id": "character", development: true, "initial": "{ value: 'sally' }" }],
45
+ "bob": [{"id": "character", development: true, "initial": "{ value: 'bob' }" }],
46
+ //"product1": [{"id": "reportObject", "initial": "{ value: 'api1' }" }],
47
+ //"api2": [{"id": "reportObject", "initial": "{ value: 'api2' }" }],
48
+ //" ([0-9]+)": [{"id": "amount", "initial": "{ value: int(group[0]) }" }],
49
+ },
48
50
  },
49
51
 
50
52
  generators: [