tpmkms_4wp 9.5.1-beta.9 → 9.6.0-beta.0

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 (114) hide show
  1. package/common/animals.instance.json +130 -0
  2. package/common/animals.js +3 -5
  3. package/common/asking.js +12 -4
  4. package/common/avatar.test.json +1001 -860
  5. package/common/can.instance.json +2182 -5
  6. package/common/can.js +102 -39
  7. package/common/can.test.json +51307 -0
  8. package/common/colors.instance.json +142 -30
  9. package/common/colors.js +3 -6
  10. package/common/comparable.instance.json +31 -1
  11. package/common/comparable.js +3 -6
  12. package/common/concept.js +25 -27
  13. package/common/concept.test.json +142 -120
  14. package/common/conjunction.test.json +32 -42
  15. package/common/crew.instance.json +400 -126
  16. package/common/crew.js +3 -6
  17. package/common/dateTimeSelectors.instance.json +2 -2
  18. package/common/dateTimeSelectors.js +6 -9
  19. package/common/dateTimeSelectors.test.json +76935 -35739
  20. package/common/dates.instance.json +50 -84
  21. package/common/dates.js +3 -6
  22. package/common/dates.test.json +284 -287
  23. package/common/dialogues.js +33 -115
  24. package/common/dialogues.test.json +1248 -1152
  25. package/common/dimension.instance.json +21498 -566
  26. package/common/dimension.js +147 -52
  27. package/common/dimension.test.json +10979 -4625
  28. package/common/drone.instance.json +24709 -0
  29. package/common/drone.js +662 -0
  30. package/common/drone.test.json +30522 -0
  31. package/common/drone_v1.instance.json +24703 -0
  32. package/common/drone_v1.js +596 -0
  33. package/common/drone_v1.test.json +115538 -0
  34. package/common/edible.instance.json +365 -65
  35. package/common/edible.js +3 -5
  36. package/common/emotions.instance.json +57 -70
  37. package/common/emotions.js +3 -6
  38. package/common/errors.js +3 -3
  39. package/common/fastfood.instance.json +1270 -244
  40. package/common/fastfood.js +10 -12
  41. package/common/fastfood.test.json +6970 -6829
  42. package/common/formulas.instance.json +10 -0
  43. package/common/formulas.js +2 -1
  44. package/common/gdefaults.js +58 -13
  45. package/common/help.js +9 -9
  46. package/common/help.test.json +65 -11
  47. package/common/helpers/dialogues.js +9 -1
  48. package/common/helpers/properties.js +37 -18
  49. package/common/helpers.js +32 -2
  50. package/common/hierarchy.js +10 -8
  51. package/common/kirk.instance.json +10 -0
  52. package/common/kirk.js +4 -6
  53. package/common/kirk.test.json +600 -424
  54. package/common/latin.instance.json +10 -10
  55. package/common/latin.js +8 -10
  56. package/common/length.instance.json +34659 -3157
  57. package/common/length.js +11 -6
  58. package/common/length.test.json +54357 -2557
  59. package/common/math.instance.json +11 -1
  60. package/common/math.js +2 -1
  61. package/common/menus.instance.json +74 -7
  62. package/common/menus.js +3 -12
  63. package/common/meta.js +4 -5
  64. package/common/nameable.js +29 -15
  65. package/common/nameable.test.json +436 -0
  66. package/common/numbers.js +1 -1
  67. package/common/ordering.instance.json +24 -2
  68. package/common/ordering.js +3 -5
  69. package/common/ordering.test.json +104 -174
  70. package/common/people.instance.json +140 -315
  71. package/common/people.js +3 -5
  72. package/common/pipboy.instance.json +171 -57
  73. package/common/pipboy.js +2 -1
  74. package/common/pokemon.instance.json +135 -5
  75. package/common/pokemon.js +3 -5
  76. package/common/pressure.instance.json +3990 -1981
  77. package/common/pressure.js +3 -5
  78. package/common/pressure.test.json +433 -477
  79. package/common/properties.instance.json +15 -16
  80. package/common/properties.js +10 -9
  81. package/common/properties.test.json +9565 -6951
  82. package/common/rates.instance.json +59 -0
  83. package/common/rates.js +95 -0
  84. package/common/rates.test.json +27702 -0
  85. package/common/reminders.js +5 -8
  86. package/common/reminders.test.json +64635 -25787
  87. package/common/reports.instance.json +22 -2
  88. package/common/reports.js +3 -5
  89. package/common/scorekeeper.js +3 -6
  90. package/common/spock.instance.json +10 -0
  91. package/common/spock.js +4 -7
  92. package/common/spock.test.json +606 -430
  93. package/common/stm.js +37 -20
  94. package/common/temperature.instance.json +3162 -1153
  95. package/common/temperature.js +3 -5
  96. package/common/temperature.test.json +433 -477
  97. package/common/time.instance.json +24852 -0
  98. package/common/time.js +136 -139
  99. package/common/time.test.json +31876 -3757
  100. package/common/ui.instance.json +12 -5
  101. package/common/ui.js +4 -13
  102. package/common/weight.instance.json +10500 -4098
  103. package/common/weight.js +3 -5
  104. package/common/weight.test.json +2601 -2263
  105. package/common/words.instance.json +9 -0
  106. package/common/words.js +50 -0
  107. package/common/words.test.json +2 -0
  108. package/common/wp.instance.json +470 -58
  109. package/common/wp.js +6 -4
  110. package/common/wp.test.json +7385 -6906
  111. package/main.js +6 -2
  112. package/package.json +21 -6
  113. package/common/listener.js +0 -50
  114. package/common/listener.test.json +0 -142
