@knowlearning/agents 0.0.6 → 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/browser.js +3 -3
- package/package/node.js +2 -2
- package/package.json +1 -1
- package/persistence/vuex.js +1 -2
package/package/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// TODO: export browser, node, deno, and generic agents
|
|
2
|
-
export { default as BrowserAgent } from '
|
|
3
|
-
export { default as GenericAgent } from '
|
|
4
|
-
export { default as createPersistentVuexStore } from '
|
|
2
|
+
export { default as BrowserAgent } from '../agents/browser/embedded.js'
|
|
3
|
+
export { default as GenericAgent } from '../agents/generic.js'
|
|
4
|
+
export { default as createPersistentVuexStore } from '../persistence/vuex.js'
|
package/package/node.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// TODO: export browser, node, deno, and generic agents
|
|
2
|
-
export { default as NodeAgent } from '
|
|
3
|
-
export { default as GenericAgent } from '
|
|
2
|
+
export { default as NodeAgent } from '../agents/node.js'
|
|
3
|
+
export { default as GenericAgent } from '../agents/generic.js'
|
package/package.json
CHANGED
package/persistence/vuex.js
CHANGED
|
@@ -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 =
|
|
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)
|