tpmkms_4wp 9.3.0-beta.54 → 9.3.0-beta.56
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.js +3 -1
- package/common/articles.js +3 -1
- package/common/asking.js +3 -1
- package/common/avatar.js +3 -1
- package/common/characters.js +3 -1
- package/common/colors.instance.json +28 -0
- package/common/colors.js +3 -1
- package/common/comparable.js +3 -1
- package/common/concept.js +3 -1
- package/common/conjunction.js +3 -1
- package/common/countable.js +3 -1
- package/common/crew.instance.json +36 -0
- package/common/crew.js +3 -1
- package/common/currency.js +3 -1
- package/common/dateTimeSelectors.instance.json +30 -6
- package/common/dateTimeSelectors.js +9 -1
- package/common/dates.instance.json +324 -14
- package/common/dates.js +18 -6
- package/common/dialogues.js +3 -1
- package/common/dimension.js +3 -1
- package/common/edible.instance.json +56 -0
- package/common/edible.js +3 -1
- package/common/emotions.js +3 -1
- package/common/errors.js +3 -1
- package/common/evaluate.js +3 -1
- package/common/events.js +3 -1
- package/common/fastfood.instance.json +111 -571
- package/common/fastfood.js +3 -1
- package/common/formulas.js +3 -1
- package/common/gdefaults.js +3 -1
- package/common/help.js +3 -1
- package/common/helpers.js +15 -7
- package/common/hierarchy.js +3 -1
- package/common/javascript.js +3 -1
- package/common/kirk.js +3 -1
- package/common/length.js +3 -1
- package/common/listener.js +3 -1
- package/common/math.js +3 -1
- package/common/menus.js +3 -1
- package/common/meta.js +3 -1
- package/common/nameable.js +3 -1
- package/common/negation.js +3 -1
- package/common/numbers.js +7 -1
- package/common/ordering.js +3 -1
- package/common/ordinals.js +3 -1
- package/common/people.js +3 -1
- package/common/percentages.js +3 -1
- package/common/pipboy.instance.json +84 -0
- package/common/pipboy.js +1 -1
- package/common/pokemon.js +3 -1
- package/common/pos.js +3 -1
- package/common/pressure.js +3 -1
- package/common/properties.js +9 -1
- package/common/punctuation.js +3 -1
- package/common/reminders.js +1 -1
- package/common/reports.instance.json +2 -2
- package/common/reports.js +3 -1
- package/common/scorekeeper.js +3 -1
- package/common/sdefaults.js +3 -1
- package/common/self.js +3 -1
- package/common/sizeable.js +3 -1
- package/common/spock.js +3 -1
- package/common/stgame.js +3 -1
- package/common/stm.js +1 -1
- package/common/tell.js +3 -1
- package/common/temperature.instance.json +28 -56
- package/common/temperature.js +3 -1
- package/common/tester.js +0 -1
- package/common/testing.js +0 -1
- package/common/time.js +3 -1
- package/common/tokenize.js +3 -1
- package/common/ui.js +1 -1
- package/common/weight.js +3 -1
- package/common/wp.instance.json +41 -73
- package/common/wp.js +1 -1
- package/common/yesno.js +3 -1
- package/package.json +2 -2
package/common/fastfood.js
CHANGED
@@ -995,7 +995,9 @@ knowledgeModule( {
|
|
995
995
|
{ property: 'quantity', filter: ['marker', 'value', 'text' ] },
|
996
996
|
{ property: 'pieces', filter: ['marker', 'value', 'text' ] },
|
997
997
|
],
|
998
|
-
|
998
|
+
context: [
|
999
|
+
defaultContextCheck({ extra: ['comboNumber'] }),
|
1000
|
+
],
|
999
1001
|
},
|
1000
1002
|
},
|
1001
1003
|
template: {
|
package/common/formulas.js
CHANGED
package/common/gdefaults.js
CHANGED
package/common/help.js
CHANGED
package/common/helpers.js
CHANGED
@@ -162,14 +162,21 @@ const defaultObjectCheck = (extra = []) => {
|
|
162
162
|
}
|
163
163
|
}
|
164
164
|
|
165
|
-
const
|
165
|
+
const defaultContextCheckProperties = (extra) => {
|
166
|
+
return ['marker', 'text', 'verbatim', 'value', 'evalue', 'isResponse', { properties: 'modifiers' }, { properties: 'postModifiers' }, ...extra]
|
167
|
+
}
|
168
|
+
|
169
|
+
const defaultContextCheck = ({marker, extra = [], exported = false} = {}) => {
|
170
|
+
let match
|
171
|
+
if (marker) {
|
172
|
+
match = ({context}) => context.marker == marker
|
173
|
+
} else {
|
174
|
+
match = ({context}) => !Array.isArray(context)
|
175
|
+
}
|
166
176
|
return {
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
apply: () => ['marker', 'text', 'verbatim', 'value', 'evalue', 'isResponse', { properties: 'modifiers' }, { properties: 'postModifiers' }, ...extra],
|
171
|
-
},
|
172
|
-
],
|
177
|
+
match,
|
178
|
+
exported,
|
179
|
+
apply: () => ['marker', 'text', 'verbatim', 'value', 'evalue', 'isResponse', { properties: 'modifiers' }, { properties: 'postModifiers' }, ...extra],
|
173
180
|
}
|
174
181
|
}
|
175
182
|
|
@@ -262,6 +269,7 @@ module.exports = {
|
|
262
269
|
pushL,
|
263
270
|
getValue,
|
264
271
|
defaultContextCheck,
|
272
|
+
defaultContextCheckProperties,
|
265
273
|
defaultObjectCheck,
|
266
274
|
toEValue,
|
267
275
|
millisecondsUntilHourOfDay,
|
package/common/hierarchy.js
CHANGED
@@ -305,7 +305,9 @@ knowledgeModule( {
|
|
305
305
|
// TODO doesnt this need the KM
|
306
306
|
checks: {
|
307
307
|
objects: ['children', 'concept', 'parents', 'properties'],
|
308
|
-
|
308
|
+
context: [
|
309
|
+
defaultContextCheck(),
|
310
|
+
],
|
309
311
|
},
|
310
312
|
includes: {
|
311
313
|
words: true,
|
package/common/javascript.js
CHANGED
package/common/kirk.js
CHANGED
package/common/length.js
CHANGED
package/common/listener.js
CHANGED
package/common/math.js
CHANGED
package/common/menus.js
CHANGED
@@ -251,7 +251,9 @@ knowledgeModule({
|
|
251
251
|
fixtures,
|
252
252
|
checks: {
|
253
253
|
objects: ['move', 'select', 'unselect', 'cancel', 'stop', 'show', 'menuDefs', 'close'],
|
254
|
-
|
254
|
+
context: [
|
255
|
+
defaultContextCheck({ extra: ['operator', 'direction', 'moveable'] }),
|
256
|
+
],
|
255
257
|
},
|
256
258
|
},
|
257
259
|
template: {
|
package/common/meta.js
CHANGED
package/common/nameable.js
CHANGED
@@ -134,7 +134,9 @@ knowledgeModule( {
|
|
134
134
|
name: './nameable.test.json',
|
135
135
|
contents: nameable_tests,
|
136
136
|
checks: {
|
137
|
-
|
137
|
+
context: [
|
138
|
+
defaultContextCheck({ extra: ['pullFromContext'] }),
|
139
|
+
],
|
138
140
|
objects: ['mentioned', { km: 'stm' }],
|
139
141
|
},
|
140
142
|
include: {
|
package/common/negation.js
CHANGED
package/common/numbers.js
CHANGED
@@ -111,6 +111,12 @@ knowledgeModule( {
|
|
111
111
|
test: {
|
112
112
|
name: './numbers.test.json',
|
113
113
|
contents: numbers_tests,
|
114
|
-
checks:
|
114
|
+
checks: {
|
115
|
+
context: [
|
116
|
+
defaultContextCheck({ marker: 'number', exported: true, extra: ['instance'] }),
|
117
|
+
defaultContextCheck({ marker: 'integer', exported: true, extra: ['instance'] }),
|
118
|
+
defaultContextCheck()
|
119
|
+
],
|
120
|
+
}
|
115
121
|
},
|
116
122
|
})
|
package/common/ordering.js
CHANGED
@@ -120,7 +120,9 @@ knowledgeModule( {
|
|
120
120
|
name: './ordering.test.json',
|
121
121
|
heck: ['children', 'concept', 'parents', 'properties'],
|
122
122
|
contents: ordering_tests,
|
123
|
-
checks:
|
123
|
+
checks: {
|
124
|
+
context: [defaultContextCheck()],
|
125
|
+
}
|
124
126
|
},
|
125
127
|
template: {
|
126
128
|
template,
|
package/common/ordinals.js
CHANGED
package/common/people.js
CHANGED
package/common/percentages.js
CHANGED
@@ -1713,6 +1713,20 @@
|
|
1713
1713
|
0
|
1714
1714
|
]
|
1715
1715
|
],
|
1716
|
+
[
|
1717
|
+
[
|
1718
|
+
"is",
|
1719
|
+
0
|
1720
|
+
],
|
1721
|
+
[
|
1722
|
+
"list",
|
1723
|
+
1
|
1724
|
+
],
|
1725
|
+
[
|
1726
|
+
"unknown",
|
1727
|
+
0
|
1728
|
+
]
|
1729
|
+
],
|
1716
1730
|
[
|
1717
1731
|
[
|
1718
1732
|
"is",
|
@@ -6900,6 +6914,20 @@
|
|
6900
6914
|
0
|
6901
6915
|
]
|
6902
6916
|
],
|
6917
|
+
[
|
6918
|
+
[
|
6919
|
+
"is",
|
6920
|
+
0
|
6921
|
+
],
|
6922
|
+
[
|
6923
|
+
"list",
|
6924
|
+
1
|
6925
|
+
],
|
6926
|
+
[
|
6927
|
+
"unknown",
|
6928
|
+
0
|
6929
|
+
]
|
6930
|
+
],
|
6903
6931
|
[
|
6904
6932
|
[
|
6905
6933
|
"is",
|
@@ -10182,6 +10210,20 @@
|
|
10182
10210
|
0
|
10183
10211
|
]
|
10184
10212
|
],
|
10213
|
+
[
|
10214
|
+
[
|
10215
|
+
"is",
|
10216
|
+
0
|
10217
|
+
],
|
10218
|
+
[
|
10219
|
+
"list",
|
10220
|
+
1
|
10221
|
+
],
|
10222
|
+
[
|
10223
|
+
"unknown",
|
10224
|
+
0
|
10225
|
+
]
|
10226
|
+
],
|
10185
10227
|
[
|
10186
10228
|
[
|
10187
10229
|
"is",
|
@@ -35613,6 +35655,48 @@
|
|
35613
35655
|
0
|
35614
35656
|
]
|
35615
35657
|
],
|
35658
|
+
[
|
35659
|
+
[
|
35660
|
+
"is",
|
35661
|
+
0
|
35662
|
+
],
|
35663
|
+
[
|
35664
|
+
"list",
|
35665
|
+
1
|
35666
|
+
],
|
35667
|
+
[
|
35668
|
+
"unknown",
|
35669
|
+
0
|
35670
|
+
]
|
35671
|
+
],
|
35672
|
+
[
|
35673
|
+
[
|
35674
|
+
"is",
|
35675
|
+
0
|
35676
|
+
],
|
35677
|
+
[
|
35678
|
+
"list",
|
35679
|
+
1
|
35680
|
+
],
|
35681
|
+
[
|
35682
|
+
"unknown",
|
35683
|
+
0
|
35684
|
+
]
|
35685
|
+
],
|
35686
|
+
[
|
35687
|
+
[
|
35688
|
+
"is",
|
35689
|
+
0
|
35690
|
+
],
|
35691
|
+
[
|
35692
|
+
"list",
|
35693
|
+
1
|
35694
|
+
],
|
35695
|
+
[
|
35696
|
+
"unknown",
|
35697
|
+
0
|
35698
|
+
]
|
35699
|
+
],
|
35616
35700
|
[
|
35617
35701
|
[
|
35618
35702
|
"is",
|
package/common/pipboy.js
CHANGED
@@ -506,7 +506,7 @@ knowledgeModule({
|
|
506
506
|
'apply', 'change', 'display', 'disarm', 'drink', 'eat', 'equip', 'setName', 'strip', 'take', 'wear',
|
507
507
|
'apply', 'change', 'display', 'disarm', 'drink', 'eat', 'equip', 'setName', 'strip', 'take', 'wear', 'showWeapons',
|
508
508
|
],
|
509
|
-
|
509
|
+
context: [defaultContextCheck()],
|
510
510
|
},
|
511
511
|
},
|
512
512
|
})
|
package/common/pokemon.js
CHANGED
package/common/pos.js
CHANGED
package/common/pressure.js
CHANGED
package/common/properties.js
CHANGED
@@ -694,7 +694,15 @@ knowledgeModule( {
|
|
694
694
|
test: {
|
695
695
|
name: './properties.test.json',
|
696
696
|
contents: properties_tests,
|
697
|
-
checks:
|
697
|
+
checks: {
|
698
|
+
context: [
|
699
|
+
defaultContextCheck({ marker: 'property', exported: true, extra: ['object', 'objects'] }),
|
700
|
+
defaultContextCheck({ marker: 'possession', exported: true, extra: ['object', 'objects'] }),
|
701
|
+
defaultContextCheck({ marker: 'propertyOf', exported: true, extra: ['object', 'objects'] }),
|
702
|
+
defaultContextCheck({ marker: 'objectPrefix', exported: true, extra: ['object', 'objects'] }),
|
703
|
+
defaultContextCheck()
|
704
|
+
],
|
705
|
+
},
|
698
706
|
include: {
|
699
707
|
words: true,
|
700
708
|
operators: true,
|
package/common/punctuation.js
CHANGED
package/common/reminders.js
CHANGED
@@ -367,7 +367,7 @@ knowledgeModule( {
|
|
367
367
|
name: './reminders.test.json',
|
368
368
|
contents: reminders_tests,
|
369
369
|
checks: {
|
370
|
-
|
370
|
+
context: [defaultContextCheck({ extra: ['who', 'reminder'] })],
|
371
371
|
objects: [
|
372
372
|
{
|
373
373
|
property: 'reminders',
|