tpmkms_4wp 9.5.1-beta.3 → 9.5.1-beta.31

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 +21 -61
  2. package/common/asking.js +112 -102
  3. package/common/avatar.test.json +1001 -860
  4. package/common/can.instance.json +2174 -0
  5. package/common/can.js +254 -0
  6. package/common/can.test.json +51307 -0
  7. package/common/characters.js +3 -3
  8. package/common/colors.instance.json +10 -10
  9. package/common/comparable.instance.json +2 -2
  10. package/common/concept.js +19 -22
  11. package/common/concept.test.json +54 -40
  12. package/common/conjunction.js +13 -5
  13. package/common/conjunction.test.json +32 -42
  14. package/common/crew.instance.json +164 -150
  15. package/common/crew.js +1 -1
  16. package/common/currency.js +1 -1
  17. package/common/dateTimeSelectors.instance.json +2 -2
  18. package/common/dateTimeSelectors.js +3 -3
  19. package/common/dateTimeSelectors.test.json +76935 -35739
  20. package/common/dates.instance.json +3 -3
  21. package/common/dates.test.json +284 -287
  22. package/common/dialogues.js +41 -119
  23. package/common/dialogues.test.json +1171 -996
  24. package/common/dimension.instance.json +21374 -562
  25. package/common/dimension.js +145 -51
  26. package/common/dimension.test.json +8753 -3495
  27. package/common/drone.instance.json +23710 -0
  28. package/common/drone.js +429 -0
  29. package/common/drone.test.json +61113 -0
  30. package/common/edible.instance.json +23 -95
  31. package/common/emotions.instance.json +53 -80
  32. package/common/emotions.js +1 -1
  33. package/common/english_helpers.js +277 -67
  34. package/common/fastfood.instance.json +180 -372
  35. package/common/fastfood.js +4 -4
  36. package/common/fastfood.test.json +6970 -6829
  37. package/common/formulas.instance.json +1 -1
  38. package/common/gdefaults.js +94 -17
  39. package/common/help.js +11 -11
  40. package/common/help.test.json +65 -11
  41. package/common/helpers/concept.js +1 -1
  42. package/common/helpers/conjunction.js +54 -44
  43. package/common/helpers/dateTimeSelectors.js +2 -2
  44. package/common/helpers/dialogues.js +7 -2
  45. package/common/helpers/formulas.js +13 -11
  46. package/common/helpers/menus.js +12 -12
  47. package/common/helpers/meta.js +8 -8
  48. package/common/helpers/properties.js +104 -23
  49. package/common/helpers.js +114 -48
  50. package/common/hierarchy.js +6 -4
  51. package/common/kirk.instance.json +1 -1
  52. package/common/kirk.test.json +600 -424
  53. package/common/latin.instance.json +10 -10
  54. package/common/latin.js +5 -5
  55. package/common/length.instance.json +27612 -2890
  56. package/common/length.js +6 -1
  57. package/common/length.test.json +45315 -3925
  58. package/common/math.instance.json +20 -20
  59. package/common/math.js +45 -44
  60. package/common/menus.instance.json +6 -9
  61. package/common/menus.js +2 -9
  62. package/common/meta.js +50 -33
  63. package/common/nameable.js +13 -6
  64. package/common/nameable.test.json +436 -0
  65. package/common/numbers.js +1 -1
  66. package/common/ordering.instance.json +20 -30
  67. package/common/ordering.js +1 -1
  68. package/common/ordering.test.json +414 -426
  69. package/common/people.instance.json +82 -348
  70. package/common/people.js +1 -1
  71. package/common/people.test.json +952 -681
  72. package/common/pipboy.instance.json +16 -16
  73. package/common/pokemon.instance.json +8 -8
  74. package/common/pokemon.js +1 -1
  75. package/common/pressure.instance.json +3579 -1610
  76. package/common/pressure.test.json +433 -477
  77. package/common/properties.instance.json +6 -17
  78. package/common/properties.js +19 -6
  79. package/common/properties.test.json +8746 -6638
  80. package/common/rates.instance.json +59 -0
  81. package/common/rates.js +97 -0
  82. package/common/rates.test.json +27702 -0
  83. package/common/reminders.js +1 -1
  84. package/common/reminders.test.json +64635 -25787
  85. package/common/reports.instance.json +3 -3
  86. package/common/reports.js +18 -16
  87. package/common/scorekeeper.js +4 -4
  88. package/common/sdefaults.js +22 -2
  89. package/common/spock.instance.json +1 -1
  90. package/common/spock.test.json +606 -430
  91. package/common/stgame.js +1 -1
  92. package/common/stm.js +15 -4
  93. package/common/tell.js +1 -1
  94. package/common/temperature.instance.json +3786 -1705
  95. package/common/temperature.test.json +433 -477
  96. package/common/tester.js +3 -3
  97. package/common/time.instance.json +24762 -0
  98. package/common/time.js +137 -141
  99. package/common/time.test.json +31876 -3757
  100. package/common/tokenize.js +1 -1
  101. package/common/ui.instance.json +2 -5
  102. package/common/ui.js +1 -8
  103. package/common/weight.instance.json +10359 -4077
  104. package/common/weight.test.json +2601 -2263
  105. package/common/words.instance.json +9 -0
  106. package/common/words.js +53 -0
  107. package/common/words.test.json +2 -0
  108. package/common/wp.instance.json +336 -8
  109. package/common/wp.js +8 -4
  110. package/common/wp.test.json +7385 -6906
  111. package/main.js +4 -2
  112. package/package.json +18 -5
  113. package/common/listener.js +0 -50
  114. package/common/listener.test.json +0 -142
