ekms 9.6.1-beta.5 → 9.6.1-beta.7
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/drone.instance.json +2 -2
- package/common/drone.js +3 -2
- package/common/drone.test.json +12364 -119
- package/common/nameable.js +31 -13
- package/common/nameable.test.json +21 -21
- package/common/ordinals.js +1 -1
- package/common/properties.js +15 -6
- package/common/stm.js +52 -4
- package/package.json +2 -2
|
@@ -352,8 +352,8 @@
|
|
|
352
352
|
"apply": "async ({context, e, toEValue, objects}) => {\n const evaluated = await(e(context.action))\n const path = toEValue(evaluated)\n for (const point of path.points) {\n objects.current.path.push(point)\n }\n objects.runCommand = true\n }"
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
|
-
"match": "({context, contextHierarchy}) => {\n if (!context.pullFromContext || !context.evaluate || contextHierarchy.under('doAction')) {\n return false\n }\n \n if (context.marker == 'path' || context.marker == 'this' || context.marker == 'that') {\n return true\n }\n }",
|
|
356
|
-
"apply": "async ({context, toArray, fragments, stm, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {\n const pathComponents = toArray(await mentions({ context: { marker: 'pathComponent' }, all: true }))\n const path = (await fragments('path')).contexts()[0]\n delete path.value\n path.points = pathComponents.reverse()\n await mentioned(path)\n\n _continue() // let the call pick the object out from the stm\n }"
|
|
355
|
+
"match": "({context, contextHierarchy}) => {\n if (!context.pullFromContext || !context.evaluate || contextHierarchy.under(['doAction', 'evaluate'])) {\n return false\n }\n \n if (context.marker == 'path' || context.marker == 'this' || context.marker == 'that') {\n return true\n }\n }",
|
|
356
|
+
"apply": "async ({context, frameOfReference, toArray, fragments, stm, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {\n const pathComponents = toArray(await mentions({ context: { marker: 'pathComponent' }, all: true }))\n const path = (await fragments('path')).contexts()[0]\n delete path.value\n path.points = pathComponents.reverse()\n frameOfReference(path, { mentioned: 'points', reversed: true })\n await mentioned(path)\n\n _continue() // let the call pick the object out from the stm\n }"
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
"match": "({context, contextHierarchy}) => {\n if (!context.pullFromContext || !context.evaluate || !contextHierarchy.under('call') || context.notUnderCall) {\n return false\n }\n \n if (context.marker == 'point' || context.marker == 'ordinal') {\n return true\n }\n }",
|
package/common/drone.js
CHANGED
|
@@ -1100,7 +1100,7 @@ const template = {
|
|
|
1100
1100
|
},
|
|
1101
1101
|
{
|
|
1102
1102
|
match: ({context, contextHierarchy}) => {
|
|
1103
|
-
if (!context.pullFromContext || !context.evaluate || contextHierarchy.under('doAction')) {
|
|
1103
|
+
if (!context.pullFromContext || !context.evaluate || contextHierarchy.under(['doAction', 'evaluate'])) {
|
|
1104
1104
|
return false
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
@@ -1108,11 +1108,12 @@ const template = {
|
|
|
1108
1108
|
return true
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
|
-
apply: async ({context, toArray, fragments, stm, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {
|
|
1111
|
+
apply: async ({context, frameOfReference, toArray, fragments, stm, objects, mentioned, mentions, resolveEvaluate, _continue, contextHierarchy}) => {
|
|
1112
1112
|
const pathComponents = toArray(await mentions({ context: { marker: 'pathComponent' }, all: true }))
|
|
1113
1113
|
const path = (await fragments('path')).contexts()[0]
|
|
1114
1114
|
delete path.value
|
|
1115
1115
|
path.points = pathComponents.reverse()
|
|
1116
|
+
frameOfReference(path, { mentioned: 'points', reversed: true })
|
|
1116
1117
|
await mentioned(path)
|
|
1117
1118
|
|
|
1118
1119
|
_continue() // let the call pick the object out from the stm
|