tpmkms_4wp 9.3.0-beta.31 → 9.3.0-beta.33
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/asking.js +18 -4
- package/common/colors.instance.json +0 -28
- package/common/crew.instance.json +36 -36
- package/common/dateTimeSelectors.instance.json +1 -1
- package/common/dates.instance.json +0 -84
- package/common/dialogues.js +0 -41
- package/common/edible.instance.json +0 -56
- package/common/fastfood.instance.json +0 -348
- package/common/people.instance.json +36 -0
- package/common/pipboy.instance.json +0 -56
- package/common/reminders.instance.json +86 -20
- package/common/reminders.js +92 -55
- package/common/reminders.test.json +1809 -0
- package/common/reports.instance.json +1 -1
- package/common/wp.instance.json +0 -56
- package/package.json +2 -2
package/common/asking.js
CHANGED
@@ -96,13 +96,14 @@ const config = {
|
|
96
96
|
|
97
97
|
const getAsk = (config) => (uuid) => {
|
98
98
|
return (asks) => {
|
99
|
-
const ask = (ask) => {
|
99
|
+
const ask = (ask, s_ids) => {
|
100
100
|
let oneShot = true // default
|
101
101
|
if (ask.oneShot === false) {
|
102
102
|
oneShot = false
|
103
103
|
}
|
104
104
|
|
105
105
|
const id_q = stableId('semantic')
|
106
|
+
s_ids.push(id_q)
|
106
107
|
const id_rs = []
|
107
108
|
let wasAsked = false
|
108
109
|
let wasApplied = false
|
@@ -126,10 +127,12 @@ const getAsk = (config) => (uuid) => {
|
|
126
127
|
for (const semantic of semanticsr) {
|
127
128
|
const id_r = stableId('semantic')
|
128
129
|
id_rs.push(id_r)
|
130
|
+
s_ids.push(id_r)
|
129
131
|
config.addSemantic({
|
130
132
|
uuid,
|
131
133
|
id: id_r,
|
132
|
-
tied_ids: [id_q],
|
134
|
+
// tied_ids: [id_q],
|
135
|
+
tied_ids: s_ids,
|
133
136
|
oneShot,
|
134
137
|
where: semantic.where || ask.where || where(2),
|
135
138
|
source: 'response',
|
@@ -145,7 +148,8 @@ const getAsk = (config) => (uuid) => {
|
|
145
148
|
uuid,
|
146
149
|
oneShot,
|
147
150
|
id: id_q,
|
148
|
-
tied_ids: id_rs,
|
151
|
+
// tied_ids: id_rs,
|
152
|
+
tied_ids: s_ids,
|
149
153
|
where: ask.where,
|
150
154
|
isQuestion: true, // do one question at a time
|
151
155
|
getWasAsked,
|
@@ -170,6 +174,8 @@ const getAsk = (config) => (uuid) => {
|
|
170
174
|
args.verbatim(await applyq({ ...args, wasAsked: getWasAsked() }))
|
171
175
|
setWasAsked(true)
|
172
176
|
args.context.controlKeepMotivation = true
|
177
|
+
} else {
|
178
|
+
args._continue()
|
173
179
|
}
|
174
180
|
args.context.cascade = true
|
175
181
|
}
|
@@ -179,7 +185,15 @@ const getAsk = (config) => (uuid) => {
|
|
179
185
|
asks = [asks]
|
180
186
|
}
|
181
187
|
|
182
|
-
|
188
|
+
const s_ids = []
|
189
|
+
for (const a of [...asks].reverse()) {
|
190
|
+
ask(a, s_ids)
|
191
|
+
}
|
192
|
+
|
193
|
+
const cleanUp = () => {
|
194
|
+
config.removeSemantic(s_ids)
|
195
|
+
}
|
196
|
+
return cleanUp
|
183
197
|
}
|
184
198
|
}
|
185
199
|
|
@@ -3586,20 +3586,6 @@
|
|
3586
3586
|
0
|
3587
3587
|
]
|
3588
3588
|
],
|
3589
|
-
[
|
3590
|
-
[
|
3591
|
-
"is",
|
3592
|
-
0
|
3593
|
-
],
|
3594
|
-
[
|
3595
|
-
"list",
|
3596
|
-
1
|
3597
|
-
],
|
3598
|
-
[
|
3599
|
-
"unknown",
|
3600
|
-
0
|
3601
|
-
]
|
3602
|
-
],
|
3603
3589
|
[
|
3604
3590
|
[
|
3605
3591
|
"is",
|
@@ -36049,20 +36035,6 @@
|
|
36049
36035
|
0
|
36050
36036
|
]
|
36051
36037
|
],
|
36052
|
-
[
|
36053
|
-
[
|
36054
|
-
"is",
|
36055
|
-
0
|
36056
|
-
],
|
36057
|
-
[
|
36058
|
-
"list",
|
36059
|
-
1
|
36060
|
-
],
|
36061
|
-
[
|
36062
|
-
"unknown",
|
36063
|
-
0
|
36064
|
-
]
|
36065
|
-
],
|
36066
36038
|
[
|
36067
36039
|
[
|
36068
36040
|
"is",
|
@@ -22668,24 +22668,6 @@
|
|
22668
22668
|
0
|
22669
22669
|
]
|
22670
22670
|
],
|
22671
|
-
[
|
22672
|
-
[
|
22673
|
-
"is",
|
22674
|
-
0
|
22675
|
-
],
|
22676
|
-
[
|
22677
|
-
"mccoy",
|
22678
|
-
0
|
22679
|
-
],
|
22680
|
-
[
|
22681
|
-
"name",
|
22682
|
-
0
|
22683
|
-
],
|
22684
|
-
[
|
22685
|
-
"possession",
|
22686
|
-
0
|
22687
|
-
]
|
22688
|
-
],
|
22689
22671
|
[
|
22690
22672
|
[
|
22691
22673
|
"is",
|
@@ -30514,6 +30496,24 @@
|
|
30514
30496
|
0
|
30515
30497
|
]
|
30516
30498
|
],
|
30499
|
+
[
|
30500
|
+
[
|
30501
|
+
"is",
|
30502
|
+
0
|
30503
|
+
],
|
30504
|
+
[
|
30505
|
+
"propertyOf",
|
30506
|
+
0
|
30507
|
+
],
|
30508
|
+
[
|
30509
|
+
"the",
|
30510
|
+
0
|
30511
|
+
],
|
30512
|
+
[
|
30513
|
+
"unknown",
|
30514
|
+
0
|
30515
|
+
]
|
30516
|
+
],
|
30517
30517
|
[
|
30518
30518
|
[
|
30519
30519
|
"is",
|
@@ -52528,24 +52528,6 @@
|
|
52528
52528
|
0
|
52529
52529
|
]
|
52530
52530
|
],
|
52531
|
-
[
|
52532
|
-
[
|
52533
|
-
"is",
|
52534
|
-
0
|
52535
|
-
],
|
52536
|
-
[
|
52537
|
-
"mccoy",
|
52538
|
-
0
|
52539
|
-
],
|
52540
|
-
[
|
52541
|
-
"name",
|
52542
|
-
0
|
52543
|
-
],
|
52544
|
-
[
|
52545
|
-
"possession",
|
52546
|
-
0
|
52547
|
-
]
|
52548
|
-
],
|
52549
52531
|
[
|
52550
52532
|
[
|
52551
52533
|
"is",
|
@@ -53140,6 +53122,24 @@
|
|
53140
53122
|
0
|
53141
53123
|
]
|
53142
53124
|
],
|
53125
|
+
[
|
53126
|
+
[
|
53127
|
+
"is",
|
53128
|
+
0
|
53129
|
+
],
|
53130
|
+
[
|
53131
|
+
"propertyOf",
|
53132
|
+
0
|
53133
|
+
],
|
53134
|
+
[
|
53135
|
+
"the",
|
53136
|
+
0
|
53137
|
+
],
|
53138
|
+
[
|
53139
|
+
"unknown",
|
53140
|
+
0
|
53141
|
+
]
|
53142
|
+
],
|
53143
53143
|
[
|
53144
53144
|
[
|
53145
53145
|
"is",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"semantics": [
|
26
26
|
{
|
27
27
|
"match": "({context, isA}) => (isA(context.marker, 'onDateValue_dates') || isA(context.marker, 'dateTimeSelector')) && !!context.evaluate",
|
28
|
-
"apply": "({context, isProcess, isTest, kms}) => {\n
|
28
|
+
"apply": "({context, isProcess, isTest, kms}) => {\n context.evalue = instantiate(kms, isProcess || isTest || context.isTest, context)\n }"
|
29
29
|
}
|
30
30
|
]
|
31
31
|
}
|
@@ -3230,20 +3230,6 @@
|
|
3230
3230
|
0
|
3231
3231
|
]
|
3232
3232
|
],
|
3233
|
-
[
|
3234
|
-
[
|
3235
|
-
"is",
|
3236
|
-
0
|
3237
|
-
],
|
3238
|
-
[
|
3239
|
-
"list",
|
3240
|
-
1
|
3241
|
-
],
|
3242
|
-
[
|
3243
|
-
"unknown",
|
3244
|
-
0
|
3245
|
-
]
|
3246
|
-
],
|
3247
3233
|
[
|
3248
3234
|
[
|
3249
3235
|
"is",
|
@@ -11591,20 +11577,6 @@
|
|
11591
11577
|
0
|
11592
11578
|
]
|
11593
11579
|
],
|
11594
|
-
[
|
11595
|
-
[
|
11596
|
-
"is",
|
11597
|
-
0
|
11598
|
-
],
|
11599
|
-
[
|
11600
|
-
"list",
|
11601
|
-
1
|
11602
|
-
],
|
11603
|
-
[
|
11604
|
-
"unknown",
|
11605
|
-
0
|
11606
|
-
]
|
11607
|
-
],
|
11608
11580
|
[
|
11609
11581
|
[
|
11610
11582
|
"is",
|
@@ -15694,20 +15666,6 @@
|
|
15694
15666
|
0
|
15695
15667
|
]
|
15696
15668
|
],
|
15697
|
-
[
|
15698
|
-
[
|
15699
|
-
"is",
|
15700
|
-
0
|
15701
|
-
],
|
15702
|
-
[
|
15703
|
-
"list",
|
15704
|
-
1
|
15705
|
-
],
|
15706
|
-
[
|
15707
|
-
"unknown",
|
15708
|
-
0
|
15709
|
-
]
|
15710
|
-
],
|
15711
15669
|
[
|
15712
15670
|
[
|
15713
15671
|
"is",
|
@@ -18918,48 +18876,6 @@
|
|
18918
18876
|
0
|
18919
18877
|
]
|
18920
18878
|
],
|
18921
|
-
[
|
18922
|
-
[
|
18923
|
-
"is",
|
18924
|
-
0
|
18925
|
-
],
|
18926
|
-
[
|
18927
|
-
"list",
|
18928
|
-
1
|
18929
|
-
],
|
18930
|
-
[
|
18931
|
-
"unknown",
|
18932
|
-
0
|
18933
|
-
]
|
18934
|
-
],
|
18935
|
-
[
|
18936
|
-
[
|
18937
|
-
"is",
|
18938
|
-
0
|
18939
|
-
],
|
18940
|
-
[
|
18941
|
-
"list",
|
18942
|
-
1
|
18943
|
-
],
|
18944
|
-
[
|
18945
|
-
"unknown",
|
18946
|
-
0
|
18947
|
-
]
|
18948
|
-
],
|
18949
|
-
[
|
18950
|
-
[
|
18951
|
-
"is",
|
18952
|
-
0
|
18953
|
-
],
|
18954
|
-
[
|
18955
|
-
"list",
|
18956
|
-
1
|
18957
|
-
],
|
18958
|
-
[
|
18959
|
-
"unknown",
|
18960
|
-
0
|
18961
|
-
]
|
18962
|
-
],
|
18963
18879
|
[
|
18964
18880
|
[
|
18965
18881
|
"setIdSuffix",
|
package/common/dialogues.js
CHANGED
@@ -278,47 +278,6 @@ const config = {
|
|
278
278
|
bridge: "{ ...next(operator) }"
|
279
279
|
},
|
280
280
|
*/
|
281
|
-
/*
|
282
|
-
{
|
283
|
-
id: "nevermind",
|
284
|
-
bridge: "{ ...next(operator) }",
|
285
|
-
semantic: (args) => {
|
286
|
-
const {config, context} = args
|
287
|
-
// stop asking all questions
|
288
|
-
for (const semantic of config.semantics) {
|
289
|
-
if (semantic.isQuestion) {
|
290
|
-
let doRemove = true
|
291
|
-
if (semantic.onNevermind && semantic.getWasAsked() && !semantic.getWasApplied()) {
|
292
|
-
doRemove = semantic.onNevermind(args)
|
293
|
-
}
|
294
|
-
if (doRemove) {
|
295
|
-
config.removeSemantic(semantic)
|
296
|
-
}
|
297
|
-
}
|
298
|
-
}
|
299
|
-
}
|
300
|
-
},
|
301
|
-
*/
|
302
|
-
/*
|
303
|
-
{
|
304
|
-
id: "nevermindTestSetup",
|
305
|
-
development: true,
|
306
|
-
bridge: "{ ...next(operator), type: after[0], postModifiers: ['type'] }",
|
307
|
-
semantic: ({ask, context}) => {
|
308
|
-
const nevermindType = context.type.value
|
309
|
-
ask({
|
310
|
-
applyq: () => 'the test question?',
|
311
|
-
onNevermind: ({objects, context}) => {
|
312
|
-
objects.onNevermindWasCalled = true
|
313
|
-
objects.nevermindType = nevermindType
|
314
|
-
return nevermindType == 'accept'
|
315
|
-
},
|
316
|
-
matchr: () => false,
|
317
|
-
applyr: () => {},
|
318
|
-
})
|
319
|
-
}
|
320
|
-
},
|
321
|
-
*/
|
322
281
|
{
|
323
282
|
id: "why",
|
324
283
|
level: 0,
|
@@ -6494,20 +6494,6 @@
|
|
6494
6494
|
0
|
6495
6495
|
]
|
6496
6496
|
],
|
6497
|
-
[
|
6498
|
-
[
|
6499
|
-
"is",
|
6500
|
-
0
|
6501
|
-
],
|
6502
|
-
[
|
6503
|
-
"list",
|
6504
|
-
1
|
6505
|
-
],
|
6506
|
-
[
|
6507
|
-
"unknown",
|
6508
|
-
0
|
6509
|
-
]
|
6510
|
-
],
|
6511
6497
|
[
|
6512
6498
|
[
|
6513
6499
|
"is",
|
@@ -24632,20 +24618,6 @@
|
|
24632
24618
|
0
|
24633
24619
|
]
|
24634
24620
|
],
|
24635
|
-
[
|
24636
|
-
[
|
24637
|
-
"is",
|
24638
|
-
0
|
24639
|
-
],
|
24640
|
-
[
|
24641
|
-
"list",
|
24642
|
-
1
|
24643
|
-
],
|
24644
|
-
[
|
24645
|
-
"unknown",
|
24646
|
-
0
|
24647
|
-
]
|
24648
|
-
],
|
24649
24621
|
[
|
24650
24622
|
[
|
24651
24623
|
"is",
|
@@ -69665,34 +69637,6 @@
|
|
69665
69637
|
0
|
69666
69638
|
]
|
69667
69639
|
],
|
69668
|
-
[
|
69669
|
-
[
|
69670
|
-
"is",
|
69671
|
-
0
|
69672
|
-
],
|
69673
|
-
[
|
69674
|
-
"list",
|
69675
|
-
1
|
69676
|
-
],
|
69677
|
-
[
|
69678
|
-
"unknown",
|
69679
|
-
0
|
69680
|
-
]
|
69681
|
-
],
|
69682
|
-
[
|
69683
|
-
[
|
69684
|
-
"is",
|
69685
|
-
0
|
69686
|
-
],
|
69687
|
-
[
|
69688
|
-
"list",
|
69689
|
-
1
|
69690
|
-
],
|
69691
|
-
[
|
69692
|
-
"unknown",
|
69693
|
-
0
|
69694
|
-
]
|
69695
|
-
],
|
69696
69640
|
[
|
69697
69641
|
[
|
69698
69642
|
"is",
|