package/common/people.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 people_tests = require('./people.test.json')
5
- const people_instance = require('./people.instance.json')
5
+ const instance = require('./people.instance.json')
6
6
  const { hashIndexesGet, hashIndexesSet, translationMapping, translationMappings, compose } = require('./helpers/meta.js')
7
7
 
8
8
  // TODO first name
@@ -76,8 +76,6 @@ knowledgeModule( {
76
76
  objects: [{ km: 'properties' }],
77
77
  },
78
78
  },
79
- template: {
80
- template,
81
- instance: people_instance
82
- },
79
+ instance,
80
+ template,
83
81
  })
@@ -1157,6 +1157,16 @@
1157
1157
  "adjective",
1158
1158
  false
1159
1159
  ],
1160
+ [
1161
+ "stm_current",
1162
+ "adjective",
1163
+ false
1164
+ ],
1165
+ [
1166
+ "stm_previous",
1167
+ "adjective",
1168
+ false
1169
+ ],
1160
1170
  [
1161
1171
  "that",
1162
1172
  "thisitthat",
@@ -1716,20 +1726,6 @@
1716
1726
  0
1717
1727
  ]
1718
1728
  ],
1719
- [
1720
- [
1721
- "is",
1722
- 0
1723
- ],
1724
- [
1725
- "list",
1726
- 1
1727
- ],
1728
- [
1729
- "unknown",
1730
- 0
1731
- ]
1732
- ],
1733
1729
  [
1734
1730
  [
1735
1731
  "is",
@@ -3471,6 +3467,16 @@
3471
3467
  "adjective",
3472
3468
  false
3473
3469
  ],
3470
+ [
3471
+ "stm_current",
3472
+ "adjective",
3473
+ false
3474
+ ],
3475
+ [
3476
+ "stm_previous",
3477
+ "adjective",
3478
+ false
3479
+ ],
3474
3480
  [
3475
3481
  "that",
3476
3482
  "thisitthat",
@@ -5031,6 +5037,16 @@
5031
5037
  "adjective",
5032
5038
  false
5033
5039
  ],
5040
+ [
5041
+ "stm_current",
5042
+ "adjective",
5043
+ false
5044
+ ],
5045
+ [
5046
+ "stm_previous",
5047
+ "adjective",
5048
+ false
5049
+ ],
5034
5050
  [
5035
5051
  "that",
5036
5052
  "thisitthat",
@@ -6412,6 +6428,16 @@
6412
6428
  "adjective",
6413
6429
  false
6414
6430
  ],
6431
+ [
6432
+ "stm_current",
6433
+ "adjective",
6434
+ false
6435
+ ],
6436
+ [
6437
+ "stm_previous",
6438
+ "adjective",
6439
+ false
6440
+ ],
6415
6441
  [
6416
6442
  "that",
6417
6443
  "thisitthat",
@@ -8253,6 +8279,16 @@
8253
8279
  "adjective",
8254
8280
  false
8255
8281
  ],
8282
+ [
8283
+ "stm_current",
8284
+ "adjective",
8285
+ false
8286
+ ],
8287
+ [
8288
+ "stm_previous",
8289
+ "adjective",
8290
+ false
8291
+ ],
8256
8292
  [
8257
8293
  "that",
8258
8294
  "thisitthat",
@@ -9689,6 +9725,16 @@
9689
9725
  "adjective",
9690
9726
  false
9691
9727
  ],
9728
+ [
9729
+ "stm_current",
9730
+ "adjective",
9731
+ false
9732
+ ],
9733
+ [
9734
+ "stm_previous",
9735
+ "adjective",
9736
+ false
9737
+ ],
9692
9738
  [
9693
9739
  "that",
9694
9740
  "thisitthat",
@@ -10139,20 +10185,6 @@
10139
10185
  0
10140
10186
  ]
10141
10187
  ],
