tpmkms_4wp 9.5.1 → 9.6.0-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 (135) hide show
  1. package/common/animals.instance.json +151 -61
  2. package/common/animals.js +3 -5
  3. package/common/asking.js +116 -106
  4. package/common/avatar.test.json +1001 -860
  5. package/common/can.instance.json +2194 -0
  6. package/common/can.js +251 -0
  7. package/common/can.test.json +51307 -0
  8. package/common/characters.js +5 -5
  9. package/common/colors.instance.json +152 -12
  10. package/common/colors.js +3 -6
  11. package/common/comparable.instance.json +33 -3
  12. package/common/comparable.js +3 -6
  13. package/common/concept.js +25 -27
  14. package/common/concept.test.json +180 -144
  15. package/common/conjunction.js +13 -5
  16. package/common/conjunction.test.json +32 -42
  17. package/common/crew.instance.json +433 -173
  18. package/common/crew.js +4 -7
  19. package/common/crew.test.json +4148 -3324
  20. package/common/currency.js +1 -1
  21. package/common/dateTimeSelectors.instance.json +2 -2
  22. package/common/dateTimeSelectors.js +6 -9
  23. package/common/dateTimeSelectors.test.json +76935 -35739
  24. package/common/dates.instance.json +53 -3
  25. package/common/dates.js +3 -6
  26. package/common/dates.test.json +284 -287
  27. package/common/dialogues.js +43 -122
  28. package/common/dialogues.test.json +1248 -1152
  29. package/common/dimension.instance.json +21493 -561
  30. package/common/dimension.js +150 -55
  31. package/common/dimension.test.json +10979 -4625
  32. package/common/drone.instance.json +24709 -0
  33. package/common/drone.js +662 -0
  34. package/common/drone.test.json +30522 -0
  35. package/common/drone_v1.instance.json +24703 -0
  36. package/common/drone_v1.js +596 -0
  37. package/common/drone_v1.test.json +115538 -0
  38. package/common/edible.instance.json +388 -32
  39. package/common/edible.js +3 -5
  40. package/common/emotions.instance.json +85 -76
  41. package/common/emotions.js +4 -7
  42. package/common/emotions.test.json +242 -174
  43. package/common/english_helpers.js +336 -0
  44. package/common/errors.js +6 -6
  45. package/common/evaluate.js +2 -2
  46. package/common/events.js +8 -8
  47. package/common/fastfood.instance.json +1071 -393
  48. package/common/fastfood.js +14 -16
  49. package/common/fastfood.test.json +6970 -6829
  50. package/common/formulas.instance.json +11 -1
  51. package/common/formulas.js +3 -2
  52. package/common/gdefaults.js +111 -17
  53. package/common/help.js +12 -12
  54. package/common/help.test.json +65 -11
  55. package/common/helpers/concept.js +1 -1
  56. package/common/helpers/conjunction.js +54 -44
  57. package/common/helpers/dateTimeSelectors.js +2 -2
  58. package/common/helpers/dialogues.js +10 -2
  59. package/common/helpers/formulas.js +13 -11
  60. package/common/helpers/menus.js +12 -12
  61. package/common/helpers/meta.js +9 -9
  62. package/common/helpers/properties.js +186 -64
  63. package/common/helpers.js +167 -48
  64. package/common/hierarchy.js +12 -10
  65. package/common/kirk.instance.json +11 -1
  66. package/common/kirk.js +4 -6
  67. package/common/kirk.test.json +600 -424
  68. package/common/latin.instance.json +12 -12
  69. package/common/latin.js +12 -14
  70. package/common/length.instance.json +34660 -3158
  71. package/common/length.js +11 -6
  72. package/common/length.test.json +54357 -2557
  73. package/common/math.instance.json +39 -29
  74. package/common/math.js +49 -47
  75. package/common/menus.instance.json +77 -10
  76. package/common/menus.js +4 -13
  77. package/common/meta.js +80 -65
  78. package/common/nameable.js +36 -22
  79. package/common/nameable.test.json +436 -0
  80. package/common/numbers.js +1 -1
  81. package/common/ordering.instance.json +107 -19
  82. package/common/ordering.js +4 -6
  83. package/common/ordering.test.json +835 -417
  84. package/common/people.instance.json +176 -348
  85. package/common/people.js +9 -9
  86. package/common/people.test.json +4135 -3606
  87. package/common/pipboy.instance.json +187 -17
  88. package/common/pipboy.js +4 -4
  89. package/common/pokemon.instance.json +143 -13
  90. package/common/pokemon.js +4 -6
  91. package/common/pressure.instance.json +3610 -1601
  92. package/common/pressure.js +3 -5
  93. package/common/pressure.test.json +433 -477
  94. package/common/properties.instance.json +16 -17
  95. package/common/properties.js +32 -13
  96. package/common/properties.test.json +9565 -6951
  97. package/common/rates.instance.json +59 -0
  98. package/common/rates.js +95 -0
  99. package/common/rates.test.json +27702 -0
  100. package/common/reminders.instance.json +4 -4
  101. package/common/reminders.js +8 -11
  102. package/common/reminders.test.json +64635 -25787
  103. package/common/reports.instance.json +23 -3
  104. package/common/reports.js +21 -21
  105. package/common/scorekeeper.js +9 -12
  106. package/common/sdefaults.js +22 -2
  107. package/common/spock.instance.json +11 -1
  108. package/common/spock.js +4 -7
  109. package/common/spock.test.json +606 -430
  110. package/common/stgame.js +1 -1
  111. package/common/stm.js +41 -24
  112. package/common/tell.js +1 -1
  113. package/common/temperature.instance.json +3163 -1154
  114. package/common/temperature.js +3 -5
  115. package/common/temperature.test.json +433 -477
  116. package/common/tester.js +3 -3
  117. package/common/time.instance.json +24852 -0
  118. package/common/time.js +138 -141
  119. package/common/time.test.json +31876 -3757
  120. package/common/tokenize.js +5 -2
  121. package/common/ui.instance.json +12 -5
  122. package/common/ui.js +4 -13
  123. package/common/weight.instance.json +10501 -4099
  124. package/common/weight.js +3 -5
  125. package/common/weight.test.json +2601 -2263
  126. package/common/words.instance.json +9 -0
  127. package/common/words.js +50 -0
  128. package/common/words.test.json +2 -0
  129. package/common/wp.instance.json +548 -8
  130. package/common/wp.js +10 -8
  131. package/common/wp.test.json +7385 -6906
  132. package/main.js +6 -2
  133. package/package.json +25 -6
  134. package/common/listener.js +0 -50
  135. package/common/listener.test.json +0 -142
