tpmkms_4wp 9.8.0-beta.15 → 9.8.0-beta.16
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/fastfood.instance.json +1 -1
- package/common/fastfood.js +11 -2
- package/package.json +2 -2
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
],
|
|
964
964
|
"generatorp": "async ({context, gp}) => `change ${await gp(context.from)} to ${await gp(context.to)}`",
|
|
965
965
|
"bridge": "{ ...next(operator), from: after[0], to: after[1].toObject }",
|
|
966
|
-
"semantic": "async ({context, api, e,
|
|
966
|
+
"semantic": "async ({callId, context, api, e, toEValue}) => {\n const state = api.state\n const eFrom = toEValue(await e(context.from, where()))\n const from = state.getIdCombo(eFrom.fromSTM ? eFrom : context.from)\n const to = state.getIdCombo(context.to)\n for (const item of api.items()) {\n if (item.id == from.id) {\n api.modify(item, { id: to.id, food: context.to })\n }\n }\n }"
|
|
967
967
|
}
|
|
968
968
|
],
|
|
969
969
|
"priorities": [
|
package/common/fastfood.js
CHANGED
|
@@ -392,9 +392,9 @@ const template = {
|
|
|
392
392
|
localHierarchy: [ ['thisitthat', 'meal'], ['thisitthat', 'drink'] ],
|
|
393
393
|
generatorp: async ({context, gp}) => `change ${await gp(context.from)} to ${await gp(context.to)}`,
|
|
394
394
|
bridge: "{ ...next(operator), from: after[0], to: after[1].toObject }",
|
|
395
|
-
semantic: async ({context, api, e,
|
|
395
|
+
semantic: async ({callId, context, api, e, toEValue}) => {
|
|
396
396
|
const state = api.state
|
|
397
|
-
const eFrom =
|
|
397
|
+
const eFrom = toEValue(await e(context.from, where()))
|
|
398
398
|
const from = state.getIdCombo(eFrom.fromSTM ? eFrom : context.from)
|
|
399
399
|
const to = state.getIdCombo(context.to)
|
|
400
400
|
for (const item of api.items()) {
|
|
@@ -1005,6 +1005,8 @@ knowledgeModule( {
|
|
|
1005
1005
|
checks: {
|
|
1006
1006
|
objects: [
|
|
1007
1007
|
'show',
|
|
1008
|
+
{ path: ['items'] },
|
|
1009
|
+
/*
|
|
1008
1010
|
{
|
|
1009
1011
|
property: 'items',
|
|
1010
1012
|
check: [
|
|
@@ -1018,6 +1020,7 @@ knowledgeModule( {
|
|
|
1018
1020
|
'needsDrink'
|
|
1019
1021
|
],
|
|
1020
1022
|
},
|
|
1023
|
+
*/
|
|
1021
1024
|
'changes',
|
|
1022
1025
|
'response',
|
|
1023
1026
|
{ property: 'notAvailable', check: [ 'marker', 'value', 'text' ] },
|
|
@@ -1027,6 +1030,12 @@ knowledgeModule( {
|
|
|
1027
1030
|
],
|
|
1028
1031
|
context: [
|
|
1029
1032
|
defaultContextCheck({ extra: ['comboNumber'] }),
|
|
1033
|
+
defaultContextCheck({ marker: 'combo', exported: true, extra: ['comboNumber'] }),
|
|
1034
|
+
{
|
|
1035
|
+
match: ({context}) => context.combo,
|
|
1036
|
+
apply: () => ['food', 'needsDrink'],
|
|
1037
|
+
},
|
|
1038
|
+
|
|
1030
1039
|
],
|
|
1031
1040
|
},
|
|
1032
1041
|
},
|
package/package.json
CHANGED
|
@@ -402,8 +402,8 @@
|
|
|
402
402
|
"scriptjs": "^2.5.9",
|
|
403
403
|
"table": "^6.7.1",
|
|
404
404
|
"uuid": "^9.0.0",
|
|
405
|
-
"theprogrammablemind_4wp": "9.8.0-beta.
|
|
405
|
+
"theprogrammablemind_4wp": "9.8.0-beta.16"
|
|
406
406
|
},
|
|
407
|
-
"version": "9.8.0-beta.
|
|
407
|
+
"version": "9.8.0-beta.16",
|
|
408
408
|
"license": "UNLICENSED"
|
|
409
409
|
}
|