@@ -444,7 +444,7 @@
444
444
  ],
445
445
  "ops": [
446
446
  [
447
- "is",
447
+ "be",
448
448
  0
449
449
  ],
450
450
  [
@@ -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": [
@@ -598,10 +598,7 @@
598
598
  "level": 2,
599
599
  "context_index": 1,
600
600
  "topLevel": true,
601
- "context_id": 2,
602
- "touchedBy": [
603
- "properties#call2"
604
- ]
601
+ "context_id": 2
605
602
  }
606
603
  ],
607
604
  "generated": [
@@ -663,10 +660,6 @@
663
660
  ]
664
661
  ],
665
662
  [
666
- [
667
- "is",
668
- 0
669
- ],
670
663
  [
671
664
  "propertyOf",
672
665
  1
@@ -1019,7 +1012,7 @@
1019
1012
  },
1020
1013
  {
1021
1014
  "marker": [
1022
- "is",
1015
+ "be",
1023
1016
  0
1024
1017
  ],
1025
1018
  "range": {
@@ -1112,7 +1105,7 @@
1112
1105
  "learned_contextual_priorities": [],
1113
1106
  "rtf_associations": [],
1114
1107
  "query": "the property1 of object1 is value1",
1115
- "skipSemantics": false,
1108
+ "skipSemantics": true,
1116
1109
  "key": {
1117
1110
  "query": "the property1 of object1 is value1"
1118
1111
  }
@@ -1167,10 +1160,6 @@
1167
1160
  ]
1168
1161
  ],
1169
1162
  [
1170
- [
1171
- "is",
1172
- 0
1173
- ],
1174
1163
  [
1175
1164
  "propertyOf",
1176
1165
  1
@@ -1523,7 +1512,7 @@
1523
1512
  },
1524
1513
  {
1525
1514
  "marker": [
1526
- "is",
1515
+ "be",
1527
1516
  0
1528
1517
  ],
1529
1518
  "range": {
@@ -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'],
@@ -354,7 +367,7 @@ const config = {
354
367
  notes: 'the property of object',
355
368
  where: where(),
356
369
  // match: ({context}) => context.paraphrase && context.modifiers && context.object,
357
- match: ({context}) => context.paraphrase && !context.possession && context.object,
370
+ match: ({context}) => context.paraphrase && !context.possession && context.object && !context.interpolate,
358
371
  apply: async ({context, g, gs}) => {
359
372
  const base = { ...context }
360
373
  base.object = undefined;
@@ -387,7 +400,7 @@ const config = {
387
400
  notes: "object's property",
388
401
  where: where(),
389
402
  // match: ({context}) => context.paraphrase && !context.modifiers && context.object,
390
- match: ({context}) => !context.modifiers && context.object,
403
+ match: ({context}) => !context.modifiers && context.object && !context.interpolate,
391
404
  apply: async ({context, g, gs}) => {
392
405
  if (context.objects) {
393
406
  const objects = [ ...context.objects ]
@@ -559,7 +572,7 @@ const config = {
559
572
  } catch (e) {
560
573
  log(`Error processing set property of an object: ${e}`)
561
574
  const config = km('properties')
562
- const fragment = fragments("the property1 of object1 is value1")
575
+ const fragment = await fragments("the property1 of object1 is value1")
563
576
  const value = await api.getProperty(objectId, propertyId)
564
577
  if (value.value == context.same.value) {
565
578
  context.evalue = [
@@ -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,