@@ -257,6 +257,16 @@
257
257
  "adjective",
258
258
  false
259
259
  ],
260
+ [
261
+ "stm_current",
262
+ "adjective",
263
+ false
264
+ ],
265
+ [
266
+ "stm_previous",
267
+ "adjective",
268
+ false
269
+ ],
260
270
  [
261
271
  "that",
262
272
  "thisitthat",
@@ -395,7 +405,7 @@
395
405
  "end": 20
396
406
  },
397
407
  "dead": true,
398
- "modifiers": [
408
+ "conceptModifiers": [
399
409
  {
400
410
  "value": "pokemon",
401
411
  "unknown": true,
@@ -899,6 +909,16 @@
899
909
  "adjective",
900
910
  false
901
911
  ],
912
+ [
913
+ "stm_current",
914
+ "adjective",
915
+ false
916
+ ],
917
+ [
918
+ "stm_previous",
919
+ "adjective",
920
+ false
921
+ ],
902
922
  [
903
923
  "that",
904
924
  "thisitthat",
@@ -1122,7 +1142,7 @@
1122
1142
  "text": "pokemon type",
1123
1143
  "range": {
1124
1144
  "start": 0,
1125
- "end": 21
1145
+ "end": 11
1126
1146
  },
1127
1147
  "types": [
1128
1148
  "pokemon_type",
@@ -1778,6 +1798,16 @@
1778
1798
  "adjective",
1779
1799
  false
1780
1800
  ],
1801
+ [
1802
+ "stm_current",
1803
+ "adjective",
1804
+ false
1805
+ ],
1806
+ [
1807
+ "stm_previous",
1808
+ "adjective",
1809
+ false
1810
+ ],
1781
1811
  [
1782
1812
  "that",
1783
1813
  "thisitthat",
@@ -2162,7 +2192,7 @@
2162
2192
  "text": "pikachu squirtle weedle and pidgeot",
2163
2193
  "range": {
2164
2194
  "start": 0,
2165
- "end": 46
2195
+ "end": 34
2166
2196
  },
2167
2197
  "types": [
2168
2198
  "list",
@@ -3389,6 +3419,16 @@
3389
3419
  "adjective",
3390
3420
  false
3391
3421
  ],
3422
+ [
3423
+ "stm_current",
3424
+ "adjective",
3425
+ false
3426
+ ],
3427
+ [
3428
+ "stm_previous",
3429
+ "adjective",
3430
+ false
3431
+ ],
3392
3432
  [
3393
3433
  "that",
3394
3434
  "thisitthat",
@@ -3607,7 +3647,7 @@
3607
3647
  "end": 17
3608
3648
  },
3609
3649
  "dead": true,
3610
- "modifiers": [
3650
+ "conceptModifiers": [
3611
3651
  {
3612
3652
  "value": "fire",
3613
3653
  "unknown": true,
@@ -4321,6 +4361,16 @@
4321
4361
  "adjective",
4322
4362
  false
4323
4363
  ],
4364
+ [
4365
+ "stm_current",
4366
+ "adjective",
4367
+ false
4368
+ ],
4369
+ [
4370
+ "stm_previous",
4371
+ "adjective",
4372
+ false
4373
+ ],
4324
4374
  [
4325
4375
  "that",
4326
4376
  "thisitthat",
@@ -4539,7 +4589,7 @@
4539
4589
  "end": 18
4540
4590
  },
4541
4591
  "dead": true,
4542
- "modifiers": [
4592
+ "conceptModifiers": [
4543
4593
  {
4544
4594
  "value": "water",
4545
4595
  "unknown": true,
@@ -5253,6 +5303,16 @@
5253
5303
  "adjective",
5254
5304
  false
5255
5305
  ],
5306
+ [
5307
+ "stm_current",
5308
+ "adjective",
5309
+ false
5310
+ ],
5311
+ [
5312
+ "stm_previous",
5313
+ "adjective",
5314
+ false
5315
+ ],
5256
5316
  [
5257
5317
  "that",
5258
5318
  "thisitthat",
@@ -5561,7 +5621,7 @@
5561
5621
  "end": 18
5562
5622
  },
5563
5623
  "dead": true,
5564
- "modifiers": [
5624
+ "conceptModifiers": [
5565
5625
  {
5566
5626
  "value": "earth",
5567
5627
  "unknown": true,
@@ -6365,6 +6425,16 @@
6365
6425
  "adjective",
6366
6426
  false
6367
6427
  ],
6428
+ [
6429
+ "stm_current",
6430
+ "adjective",
6431
+ false
6432
+ ],
6433
+ [
6434
+ "stm_previous",
6435
+ "adjective",
6436
+ false
6437
+ ],
6368
6438
  [
6369
6439
  "that",
6370
6440
  "thisitthat",
@@ -6673,7 +6743,7 @@
6673
6743
  "end": 21
6674
6744
  },
6675
6745
  "dead": true,
6676
- "modifiers": [
6746
+ "conceptModifiers": [
6677
6747
  {
6678
6748
  "value": "electric",
6679
6749
  "unknown": true,
@@ -7567,6 +7637,16 @@
7567
7637
  "adjective",
7568
7638
  false
7569
7639
  ],
7640
+ [
7641
+ "stm_current",
7642
+ "adjective",
7643
+ false
7644
+ ],
7645
+ [
7646
+ "stm_previous",
7647
+ "adjective",
7648
+ false
7649
+ ],
7570
7650
  [
7571
7651
  "that",
7572
7652
  "thisitthat",
@@ -7953,7 +8033,7 @@
7953
8033
  "text": "fire type",
7954
8034
  "range": {
7955
8035
  "start": 0,
7956
- "end": 26
8036
+ "end": 8
7957
8037
  },
7958
8038
  "types": [
7959
8039
  "fire_type",
@@ -9114,6 +9194,16 @@
9114
9194
  "adjective",
9115
9195
  false
9116
9196
  ],
9197
+ [
9198
+ "stm_current",
9199
+ "adjective",
9200
+ false
9201
+ ],
9202
+ [
9203
+ "stm_previous",
9204
+ "adjective",
9205
+ false
9206
+ ],
9117
9207
  [
9118
9208
  "that",
9119
9209
  "thisitthat",
@@ -9500,7 +9590,7 @@
9500
9590
  "text": "water type",
9501
9591
  "range": {
9502
9592
  "start": 0,
9503
- "end": 27
9593
+ "end": 9
9504
9594
  },
9505
9595
  "types": [
9506
9596
  "type",
@@ -10661,6 +10751,16 @@
10661
10751
  "adjective",
10662
10752
  false
10663
10753
  ],
10754
+ [
10755
+ "stm_current",
10756
+ "adjective",
10757
+ false
10758
+ ],
10759
+ [
10760
+ "stm_previous",
10761
+ "adjective",
10762
+ false
10763
+ ],
10664
10764
  [
10665
10765
  "that",
10666
10766
  "thisitthat",
@@ -11052,7 +11152,7 @@
11052
11152
  "text": "electric type",
11053
11153
  "range": {
11054
11154
  "start": 0,
11055
- "end": 30
11155
+ "end": 12
11056
11156
  },
11057
11157
  "types": [
11058
11158
  "electric_type",
@@ -12218,6 +12318,16 @@
12218
12318
  "adjective",
12219
12319
  false
12220
12320
  ],
12321
+ [
12322
+ "stm_current",
12323
+ "adjective",
12324
+ false
12325
+ ],
12326
+ [
12327
+ "stm_previous",
12328
+ "adjective",
12329
+ false
12330
+ ],
12221
12331
  [
12222
12332
  "that",
12223
12333
  "thisitthat",
@@ -12609,7 +12719,7 @@
12609
12719
  "text": "earth type",
12610
12720
  "range": {
12611
12721
  "start": 0,
12612
- "end": 27
12722
+ "end": 9
12613
12723
  },
12614
12724
  "types": [
12615
12725
  "earth_type",
@@ -13780,6 +13890,16 @@
13780
13890
  "adjective",
13781
13891
  false
13782
13892
  ],
13893
+ [
13894
+ "stm_current",
13895
+ "adjective",
13896
+ false
13897
+ ],
13898
+ [
13899
+ "stm_previous",
13900
+ "adjective",
13901
+ false
13902
+ ],
13783
13903
  [
13784
13904
  "that",
13785
13905
  "thisitthat",
@@ -14166,7 +14286,7 @@
14166
14286
  "word": "pikachu",
14167
14287
  "range": {
14168
14288
  "start": 0,
14169
- "end": 26
14289
+ "end": 6
14170
14290
  },
14171
14291
  "dead": true,
14172
14292
  "types": [
@@ -15290,6 +15410,16 @@
15290
15410
  "adjective",
15291
15411
  false
15292
15412
  ],
15413
+ [
15414
+ "stm_current",
15415
+ "adjective",
15416
+ false
15417
+ ],
15418
+ [
15419
+ "stm_previous",
15420
+ "adjective",
15421
+ false
15422
+ ],
15293
15423
  [
15294
15424
  "that",
15295
15425
  "thisitthat",
@@ -15677,7 +15807,7 @@
15677
15807
  "word": "charmander",
15678
15808
  "range": {
15679
15809
  "start": 0,
15680
- "end": 24
15810
+ "end": 9
15681
15811
  },
15682
15812
  "dead": true,
15683
15813
  "types": [
package/common/pokemon.js CHANGED
@@ -2,7 +2,7 @@ const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const hierarchy = require('./hierarchy')
4
4
  const pokemon_tests = require('./pokemon.test.json')
5
- const pokemon_instance = require('./pokemon.instance.json')
5
+ const instance = require('./pokemon.instance.json')
6
6
  const pluralize = require('pluralize')
7
7
 
8
8
  const template = {
@@ -29,7 +29,7 @@ const template = {
29
29
  // 'ashe owns pikachu who owns pikachu'
30
30
  // TODO does ashe own pikachu / ash owns pikachu? / 'ashe likes pikachu does ashe like pikachu'
31
31
 
32
- const initializer = ({config, apis}) => {
32
+ function initializer({config, apis}) {
33
33
  const api = apis('properties')
34
34
  /*
35
35
  api.createActionPrefix({
@@ -65,8 +65,6 @@ knowledgeModule( {
65
65
  context: [defaultContextCheck()],
66
66
  },
67
67
  },
68
- template: {
69
- template,
70
- instance: pokemon_instance,
71
- },
68
+ instance,
69
+ template,
72
70
  })