tpmkms_4wp 9.5.1-beta.0 → 9.5.1-beta.11

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 (70) hide show
  1. package/common/animals.instance.json +21 -61
  2. package/common/asking.js +102 -100
  3. package/common/can.instance.json +17 -0
  4. package/common/can.js +190 -0
  5. package/common/characters.js +3 -3
  6. package/common/colors.instance.json +10 -10
  7. package/common/comparable.instance.json +2 -2
  8. package/common/concept.test.json +54 -40
  9. package/common/conjunction.js +13 -5
  10. package/common/crew.instance.json +26 -26
  11. package/common/crew.js +1 -1
  12. package/common/currency.js +1 -1
  13. package/common/dates.instance.json +3 -3
  14. package/common/dialogues.js +29 -110
  15. package/common/dimension.instance.json +1 -1
  16. package/common/edible.instance.json +23 -95
  17. package/common/emotions.instance.json +6 -10
  18. package/common/emotions.js +1 -1
  19. package/common/english_helpers.js +277 -67
  20. package/common/fastfood.instance.json +160 -796
  21. package/common/fastfood.js +4 -4
  22. package/common/formulas.instance.json +1 -1
  23. package/common/gdefaults.js +41 -9
  24. package/common/help.js +2 -2
  25. package/common/helpers/concept.js +1 -1
  26. package/common/helpers/conjunction.js +54 -44
  27. package/common/helpers/dateTimeSelectors.js +2 -2
  28. package/common/helpers/dialogues.js +1 -1
  29. package/common/helpers/formulas.js +13 -11
  30. package/common/helpers/menus.js +12 -12
  31. package/common/helpers/meta.js +8 -8
  32. package/common/helpers/properties.js +76 -15
  33. package/common/helpers.js +82 -46
  34. package/common/hierarchy.js +3 -3
  35. package/common/kirk.instance.json +1 -1
  36. package/common/length.instance.json +2 -2
  37. package/common/math.instance.json +20 -20
  38. package/common/math.js +45 -44
  39. package/common/menus.instance.json +3 -3
  40. package/common/menus.js +1 -1
  41. package/common/meta.js +49 -33
  42. package/common/ordering.instance.json +16 -28
  43. package/common/ordering.js +1 -1
  44. package/common/ordering.test.json +354 -296
  45. package/common/people.instance.json +43 -298
  46. package/common/people.js +1 -1
  47. package/common/people.test.json +952 -681
  48. package/common/pipboy.instance.json +16 -16
  49. package/common/pokemon.instance.json +8 -8
  50. package/common/pokemon.js +1 -1
  51. package/common/pressure.instance.json +2 -2
  52. package/common/properties.instance.json +1 -1
  53. package/common/properties.js +16 -3
  54. package/common/reminders.js +1 -1
  55. package/common/reports.instance.json +3 -3
  56. package/common/reports.js +18 -16
  57. package/common/scorekeeper.js +4 -4
  58. package/common/sdefaults.js +22 -2
  59. package/common/spock.instance.json +1 -1
  60. package/common/stgame.js +1 -1
  61. package/common/stm.js +2 -2
  62. package/common/tell.js +1 -1
  63. package/common/temperature.instance.json +2 -2
  64. package/common/tester.js +3 -3
  65. package/common/time.js +3 -3
  66. package/common/tokenize.js +1 -1
  67. package/common/weight.instance.json +2 -2
  68. package/common/wp.instance.json +6 -6
  69. package/common/wp.js +4 -4
  70. package/package.json +4 -2
@@ -1571,7 +1571,7 @@
1571
1571
  "text": "pistols rifles grenades mines and shotguns",
1572
1572
  "range": {
1573
1573
  "start": 0,
1574
- "end": 53
1574
+ "end": 41
1575
1575
  },