10142
- [
10143
- [
10144
- "is",
10145
- 0
10146
- ],
10147
- [
10148
- "list",
10149
- 1
10150
- ],
10151
- [
10152
- "unknown",
10153
- 0
10154
- ]
10155
- ],
10156
10188
  [
10157
10189
  [
10158
10190
  "is",
@@ -11724,6 +11756,16 @@
11724
11756
  "adjective",
11725
11757
  false
11726
11758
  ],
11759
+ [
11760
+ "stm_current",
11761
+ "adjective",
11762
+ false
11763
+ ],
11764
+ [
11765
+ "stm_previous",
11766
+ "adjective",
11767
+ false
11768
+ ],
11727
11769
  [
11728
11770
  "suit",
11729
11771
  "clothe",
@@ -13476,6 +13518,16 @@
13476
13518
  "adjective",
13477
13519
  false
13478
13520
  ],
13521
+ [
13522
+ "stm_current",
13523
+ "adjective",
13524
+ false
13525
+ ],
13526
+ [
13527
+ "stm_previous",
13528
+ "adjective",
13529
+ false
13530
+ ],
13479
13531
  [
13480
13532
  "suit",
13481
13533
  "clothe",
@@ -15112,6 +15164,16 @@
15112
15164
  "adjective",
15113
15165
  false
15114
15166
  ],
15167
+ [
15168
+ "stm_current",
15169
+ "adjective",
15170
+ false
15171
+ ],
15172
+ [
15173
+ "stm_previous",
15174
+ "adjective",
15175
+ false
15176
+ ],
15115
15177
  [
15116
15178
  "suit",
15117
15179
  "clothe",
@@ -16880,6 +16942,16 @@
16880
16942
  "adjective",
16881
16943
  false
16882
16944
  ],
16945
+ [
16946
+ "stm_current",
16947
+ "adjective",
16948
+ false
16949
+ ],
16950
+ [
16951
+ "stm_previous",
16952
+ "adjective",
16953
+ false
16954
+ ],
16883
16955
  [
16884
16956
  "suit",
16885
16957
  "clothe",
@@ -18632,6 +18704,16 @@
18632
18704
  "adjective",
18633
18705
  false
18634
18706
  ],
18707
+ [
18708
+ "stm_current",
18709
+ "adjective",
18710
+ false
18711
+ ],
18712
+ [
18713
+ "stm_previous",
18714
+ "adjective",
18715
+ false
18716
+ ],
18635
18717
  [
18636
18718
  "suit",
18637
18719
  "clothe",
@@ -20455,6 +20537,16 @@
20455
20537
  "adjective",
20456
20538
  false
20457
20539
  ],
20540
+ [
20541
+ "stm_current",
20542
+ "adjective",
20543
+ false
20544
+ ],
20545
+ [
20546
+ "stm_previous",
20547
+ "adjective",
20548
+ false
20549
+ ],
20458
20550
  [
20459
20551
  "suit",
20460
20552
  "clothe",
@@ -22322,6 +22414,16 @@
22322
22414
  "adjective",
22323
22415
  false
22324
22416
  ],
22417
+ [
22418
+ "stm_current",
22419
+ "adjective",
22420
+ false
22421
+ ],
22422
+ [
22423
+ "stm_previous",
22424
+ "adjective",
22425
+ false
22426
+ ],
22325
22427
  [
22326
22428
  "suit",
22327
22429
  "clothe",
@@ -24466,6 +24568,16 @@
24466
24568
  "adjective",
24467
24569
  false
24468
24570
  ],
24571
+ [
24572
+ "stm_current",
24573
+ "adjective",
24574
+ false
24575
+ ],
24576
+ [
24577
+ "stm_previous",
24578
+ "adjective",
24579
+ false
24580
+ ],
24469
24581
  [
24470
24582
  "suit",
24471
24583
  "clothe",
@@ -26730,6 +26842,16 @@
26730
26842
  "adjective",
26731
26843
  false
26732
26844
  ],
26845
+ [
26846
+ "stm_current",
26847
+ "adjective",
26848
+ false
26849
+ ],
26850
+ [
26851
+ "stm_previous",
26852
+ "adjective",
26853
+ false
26854
+ ],
26733
26855
  [
26734
26856
  "suit",
26735
26857
  "clothe",
@@ -29090,6 +29212,16 @@
29090
29212
  "adjective",
29091
29213
  false
29092
29214
  ],
29215
+ [
29216
+ "stm_current",
29217
+ "adjective",
29218
+ false
29219
+ ],
29220
+ [
29221
+ "stm_previous",
29222
+ "adjective",
29223
+ false
29224
+ ],
29093
29225
  [
29094
29226
  "suit",
29095
29227
  "clothe",
@@ -29438,7 +29570,7 @@
29438
29570
  "end": 21
29439
29571
  },
29440
29572
  "dead": true,
29441
- "modifiers": [
29573
+ "conceptModifiers": [
29442
29574
  {
29443
29575
  "value": "item",
29444
29576
  "unknown": true,
@@ -31263,6 +31395,16 @@
31263
31395
  "adjective",
31264
31396
  false
31265
31397
  ],
31398
+ [
31399
+ "stm_current",
31400
+ "adjective",
31401
+ false
31402
+ ],
31403
+ [
31404
+ "stm_previous",
31405
+ "adjective",
31406
+ false
31407
+ ],
31266
31408
  [
31267
31409
  "suit",
31268
31410
  "clothe",
@@ -35461,34 +35603,6 @@
35461
35603
  0
35462
35604
  ]
35463
35605
  ],
35464
- [
35465
- [
35466
- "is",
35467
- 0
35468
- ],
35469
- [
35470
- "list",
35471
- 1
35472
- ],
35473
- [
35474
- "unknown",
35475
- 0
35476
- ]
35477
- ],
35478
- [
35479
- [
35480
- "is",
35481
- 0
35482
- ],
35483
- [
35484
- "list",
35485
- 1
35486
- ],
35487
- [
35488
- "unknown",
35489
- 0
35490
- ]
35491
- ],
35492
35606
  [
35493
35607
  [
35494
35608
  "is",
package/common/pipboy.js CHANGED
@@ -498,7 +498,8 @@ knowledgeModule({
498
498
 
499
499
  module,
500
500
  description: 'Control a pipboy with speech',
501
- template: { template, instance },
501
+ instance,
502
+ template,
502
503
  test: {
503
504
  name: './pipboy.test.json',
504
505
  contents: pipboy_tests,
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
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 = {
@@ -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
  })