@knowlearning/agents 0.0.7 → 0.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "package/node.js",
6
6
  "browser": "package/browser.js",
@@ -7,8 +7,7 @@ const copy = x => JSON.parse(JSON.stringify(x))
7
7
 
8
8
  export default async function (storeDefinition) {
9
9
  // Set up persistance
10
- const scope ='whatevah' // TODO: resolve what scope should be...
11
- // TODO: assess the function of this from the old implementation
10
+ const { scope } = await Agent.environment()
12
11
  const savedState = await Agent.state(scope)
13
12
 
14
13
  const scopedPaths = getScopedPaths(storeDefinition)