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.
- package/common/animals.instance.json +130 -0
- package/common/animals.js +3 -5
- package/common/asking.js +12 -4
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2182 -5
- package/common/can.js +102 -39
- package/common/can.test.json +51307 -0
- package/common/colors.instance.json +142 -30
- package/common/colors.js +3 -6
- package/common/comparable.instance.json +31 -1
- package/common/comparable.js +3 -6
- package/common/concept.js +25 -27
- package/common/concept.test.json +142 -120
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +400 -126
- package/common/crew.js +3 -6
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +6 -9
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +50 -84
- package/common/dates.js +3 -6
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +33 -115
- package/common/dialogues.test.json +1248 -1152
- package/common/dimension.instance.json +21498 -566
- package/common/dimension.js +147 -52
- package/common/dimension.test.json +10979 -4625
- package/common/drone.instance.json +24709 -0
- package/common/drone.js +662 -0
- package/common/drone.test.json +30522 -0
- package/common/drone_v1.instance.json +24703 -0
- package/common/drone_v1.js +596 -0
- package/common/drone_v1.test.json +115538 -0
- package/common/edible.instance.json +365 -65
- package/common/edible.js +3 -5
- package/common/emotions.instance.json +57 -70
- package/common/emotions.js +3 -6
- package/common/errors.js +3 -3
- package/common/fastfood.instance.json +1270 -244
- package/common/fastfood.js +10 -12
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +10 -0
- package/common/formulas.js +2 -1
- package/common/gdefaults.js +58 -13
- package/common/help.js +9 -9
- package/common/help.test.json +65 -11
- package/common/helpers/dialogues.js +9 -1
- package/common/helpers/properties.js +37 -18
- package/common/helpers.js +32 -2
- package/common/hierarchy.js +10 -8
- package/common/kirk.instance.json +10 -0
- package/common/kirk.js +4 -6
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +10 -10
- package/common/latin.js +8 -10
- package/common/length.instance.json +34659 -3157
- package/common/length.js +11 -6
- package/common/length.test.json +54357 -2557
- package/common/math.instance.json +11 -1
- package/common/math.js +2 -1
- package/common/menus.instance.json +74 -7
- package/common/menus.js +3 -12
- package/common/meta.js +4 -5
- package/common/nameable.js +29 -15
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +24 -2
- package/common/ordering.js +3 -5
- package/common/ordering.test.json +104 -174
- package/common/people.instance.json +140 -315
- package/common/people.js +3 -5
- package/common/pipboy.instance.json +171 -57
- package/common/pipboy.js +2 -1
- package/common/pokemon.instance.json +135 -5
- package/common/pokemon.js +3 -5
- package/common/pressure.instance.json +3990 -1981
- package/common/pressure.js +3 -5
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +15 -16
- package/common/properties.js +10 -9
- package/common/properties.test.json +9565 -6951
- package/common/rates.instance.json +59 -0
- package/common/rates.js +95 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.js +5 -8
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +22 -2
- package/common/reports.js +3 -5
- package/common/scorekeeper.js +3 -6
- package/common/spock.instance.json +10 -0
- package/common/spock.js +4 -7
- package/common/spock.test.json +606 -430
- package/common/stm.js +37 -20
- package/common/temperature.instance.json +3162 -1153
- package/common/temperature.js +3 -5
- package/common/temperature.test.json +433 -477
- package/common/time.instance.json +24852 -0
- package/common/time.js +136 -139
- package/common/time.test.json +31876 -3757
- package/common/ui.instance.json +12 -5
- package/common/ui.js +4 -13
- package/common/weight.instance.json +10500 -4098
- package/common/weight.js +3 -5
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +50 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +470 -58
- package/common/wp.js +6 -4
- package/common/wp.test.json +7385 -6906
- package/main.js +6 -2
- package/package.json +21 -6
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
|
@@ -229,6 +229,16 @@
|
|
|
229
229
|
"adjective",
|
|
230
230
|
false
|
|
231
231
|
],
|
|
232
|
+
[
|
|
233
|
+
"stm_current",
|
|
234
|
+
"adjective",
|
|
235
|
+
false
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
"stm_previous",
|
|
239
|
+
"adjective",
|
|
240
|
+
false
|
|
241
|
+
],
|
|
232
242
|
[
|
|
233
243
|
"that",
|
|
234
244
|
"thisitthat",
|
|
@@ -444,7 +454,7 @@
|
|
|
444
454
|
],
|
|
445
455
|
"ops": [
|
|
446
456
|
[
|
|
447
|
-
"
|
|
457
|
+
"be",
|
|
448
458
|
0
|
|
449
459
|
],
|
|
450
460
|
[
|
|
@@ -598,10 +608,7 @@
|
|
|
598
608
|
"level": 2,
|
|
599
609
|
"context_index": 1,
|
|
600
610
|
"topLevel": true,
|
|
601
|
-
"context_id": 2
|
|
602
|
-
"touchedBy": [
|
|
603
|
-
"properties#call2"
|
|
604
|
-
]
|
|
611
|
+
"context_id": 2
|
|
605
612
|
}
|
|
606
613
|
],
|
|
607
614
|
"generated": [
|
|
@@ -663,10 +670,6 @@
|
|
|
663
670
|
]
|
|
664
671
|
],
|
|
665
672
|
[
|
|
666
|
-
[
|
|
667
|
-
"is",
|
|
668
|
-
0
|
|
669
|
-
],
|
|
670
673
|
[
|
|
671
674
|
"propertyOf",
|
|
672
675
|
1
|
|
@@ -1019,7 +1022,7 @@
|
|
|
1019
1022
|
},
|
|
1020
1023
|
{
|
|
1021
1024
|
"marker": [
|
|
1022
|
-
"
|
|
1025
|
+
"be",
|
|
1023
1026
|
0
|
|
1024
1027
|
],
|
|
1025
1028
|
"range": {
|
|
@@ -1112,7 +1115,7 @@
|
|
|
1112
1115
|
"learned_contextual_priorities": [],
|
|
1113
1116
|
"rtf_associations": [],
|
|
1114
1117
|
"query": "the property1 of object1 is value1",
|
|
1115
|
-
"skipSemantics":
|
|
1118
|
+
"skipSemantics": true,
|
|
1116
1119
|
"key": {
|
|
1117
1120
|
"query": "the property1 of object1 is value1"
|
|
1118
1121
|
}
|
|
@@ -1167,10 +1170,6 @@
|
|
|
1167
1170
|
]
|
|
1168
1171
|
],
|
|
1169
1172
|
[
|
|
1170
|
-
[
|
|
1171
|
-
"is",
|
|
1172
|
-
0
|
|
1173
|
-
],
|
|
1174
1173
|
[
|
|
1175
1174
|
"propertyOf",
|
|
1176
1175
|
1
|
|
@@ -1523,7 +1522,7 @@
|
|
|
1523
1522
|
},
|
|
1524
1523
|
{
|
|
1525
1524
|
"marker": [
|
|
1526
|
-
"
|
|
1525
|
+
"be",
|
|
1527
1526
|
0
|
|
1528
1527
|
],
|
|
1529
1528
|
"range": {
|
package/common/properties.js
CHANGED
|
@@ -3,7 +3,7 @@ const { defaultContextCheck, words } = require('./helpers')
|
|
|
3
3
|
const dialogues = require('./dialogues')
|
|
4
4
|
const meta = require('./meta')
|
|
5
5
|
const concept = require('./concept')
|
|
6
|
-
const
|
|
6
|
+
const instance = require('./properties.instance.json')
|
|
7
7
|
const properties_tests = require('./properties.test.json')
|
|
8
8
|
const { API } = require('./helpers/properties')
|
|
9
9
|
const { chooseNumber } = require('./helpers.js')
|
|
@@ -367,7 +367,7 @@ const config = {
|
|
|
367
367
|
notes: 'the property of object',
|
|
368
368
|
where: where(),
|
|
369
369
|
// match: ({context}) => context.paraphrase && context.modifiers && context.object,
|
|
370
|
-
match: ({context}) => context.paraphrase && !context.possession && context.object,
|
|
370
|
+
match: ({context}) => context.paraphrase && !context.possession && context.object && !context.interpolate,
|
|
371
371
|
apply: async ({context, g, gs}) => {
|
|
372
372
|
const base = { ...context }
|
|
373
373
|
base.object = undefined;
|
|
@@ -400,7 +400,7 @@ const config = {
|
|
|
400
400
|
notes: "object's property",
|
|
401
401
|
where: where(),
|
|
402
402
|
// match: ({context}) => context.paraphrase && !context.modifiers && context.object,
|
|
403
|
-
match: ({context}) => !context.modifiers && context.object,
|
|
403
|
+
match: ({context}) => !context.modifiers && context.object && !context.interpolate,
|
|
404
404
|
apply: async ({context, g, gs}) => {
|
|
405
405
|
if (context.objects) {
|
|
406
406
|
const objects = [ ...context.objects ]
|
|
@@ -572,7 +572,7 @@ const config = {
|
|
|
572
572
|
} catch (e) {
|
|
573
573
|
log(`Error processing set property of an object: ${e}`)
|
|
574
574
|
const config = km('properties')
|
|
575
|
-
const fragment = fragments("the property1 of object1 is value1")
|
|
575
|
+
const fragment = await fragments("the property1 of object1 is value1")
|
|
576
576
|
const value = await api.getProperty(objectId, propertyId)
|
|
577
577
|
if (value.value == context.same.value) {
|
|
578
578
|
context.evalue = [
|
|
@@ -629,7 +629,10 @@ const config = {
|
|
|
629
629
|
if (!objectContext.value) {
|
|
630
630
|
return objectContext;
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
let objectValue = kms.stm.api.getVariable(objectContext);
|
|
633
|
+
if (!objectValue) {
|
|
634
|
+
objectValue = objectContext.value
|
|
635
|
+
}
|
|
633
636
|
if (!await api.knownObject(objectValue)) {
|
|
634
637
|
context.verbatim = `There is no object named "${await g({...objectContext, paraphrase: true})}"`
|
|
635
638
|
return
|
|
@@ -711,8 +714,6 @@ knowledgeModule( {
|
|
|
711
714
|
bridges: true,
|
|
712
715
|
}
|
|
713
716
|
},
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
instance: properties_instance,
|
|
717
|
-
},
|
|
717
|
+
instance,
|
|
718
|
+
template,
|
|
718
719
|
})
|