tpmkms 9.5.0 → 9.5.1-beta.10
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 +21 -61
- package/common/asking.js +106 -104
- package/common/can.instance.json +17 -0
- package/common/can.js +188 -0
- package/common/characters.js +5 -5
- package/common/colors.instance.json +38 -10
- package/common/comparable.instance.json +2 -2
- package/common/concept.test.json +54 -40
- package/common/conjunction.js +13 -5
- package/common/crew.instance.json +71 -85
- package/common/crew.js +1 -1
- package/common/crew.test.json +4148 -3324
- package/common/currency.js +1 -1
- package/common/dates.instance.json +87 -3
- package/common/dialogues.js +12 -9
- package/common/dimension.instance.json +9 -9
- package/common/dimension.js +4 -4
- package/common/edible.instance.json +79 -23
- package/common/emotions.instance.json +29 -7
- package/common/emotions.js +1 -1
- package/common/emotions.test.json +242 -174
- package/common/english_helpers.js +336 -0
- package/common/errors.js +3 -3
- package/common/evaluate.js +2 -2
- package/common/events.js +8 -8
- package/common/fastfood.instance.json +205 -553
- package/common/fastfood.js +4 -4
- package/common/formulas.instance.json +1 -1
- package/common/formulas.js +1 -1
- package/common/gdefaults.js +58 -9
- package/common/help.js +3 -3
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +1 -1
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +9 -9
- package/common/helpers/properties.js +158 -55
- package/common/helpers.js +135 -46
- package/common/hierarchy.js +3 -3
- package/common/kirk.instance.json +1 -1
- package/common/latin.instance.json +2 -2
- package/common/latin.js +4 -4
- package/common/length.instance.json +2 -2
- package/common/listener.js +1 -1
- package/common/math.instance.json +28 -28
- package/common/math.js +47 -46
- package/common/menus.instance.json +3 -3
- package/common/menus.js +1 -1
- package/common/meta.js +76 -60
- package/common/nameable.js +7 -7
- package/common/ordering.instance.json +85 -19
- package/common/ordering.js +1 -1
- package/common/ordering.test.json +786 -298
- package/common/people.instance.json +59 -56
- package/common/people.js +6 -4
- package/common/people.test.json +4135 -3606
- package/common/pipboy.instance.json +72 -16
- package/common/pipboy.js +2 -3
- package/common/pokemon.instance.json +8 -8
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +2 -2
- package/common/properties.instance.json +1 -1
- package/common/properties.js +22 -4
- package/common/reminders.instance.json +4 -4
- package/common/reminders.js +3 -3
- package/common/reports.instance.json +3 -3
- package/common/reports.js +18 -16
- package/common/scorekeeper.js +6 -6
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +1 -1
- package/common/stgame.js +1 -1
- package/common/stm.js +4 -4
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +2 -2
- package/common/tester.js +3 -3
- package/common/time.js +3 -3
- package/common/tokenize.js +5 -2
- package/common/weight.instance.json +2 -2
- package/common/wp.instance.json +136 -8
- package/common/wp.js +4 -4
- package/package.json +6 -2
package/common/conjunction.js
CHANGED
|
@@ -44,19 +44,26 @@ const config = {
|
|
|
44
44
|
{
|
|
45
45
|
where: where(),
|
|
46
46
|
notes: 'handle lists with yes no',
|
|
47
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
|
48
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
49
47
|
match: ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value && context.value.length > 0 && context.value[0].marker == 'yesno',
|
|
50
48
|
apply: async ({context, g, gs}) => {
|
|
51
49
|
return `${await g(context.value[0])} ${await gs(context.value.slice(1), ', ', ' and ')}`
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
|
|
53
|
+
/*
|
|
54
|
+
{
|
|
55
|
+
where: where(),
|
|
56
|
+
notes: 'handle lists with truthValue set',
|
|
57
|
+
match: ({context, hierarchy}) => context.marker == 'list' && context.hasOwnProperty('truthValue'),
|
|
58
|
+
apply: async ({context, g, gs}) => {
|
|
59
|
+
return context.truthValue ? 'yes' : 'no'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
*/
|
|
63
|
+
|
|
55
64
|
{
|
|
56
65
|
where: where(),
|
|
57
66
|
notes: 'handle lists',
|
|
58
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.paraphrase && context.value,
|
|
59
|
-
// ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
60
67
|
match: ({context, hierarchy}) => context.marker == 'list' && context.value,
|
|
61
68
|
apply: async ({context, gs}) => {
|
|
62
69
|
if (context.newLinesOnly) {
|
|
@@ -69,7 +76,7 @@ const config = {
|
|
|
69
76
|
],
|
|
70
77
|
};
|
|
71
78
|
|
|
72
|
-
|
|
79
|
+
function initializer({objects, config, isModule}) {
|
|
73
80
|
config.addArgs(({config, api, hierarchy}) => {
|
|
74
81
|
const isAI = isA(hierarchy);
|
|
75
82
|
|
|
@@ -82,6 +89,7 @@ const initializer = ({objects, config, isModule}) => {
|
|
|
82
89
|
}
|
|
83
90
|
},
|
|
84
91
|
asList,
|
|
92
|
+
toList: asList,
|
|
85
93
|
toArray: propertyToArray,
|
|
86
94
|
listable: listable(hierarchy),
|
|
87
95
|
isA: isAI,
|
|
@@ -2400,7 +2400,7 @@
|
|
|
2400
2400
|
"word": "name",
|
|
2401
2401
|
"range": {
|
|
2402
2402
|
"start": 0,
|
|
2403
|
-
"end":
|
|
2403
|
+
"end": 10
|
|
2404
2404
|
},
|
|
2405
2405
|
"dead": true,
|
|
2406
2406
|
"types": [
|
|
@@ -4157,7 +4157,7 @@
|
|
|
4157
4157
|
"word": "rank",
|
|
4158
4158
|
"range": {
|
|
4159
4159
|
"start": 0,
|
|
4160
|
-
"end":
|
|
4160
|
+
"end": 10
|
|
4161
4161
|
},
|
|
4162
4162
|
"dead": true,
|
|
4163
4163
|
"types": [
|
|
@@ -5953,7 +5953,7 @@
|
|
|
5953
5953
|
"word": "eyes",
|
|
5954
5954
|
"range": {
|
|
5955
5955
|
"start": 0,
|
|
5956
|
-
"end":
|
|
5956
|
+
"end": 10
|
|
5957
5957
|
},
|
|
5958
5958
|
"dead": true,
|
|
5959
5959
|
"types": [
|
|
@@ -7737,7 +7737,7 @@
|
|
|
7737
7737
|
"word": "kirk",
|
|
7738
7738
|
"range": {
|
|
7739
7739
|
"start": 0,
|
|
7740
|
-
"end":
|
|
7740
|
+
"end": 3
|
|
7741
7741
|
},
|
|
7742
7742
|
"dead": true,
|
|
7743
7743
|
"types": [
|
|
@@ -9400,7 +9400,7 @@
|
|
|
9400
9400
|
"word": "kirk",
|
|
9401
9401
|
"range": {
|
|
9402
9402
|
"start": 0,
|
|
9403
|
-
"end":
|
|
9403
|
+
"end": 3
|
|
9404
9404
|
},
|
|
9405
9405
|
"dead": true,
|
|
9406
9406
|
"types": [
|
|
@@ -11157,7 +11157,7 @@
|
|
|
11157
11157
|
"word": "rank",
|
|
11158
11158
|
"range": {
|
|
11159
11159
|
"start": 0,
|
|
11160
|
-
"end":
|
|
11160
|
+
"end": 11
|
|
11161
11161
|
},
|
|
11162
11162
|
"dead": true,
|
|
11163
11163
|
"types": [
|
|
@@ -13072,7 +13072,7 @@
|
|
|
13072
13072
|
"word": "name",
|
|
13073
13073
|
"range": {
|
|
13074
13074
|
"start": 0,
|
|
13075
|
-
"end":
|
|
13075
|
+
"end": 11
|
|
13076
13076
|
},
|
|
13077
13077
|
"dead": true,
|
|
13078
13078
|
"types": [
|
|
@@ -14992,7 +14992,7 @@
|
|
|
14992
14992
|
"word": "eyes",
|
|
14993
14993
|
"range": {
|
|
14994
14994
|
"start": 0,
|
|
14995
|
-
"end":
|
|
14995
|
+
"end": 11
|
|
14996
14996
|
},
|
|
14997
14997
|
"dead": true,
|
|
14998
14998
|
"types": [
|
|
@@ -16870,7 +16870,7 @@
|
|
|
16870
16870
|
"word": "spock",
|
|
16871
16871
|
"range": {
|
|
16872
16872
|
"start": 0,
|
|
16873
|
-
"end":
|
|
16873
|
+
"end": 4
|
|
16874
16874
|
},
|
|
16875
16875
|
"dead": true,
|
|
16876
16876
|
"types": [
|
|
@@ -18618,7 +18618,7 @@
|
|
|
18618
18618
|
"word": "spock",
|
|
18619
18619
|
"range": {
|
|
18620
18620
|
"start": 0,
|
|
18621
|
-
"end":
|
|
18621
|
+
"end": 4
|
|
18622
18622
|
},
|
|
18623
18623
|
"dead": true,
|
|
18624
18624
|
"types": [
|
|
@@ -20460,7 +20460,7 @@
|
|
|
20460
20460
|
"word": "rank",
|
|
20461
20461
|
"range": {
|
|
20462
20462
|
"start": 0,
|
|
20463
|
-
"end":
|
|
20463
|
+
"end": 11
|
|
20464
20464
|
},
|
|
20465
20465
|
"dead": true,
|
|
20466
20466
|
"types": [
|
|
@@ -22469,7 +22469,7 @@
|
|
|
22469
22469
|
"word": "name",
|
|
22470
22470
|
"range": {
|
|
22471
22471
|
"start": 0,
|
|
22472
|
-
"end":
|
|
22472
|
+
"end": 11
|
|
22473
22473
|
},
|
|
22474
22474
|
"dead": true,
|
|
22475
22475
|
"types": [
|
|
@@ -24479,7 +24479,7 @@
|
|
|
24479
24479
|
"word": "eyes",
|
|
24480
24480
|
"range": {
|
|
24481
24481
|
"start": 0,
|
|
24482
|
-
"end":
|
|
24482
|
+
"end": 11
|
|
24483
24483
|
},
|
|
24484
24484
|
"dead": true,
|
|
24485
24485
|
"types": [
|
|
@@ -26463,7 +26463,7 @@
|
|
|
26463
26463
|
"word": "mccoy",
|
|
26464
26464
|
"range": {
|
|
26465
26465
|
"start": 0,
|
|
26466
|
-
"end":
|
|
26466
|
+
"end": 4
|
|
26467
26467
|
},
|
|
26468
26468
|
"dead": true,
|
|
26469
26469
|
"types": [
|
|
@@ -28309,7 +28309,7 @@
|
|
|
28309
28309
|
"word": "mccoy",
|
|
28310
28310
|
"range": {
|
|
28311
28311
|
"start": 0,
|
|
28312
|
-
"end":
|
|
28312
|
+
"end": 4
|
|
28313
28313
|
},
|
|
28314
28314
|
"dead": true,
|
|
28315
28315
|
"types": [
|
|
@@ -30217,7 +30217,7 @@
|
|
|
30217
30217
|
"word": "status",
|
|
30218
30218
|
"range": {
|
|
30219
30219
|
"start": 0,
|
|
30220
|
-
"end":
|
|
30220
|
+
"end": 24
|
|
30221
30221
|
},
|
|
30222
30222
|
"dead": true,
|
|
30223
30223
|
"types": [
|
|
@@ -34476,7 +34476,7 @@
|
|
|
34476
34476
|
"word": "status",
|
|
34477
34477
|
"range": {
|
|
34478
34478
|
"start": 0,
|
|
34479
|
-
"end":
|
|
34479
|
+
"end": 33
|
|
34480
34480
|
},
|
|
34481
34481
|
"dead": true,
|
|
34482
34482
|
"types": [
|
|
@@ -36986,7 +36986,7 @@
|
|
|
36986
36986
|
"word": "phasers",
|
|
36987
36987
|
"range": {
|
|
36988
36988
|
"start": 0,
|
|
36989
|
-
"end":
|
|
36989
|
+
"end": 6
|
|
36990
36990
|
},
|
|
36991
36991
|
"dead": true,
|
|
36992
36992
|
"types": [
|
|
@@ -38867,7 +38867,7 @@
|
|
|
38867
38867
|
"word": "torpedoes",
|
|
38868
38868
|
"range": {
|
|
38869
38869
|
"start": 0,
|
|
38870
|
-
"end":
|
|
38870
|
+
"end": 8
|
|
38871
38871
|
},
|
|
38872
38872
|
"dead": true,
|
|
38873
38873
|
"types": [
|
|
@@ -40742,7 +40742,7 @@
|
|
|
40742
40742
|
"word": "kirk",
|
|
40743
40743
|
"range": {
|
|
40744
40744
|
"start": 0,
|
|
40745
|
-
"end":
|
|
40745
|
+
"end": 3
|
|
40746
40746
|
},
|
|
40747
40747
|
"dead": true,
|
|
40748
40748
|
"types": [
|
|
@@ -42572,7 +42572,7 @@
|
|
|
42572
42572
|
"word": "spock",
|
|
42573
42573
|
"range": {
|
|
42574
42574
|
"start": 0,
|
|
42575
|
-
"end":
|
|
42575
|
+
"end": 4
|
|
42576
42576
|
},
|
|
42577
42577
|
"dead": true,
|
|
42578
42578
|
"types": [
|
|
@@ -44402,7 +44402,7 @@
|
|
|
44402
44402
|
"word": "mccoy",
|
|
44403
44403
|
"range": {
|
|
44404
44404
|
"start": 0,
|
|
44405
|
-
"end":
|
|
44405
|
+
"end": 4
|
|
44406
44406
|
},
|
|
44407
44407
|
"dead": true,
|
|
44408
44408
|
"types": [
|
|
@@ -46586,7 +46586,7 @@
|
|
|
46586
46586
|
"value": "weapon",
|
|
46587
46587
|
"unknown": true,
|
|
46588
46588
|
"text": "the weapon",
|
|
46589
|
-
"marker": "
|
|
46589
|
+
"marker": "unknown",
|
|
46590
46590
|
"word": "weapon",
|
|
46591
46591
|
"range": {
|
|
46592
46592
|
"start": 4,
|
|
@@ -46607,12 +46607,35 @@
|
|
|
46607
46607
|
],
|
|
46608
46608
|
"level": 0
|
|
46609
46609
|
},
|
|
46610
|
+
"operator": {
|
|
46611
|
+
"value": "arm",
|
|
46612
|
+
"number": "one",
|
|
46613
|
+
"text": "arm",
|
|
46614
|
+
"marker": "arm",
|
|
46615
|
+
"word": "arm",
|
|
46616
|
+
"range": {
|
|
46617
|
+
"start": 0,
|
|
46618
|
+
"end": 2
|
|
46619
|
+
},
|
|
46620
|
+
"evaluateWord": true,
|
|
46621
|
+
"imperative": true,
|
|
46622
|
+
"isVerb": true,
|
|
46623
|
+
"level": 0
|
|
46624
|
+
},
|
|
46610
46625
|
"unflatten": [
|
|
46611
46626
|
"weapon"
|
|
46612
46627
|
],
|
|
46613
46628
|
"focusable": [
|
|
46614
46629
|
"weapon"
|
|
46615
46630
|
],
|
|
46631
|
+
"interpolate": [
|
|
46632
|
+
{
|
|
46633
|
+
"property": "operator"
|
|
46634
|
+
},
|
|
46635
|
+
{
|
|
46636
|
+
"property": "weapon"
|
|
46637
|
+
}
|
|
46638
|
+
],
|
|
46616
46639
|
"level": 1
|
|
46617
46640
|
},
|
|
46618
46641
|
"to": {
|
|
@@ -46632,7 +46655,7 @@
|
|
|
46632
46655
|
"word": "status",
|
|
46633
46656
|
"range": {
|
|
46634
46657
|
"start": 21,
|
|
46635
|
-
"end":
|
|
46658
|
+
"end": 44
|
|
46636
46659
|
},
|
|
46637
46660
|
"dead": true,
|
|
46638
46661
|
"types": [
|
|
@@ -46794,36 +46817,6 @@
|
|
|
46794
46817
|
0
|
|
46795
46818
|
]
|
|
46796
46819
|
],
|
|
46797
|
-
[
|
|
46798
|
-
[
|
|
46799
|
-
"arm",
|
|
46800
|
-
0
|
|
46801
|
-
],
|
|
46802
|
-
[
|
|
46803
|
-
"is",
|
|
46804
|
-
0
|
|
46805
|
-
],
|
|
46806
|
-
[
|
|
46807
|
-
"means",
|
|
46808
|
-
0
|
|
46809
|
-
],
|
|
46810
|
-
[
|
|
46811
|
-
"propertyOf",
|
|
46812
|
-
0
|
|
46813
|
-
],
|
|
46814
|
-
[
|
|
46815
|
-
"status",
|
|
46816
|
-
0
|
|
46817
|
-
],
|
|
46818
|
-
[
|
|
46819
|
-
"the",
|
|
46820
|
-
0
|
|
46821
|
-
],
|
|
46822
|
-
[
|
|
46823
|
-
"unknown",
|
|
46824
|
-
0
|
|
46825
|
-
]
|
|
46826
|
-
],
|
|
46827
46820
|
[
|
|
46828
46821
|
[
|
|
46829
46822
|
"arm",
|
|
@@ -50128,12 +50121,35 @@
|
|
|
50128
50121
|
],
|
|
50129
50122
|
"level": 0
|
|
50130
50123
|
},
|
|
50124
|
+
"operator": {
|
|
50125
|
+
"value": "disarm",
|
|
50126
|
+
"number": "one",
|
|
50127
|
+
"text": "disarm",
|
|
50128
|
+
"marker": "disarm",
|
|
50129
|
+
"word": "disarm",
|
|
50130
|
+
"range": {
|
|
50131
|
+
"start": 0,
|
|
50132
|
+
"end": 5
|
|
50133
|
+
},
|
|
50134
|
+
"evaluateWord": true,
|
|
50135
|
+
"imperative": true,
|
|
50136
|
+
"isVerb": true,
|
|
50137
|
+
"level": 0
|
|
50138
|
+
},
|
|
50131
50139
|
"unflatten": [
|
|
50132
50140
|
"weapon"
|
|
50133
50141
|
],
|
|
50134
50142
|
"focusable": [
|
|
50135
50143
|
"weapon"
|
|
50136
50144
|
],
|
|
50145
|
+
"interpolate": [
|
|
50146
|
+
{
|
|
50147
|
+
"property": "operator"
|
|
50148
|
+
},
|
|
50149
|
+
{
|
|
50150
|
+
"property": "weapon"
|
|
50151
|
+
}
|
|
50152
|
+
],
|
|
50137
50153
|
"level": 1
|
|
50138
50154
|
},
|
|
50139
50155
|
"to": {
|
|
@@ -50153,7 +50169,7 @@
|
|
|
50153
50169
|
"word": "status",
|
|
50154
50170
|
"range": {
|
|
50155
50171
|
"start": 24,
|
|
50156
|
-
"end":
|
|
50172
|
+
"end": 47
|
|
50157
50173
|
},
|
|
50158
50174
|
"dead": true,
|
|
50159
50175
|
"types": [
|
|
@@ -51956,36 +51972,6 @@
|
|
|
51956
51972
|
0
|
|
51957
51973
|
]
|
|
51958
51974
|
],
|
|
51959
|
-
[
|
|
51960
|
-
[
|
|
51961
|
-
"arm",
|
|
51962
|
-
0
|
|
51963
|
-
],
|
|
51964
|
-
[
|
|
51965
|
-
"is",
|
|
51966
|
-
0
|
|
51967
|
-
],
|
|
51968
|
-
[
|
|
51969
|
-
"means",
|
|
51970
|
-
0
|
|
51971
|
-
],
|
|
51972
|
-
[
|
|
51973
|
-
"propertyOf",
|
|
51974
|
-
0
|
|
51975
|
-
],
|
|
51976
|
-
[
|
|
51977
|
-
"status",
|
|
51978
|
-
0
|
|
51979
|
-
],
|
|
51980
|
-
[
|
|
51981
|
-
"the",
|
|
51982
|
-
0
|
|
51983
|
-
],
|
|
51984
|
-
[
|
|
51985
|
-
"unknown",
|
|
51986
|
-
0
|
|
51987
|
-
]
|
|
51988
|
-
],
|
|
51989
51975
|
[
|
|
51990
51976
|
[
|
|
51991
51977
|
"arm",
|
package/common/crew.js
CHANGED
|
@@ -37,7 +37,7 @@ const template = {
|
|
|
37
37
|
],
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
function initializer({config, apis}) {
|
|
41
41
|
const api = apis('properties')
|
|
42
42
|
const conceptApi = apis('concept')
|
|
43
43
|
// conceptApi.kindOfConcept({ config, modifiers: ['photon'], object: 'torpedo' })
|