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
|
@@ -242,6 +242,16 @@
|
|
|
242
242
|
"adjective",
|
|
243
243
|
false
|
|
244
244
|
],
|
|
245
|
+
[
|
|
246
|
+
"stm_current",
|
|
247
|
+
"adjective",
|
|
248
|
+
false
|
|
249
|
+
],
|
|
250
|
+
[
|
|
251
|
+
"stm_previous",
|
|
252
|
+
"adjective",
|
|
253
|
+
false
|
|
254
|
+
],
|
|
245
255
|
[
|
|
246
256
|
"that",
|
|
247
257
|
"thisitthat",
|
|
@@ -1237,6 +1247,16 @@
|
|
|
1237
1247
|
"adjective",
|
|
1238
1248
|
false
|
|
1239
1249
|
],
|
|
1250
|
+
[
|
|
1251
|
+
"stm_current",
|
|
1252
|
+
"adjective",
|
|
1253
|
+
false
|
|
1254
|
+
],
|
|
1255
|
+
[
|
|
1256
|
+
"stm_previous",
|
|
1257
|
+
"adjective",
|
|
1258
|
+
false
|
|
1259
|
+
],
|
|
1240
1260
|
[
|
|
1241
1261
|
"that",
|
|
1242
1262
|
"thisitthat",
|
|
@@ -1983,6 +2003,16 @@
|
|
|
1983
2003
|
"adjective",
|
|
1984
2004
|
false
|
|
1985
2005
|
],
|
|
2006
|
+
[
|
|
2007
|
+
"stm_current",
|
|
2008
|
+
"adjective",
|
|
2009
|
+
false
|
|
2010
|
+
],
|
|
2011
|
+
[
|
|
2012
|
+
"stm_previous",
|
|
2013
|
+
"adjective",
|
|
2014
|
+
false
|
|
2015
|
+
],
|
|
1986
2016
|
[
|
|
1987
2017
|
"that",
|
|
1988
2018
|
"thisitthat",
|
|
@@ -2729,6 +2759,16 @@
|
|
|
2729
2759
|
"adjective",
|
|
2730
2760
|
false
|
|
2731
2761
|
],
|
|
2762
|
+
[
|
|
2763
|
+
"stm_current",
|
|
2764
|
+
"adjective",
|
|
2765
|
+
false
|
|
2766
|
+
],
|
|
2767
|
+
[
|
|
2768
|
+
"stm_previous",
|
|
2769
|
+
"adjective",
|
|
2770
|
+
false
|
|
2771
|
+
],
|
|
2732
2772
|
[
|
|
2733
2773
|
"that",
|
|
2734
2774
|
"thisitthat",
|
|
@@ -3588,6 +3628,16 @@
|
|
|
3588
3628
|
"adjective",
|
|
3589
3629
|
false
|
|
3590
3630
|
],
|
|
3631
|
+
[
|
|
3632
|
+
"stm_current",
|
|
3633
|
+
"adjective",
|
|
3634
|
+
false
|
|
3635
|
+
],
|
|
3636
|
+
[
|
|
3637
|
+
"stm_previous",
|
|
3638
|
+
"adjective",
|
|
3639
|
+
false
|
|
3640
|
+
],
|
|
3591
3641
|
[
|
|
3592
3642
|
"that",
|
|
3593
3643
|
"thisitthat",
|
|
@@ -4334,6 +4384,16 @@
|
|
|
4334
4384
|
"adjective",
|
|
4335
4385
|
false
|
|
4336
4386
|
],
|
|
4387
|
+
[
|
|
4388
|
+
"stm_current",
|
|
4389
|
+
"adjective",
|
|
4390
|
+
false
|
|
4391
|
+
],
|
|
4392
|
+
[
|
|
4393
|
+
"stm_previous",
|
|
4394
|
+
"adjective",
|
|
4395
|
+
false
|
|
4396
|
+
],
|
|
4337
4397
|
[
|
|
4338
4398
|
"that",
|
|
4339
4399
|
"thisitthat",
|
|
@@ -5080,6 +5140,16 @@
|
|
|
5080
5140
|
"adjective",
|
|
5081
5141
|
false
|
|
5082
5142
|
],
|
|
5143
|
+
[
|
|
5144
|
+
"stm_current",
|
|
5145
|
+
"adjective",
|
|
5146
|
+
false
|
|
5147
|
+
],
|
|
5148
|
+
[
|
|
5149
|
+
"stm_previous",
|
|
5150
|
+
"adjective",
|
|
5151
|
+
false
|
|
5152
|
+
],
|
|
5083
5153
|
[
|
|
5084
5154
|
"that",
|
|
5085
5155
|
"thisitthat",
|
|
@@ -5826,6 +5896,16 @@
|
|
|
5826
5896
|
"adjective",
|
|
5827
5897
|
false
|
|
5828
5898
|
],
|
|
5899
|
+
[
|
|
5900
|
+
"stm_current",
|
|
5901
|
+
"adjective",
|
|
5902
|
+
false
|
|
5903
|
+
],
|
|
5904
|
+
[
|
|
5905
|
+
"stm_previous",
|
|
5906
|
+
"adjective",
|
|
5907
|
+
false
|
|
5908
|
+
],
|
|
5829
5909
|
[
|
|
5830
5910
|
"that",
|
|
5831
5911
|
"thisitthat",
|
|
@@ -6572,6 +6652,16 @@
|
|
|
6572
6652
|
"adjective",
|
|
6573
6653
|
false
|
|
6574
6654
|
],
|
|
6655
|
+
[
|
|
6656
|
+
"stm_current",
|
|
6657
|
+
"adjective",
|
|
6658
|
+
false
|
|
6659
|
+
],
|
|
6660
|
+
[
|
|
6661
|
+
"stm_previous",
|
|
6662
|
+
"adjective",
|
|
6663
|
+
false
|
|
6664
|
+
],
|
|
6575
6665
|
[
|
|
6576
6666
|
"that",
|
|
6577
6667
|
"thisitthat",
|
|
@@ -8183,6 +8273,16 @@
|
|
|
8183
8273
|
"adjective",
|
|
8184
8274
|
false
|
|
8185
8275
|
],
|
|
8276
|
+
[
|
|
8277
|
+
"stm_current",
|
|
8278
|
+
"adjective",
|
|
8279
|
+
false
|
|
8280
|
+
],
|
|
8281
|
+
[
|
|
8282
|
+
"stm_previous",
|
|
8283
|
+
"adjective",
|
|
8284
|
+
false
|
|
8285
|
+
],
|
|
8186
8286
|
[
|
|
8187
8287
|
"that",
|
|
8188
8288
|
"thisitthat",
|
|
@@ -9954,6 +10054,16 @@
|
|
|
9954
10054
|
"adjective",
|
|
9955
10055
|
false
|
|
9956
10056
|
],
|
|
10057
|
+
[
|
|
10058
|
+
"stm_current",
|
|
10059
|
+
"adjective",
|
|
10060
|
+
false
|
|
10061
|
+
],
|
|
10062
|
+
[
|
|
10063
|
+
"stm_previous",
|
|
10064
|
+
"adjective",
|
|
10065
|
+
false
|
|
10066
|
+
],
|
|
9957
10067
|
[
|
|
9958
10068
|
"that",
|
|
9959
10069
|
"thisitthat",
|
|
@@ -11056,6 +11166,16 @@
|
|
|
11056
11166
|
"adjective",
|
|
11057
11167
|
false
|
|
11058
11168
|
],
|
|
11169
|
+
[
|
|
11170
|
+
"stm_current",
|
|
11171
|
+
"adjective",
|
|
11172
|
+
false
|
|
11173
|
+
],
|
|
11174
|
+
[
|
|
11175
|
+
"stm_previous",
|
|
11176
|
+
"adjective",
|
|
11177
|
+
false
|
|
11178
|
+
],
|
|
11059
11179
|
[
|
|
11060
11180
|
"that",
|
|
11061
11181
|
"thisitthat",
|
|
@@ -12435,6 +12555,16 @@
|
|
|
12435
12555
|
"adjective",
|
|
12436
12556
|
false
|
|
12437
12557
|
],
|
|
12558
|
+
[
|
|
12559
|
+
"stm_current",
|
|
12560
|
+
"adjective",
|
|
12561
|
+
false
|
|
12562
|
+
],
|
|
12563
|
+
[
|
|
12564
|
+
"stm_previous",
|
|
12565
|
+
"adjective",
|
|
12566
|
+
false
|
|
12567
|
+
],
|
|
12438
12568
|
[
|
|
12439
12569
|
"that",
|
|
12440
12570
|
"thisitthat",
|
package/common/animals.js
CHANGED
|
@@ -2,7 +2,7 @@ const { defaultContextCheck } = require('./helpers')
|
|
|
2
2
|
const { knowledgeModule, where } = require('./runtime').theprogrammablemind
|
|
3
3
|
const hierarchy = require('./hierarchy')
|
|
4
4
|
const animals_tests = require('./animals.test.json')
|
|
5
|
-
const
|
|
5
|
+
const instance = require('./animals.instance.json')
|
|
6
6
|
|
|
7
7
|
const template = {
|
|
8
8
|
configs: [
|
|
@@ -39,8 +39,6 @@ knowledgeModule( {
|
|
|
39
39
|
context: [defaultContextCheck()],
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
instance: animals_instance
|
|
45
|
-
}
|
|
42
|
+
instance,
|
|
43
|
+
template,
|
|
46
44
|
})
|
package/common/asking.js
CHANGED
|
@@ -22,17 +22,22 @@ const config = {
|
|
|
22
22
|
semantic: (args) => {
|
|
23
23
|
const {config, context} = args
|
|
24
24
|
// stop asking all questions
|
|
25
|
-
|
|
25
|
+
const remove = []
|
|
26
|
+
for (const semantic of config.semantics()) {
|
|
26
27
|
if (semantic.isQuestion) {
|
|
27
28
|
let doRemove = true
|
|
28
29
|
if (semantic.onNevermind && semantic.getWasAsked() && !semantic.getWasApplied()) {
|
|
29
30
|
doRemove = semantic.onNevermind(args)
|
|
30
31
|
}
|
|
31
32
|
if (doRemove) {
|
|
32
|
-
|
|
33
|
+
remove.push(semantic)
|
|
34
|
+
// config.removeSemantic(semantic)
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
38
|
+
for (const semantic of remove) {
|
|
39
|
+
config.removeSemantic(semantic)
|
|
40
|
+
}
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
|
|
@@ -129,7 +134,6 @@ function getAsk(config) {
|
|
|
129
134
|
const id_r = stableId('semantic')
|
|
130
135
|
id_rs.push(id_r)
|
|
131
136
|
s_ids.push(id_r)
|
|
132
|
-
// debugger
|
|
133
137
|
config.addSemantic({
|
|
134
138
|
uuid,
|
|
135
139
|
id: id_r,
|
|
@@ -175,7 +179,11 @@ function getAsk(config) {
|
|
|
175
179
|
if (await matchq(args)) {
|
|
176
180
|
setWasApplied(false)
|
|
177
181
|
// args.context.motivationKeep = true
|
|
178
|
-
|
|
182
|
+
const query = await applyq({ ...args, wasAsked: getWasAsked() })
|
|
183
|
+
if (typeof query != 'string') {
|
|
184
|
+
throw new Error(`ask expects the value return from applyq to be a string. ${ask.where}`)
|
|
185
|
+
}
|
|
186
|
+
args.verbatim(query)
|
|
179
187
|
setWasAsked(true)
|
|
180
188
|
args.context.controlKeepMotivation = true
|
|
181
189
|
} else {
|