1576
1576
  "types": [
1577
1577
  "list",
@@ -3727,7 +3727,7 @@
3727
3727
  "text": "mines and grenades",
3728
3728
  "range": {
3729
3729
  "start": 0,
3730
- "end": 32
3730
+ "end": 17
3731
3731
  },
3732
3732
  "types": [
3733
3733
  "grenade",
@@ -5250,7 +5250,7 @@
5250
5250
  "word": "explosives",
5251
5251
  "range": {
5252
5252
  "start": 0,
5253
- "end": 21
5253
+ "end": 9
5254
5254
  },
5255
5255
  "dead": true,
5256
5256
  "types": [
@@ -6718,7 +6718,7 @@
6718
6718
  "text": "pistols rifles and shotguns",
6719
6719
  "range": {
6720
6720
  "start": 0,
6721
- "end": 39
6721
+ "end": 26
6722
6722
  },
6723
6723
  "types": [
6724
6724
  "list",
@@ -8472,7 +8472,7 @@
8472
8472
  "word": "firearms",
8473
8473
  "range": {
8474
8474
  "start": 0,
8475
- "end": 19
8475
+ "end": 7
8476
8476
  },
8477
8477
  "dead": true,
8478
8478
  "types": [
@@ -10012,7 +10012,7 @@
10012
10012
  "text": "hats armor and suits",
10013
10013
  "range": {
10014
10014
  "start": 0,
10015
- "end": 31
10015
+ "end": 19
10016
10016
  },
10017
10017
  "types": [
10018
10018
  "list",
@@ -11994,7 +11994,7 @@
11994
11994
  "word": "weapon",
11995
11995
  "range": {
11996
11996
  "start": 0,
11997
- "end": 20
11997
+ "end": 7
11998
11998
  },
11999
11999
  "dead": true,
12000
12000
  "types": [
@@ -13726,7 +13726,7 @@
13726
13726
  "word": "clothes",
13727
13727
  "range": {
13728
13728
  "start": 0,
13729
- "end": 19
13729
+ "end": 6
13730
13730
  },
13731
13731
  "dead": true,
13732
13732
  "types": [
@@ -15398,7 +15398,7 @@
15398
15398
  "word": "edible",
15399
15399
  "range": {
15400
15400
  "start": 0,
15401
- "end": 18
15401
+ "end": 5
15402
15402
  },
15403
15403
  "dead": true,
15404
15404
  "types": [
@@ -17166,7 +17166,7 @@
17166
17166
  "word": "food",
17167
17167
  "range": {
17168
17168
  "start": 0,
17169
- "end": 13
17169
+ "end": 3
17170
17170
  },
17171
17171
  "dead": true,
17172
17172
  "types": [
@@ -18918,7 +18918,7 @@
18918
18918
  "word": "drinks",
18919
18919
  "range": {
18920
18920
  "start": 0,
18921
- "end": 19
18921
+ "end": 5
18922
18922
  },
18923
18923
  "dead": true,
18924
18924
  "types": [
@@ -20741,7 +20741,7 @@
20741
20741
  "word": "meat",
20742
20742
  "range": {
20743
20743
  "start": 0,
20744
- "end": 11
20744
+ "end": 3
20745
20745
  },
20746
20746
  "dead": true,
20747
20747
  "types": [
@@ -22661,7 +22661,7 @@
22661
22661
  "text": "vegetables and fruit",
22662
22662
  "range": {
22663
22663
  "start": 0,
22664
- "end": 28
22664
+ "end": 19
22665
22665
  },
22666
22666
  "types": [
22667
22667
  "list",
@@ -24845,7 +24845,7 @@
24845
24845
  "text": "cola and pop",
24846
24846
  "range": {
24847
24847
  "start": 0,
24848
- "end": 22
24848
+ "end": 11
24849
24849
  },
24850
24850
  "types": [
24851
24851
  "list",
@@ -27109,7 +27109,7 @@
27109
27109
  "text": "medicine and stimpaks",
27110
27110
  "range": {
27111
27111
  "start": 0,
27112
- "end": 33
27112
+ "end": 20
27113
27113
  },
27114
27114
  "types": [
27115
27115
  "list",
@@ -32211,7 +32211,7 @@
32211
32211
  "text": "damage luck hp rads value ap charisma range and accuracy",
32212
32212
  "range": {
32213
32213
  "start": 0,
32214
- "end": 75
32214
+ "end": 55
32215
32215
  },
32216
32216
  "types": [
32217
32217
  "list",
@@ -1122,7 +1122,7 @@
1122
1122
  "text": "pokemon type",
1123
1123
  "range": {
1124
1124
  "start": 0,
1125
- "end": 21
1125
+ "end": 11
1126
1126
  },
1127
1127
  "types": [
1128
1128
  "pokemon_type",
@@ -2162,7 +2162,7 @@
2162
2162
  "text": "pikachu squirtle weedle and pidgeot",
2163
2163
  "range": {
2164
2164
  "start": 0,
2165
- "end": 46
2165
+ "end": 34
2166
2166
  },
2167
2167
  "types": [
2168
2168
  "list",
@@ -7953,7 +7953,7 @@
7953
7953
  "text": "fire type",
7954
7954
  "range": {
7955
7955
  "start": 0,
7956
- "end": 26
7956
+ "end": 8
7957
7957
  },
7958
7958
  "types": [
7959
7959
  "fire_type",
@@ -9500,7 +9500,7 @@
9500
9500
  "text": "water type",
9501
9501
  "range": {
9502
9502
  "start": 0,
9503
- "end": 27
9503
+ "end": 9
9504
9504
  },
9505
9505
  "types": [
9506
9506
  "type",
@@ -11052,7 +11052,7 @@
11052
11052
  "text": "electric type",
11053
11053
  "range": {
11054
11054
  "start": 0,
11055
- "end": 30
11055
+ "end": 12
11056
11056
  },
11057
11057
  "types": [
11058
11058
  "electric_type",
@@ -12609,7 +12609,7 @@
12609
12609
  "text": "earth type",
12610
12610
  "range": {
12611
12611
  "start": 0,
12612
- "end": 27
12612
+ "end": 9
12613
12613
  },
12614
12614
  "types": [
12615
12615
  "earth_type",
@@ -14166,7 +14166,7 @@
14166
14166
  "word": "pikachu",
14167
14167
  "range": {
14168
14168
  "start": 0,
14169
- "end": 26
14169
+ "end": 6
14170
14170
  },
14171
14171
  "dead": true,
14172
14172
  "types": [
@@ -15677,7 +15677,7 @@
15677
15677
  "word": "charmander",
15678
15678
  "range": {
15679
15679
  "start": 0,
15680
- "end": 24
15680
+ "end": 9
15681
15681
  },
15682
15682
  "dead": true,
15683
15683
  "types": [
package/common/pokemon.js CHANGED
@@ -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({
@@ -1112,7 +1112,7 @@
1112
1112
  "word": "pressure",
1113
1113
  "range": {
1114
1114
  "start": 0,
1115
- "end": 22
1115
+ "end": 7
1116
1116
  },
1117
1117
  "dead": true,
1118
1118
  "types": [
@@ -2657,7 +2657,7 @@
2657
2657
  "text": "pascals and atmospheres",
2658
2658
  "range": {
2659
2659
  "start": 0,
2660
- "end": 44
2660
+ "end": 22
2661
2661
  },
2662
2662
  "types": [
2663
2663
  "list",
@@ -502,7 +502,7 @@
502
502
  "word": "property1",
503
503
  "range": {
504
504
  "start": 0,
505
- "end": 33
505
+ "end": 23
506
506
  },
507
507
  "dead": true,
508
508
  "types": [
@@ -1,5 +1,5 @@
1
1
  const { knowledgeModule, where } = require('./runtime').theprogrammablemind
2
- const { defaultContextCheck } = require('./helpers')
2
+ const { defaultContextCheck, words } = require('./helpers')
3
3
  const dialogues = require('./dialogues')
4
4
  const meta = require('./meta')
5
5
  const concept = require('./concept')
@@ -75,6 +75,8 @@ const template = {
75
75
  fragments: [
76
76
  "the property1 of object1 is value1",
77
77
  ],
78
+ configs: [
79
+ ],
78
80
  }
79
81
 
80
82
  const api = new API();
@@ -91,6 +93,7 @@ const config = {
91
93
 
92
94
  operators: [
93
95
  "([hierarchyAble|])",
96
+ { pattern: "([propertyRelation|])" }, // , scope: 'development' },
94
97
  "(([property]) <([propertyOf|of] ([object]))>)",
95
98
  "(<whose> ([property]))",
96
99
  // "((modifier) [modifies] (concept))",
@@ -121,6 +124,16 @@ const config = {
121
124
  ['what', 'object'],
122
125
  ],
123
126
  bridges: [
127
+ {
128
+ id: 'propertyRelation',
129
+ // scope: 'development',
130
+ words: words('propertyRelation'),
131
+ evaluator: ({context, api, objects, toList}) => {
132
+ context.evalue = toList(objects.relations)
133
+ context.evalue.isResponse = true
134
+ context.evalue.paraphrase = false
135
+ }
136
+ },
124
137
  {
125
138
  id: 'xfx',
126
139
  isA: ['queryable'],
@@ -612,7 +625,7 @@ const config = {
612
625
  apply: async ({context, api, kms, objects, g, s, log}) => {
613
626
  const toDo = [ ...context.objects ]
614
627
 
615
- const toValue = async (objectContext) => {
628
+ async function toValue(objectContext) {
616
629
  if (!objectContext.value) {
617
630
  return objectContext;
618
631
  }
@@ -660,7 +673,7 @@ const config = {
660
673
  ]
661
674
  };
662
675
 
663
- const initializer = ({objects, config, isModule}) => {
676
+ function initializer({objects, config, isModule}) {
664
677
  // debugger
665
678
  config.addArgs(({config, api, isA}) => ({
666
679
  makeObject: api('properties').makeObject,
@@ -18,7 +18,7 @@ const helpers = require('./helpers')
18
18
  add greg as a user
19
19
  */
20
20
 
21
- const query = (missing, reminder_id) => {
21
+ function query(missing, reminder_id) {
22
22
  return {
23
23
  where: where(),
24
24
  // oneShot: false,