Comparing version 8.9.0-beta.20 to 8.9.0-beta.21
@@ -85,8 +85,15 @@ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind | ||
let scope | ||
let conditions = [] | ||
if (isA(context.element, 'everything')) { | ||
scope = 'all' | ||
} else if (context.element.condition) { | ||
const condition = context.element.condition | ||
if (condition.marker == 'start_wp') { | ||
const letters = condition.letters.letters.text | ||
conditions.push({ comparision: 'prefix', letters }) | ||
} | ||
} else { | ||
scope = context.element.quantity.quantity | ||
} | ||
const update = { unit, scope } | ||
const update = { unit, scope, conditions } | ||
setUpdate(isA, update, toArray(context.state)) | ||
@@ -93,0 +100,0 @@ api.changeState(update) |
@@ -318,6 +318,6 @@ { | ||
"argparse": "^2.0.1", | ||
"theprogrammablemind": "8.9.0-beta.20" | ||
"theprogrammablemind": "8.9.0-beta.21" | ||
}, | ||
"version": "8.9.0-beta.20", | ||
"version": "8.9.0-beta.21", | ||
"license": "UNLICENSED" | ||
} |
Sorry, the diff of this file is too big to display
38658812
890084
+ Addedtheprogrammablemind@8.9.0-beta.21(transitive)
- Removedtheprogrammablemind@8.9.0-beta.20(transitive)