@knowlearning/agents 0.9.169 → 0.9.171
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/agents/browser/initialize.js +2 -2
- package/browser.js +1 -1
- package/dist/browser.js +1356 -0
- package/lib.browser.js +3 -0
- package/package.json +4 -1
- package/vite.config.js +12 -0
|
@@ -3,7 +3,7 @@ import EmbeddedAgent from './embedded.js'
|
|
|
3
3
|
import { v1 as uuid, validate as validateUUID } from 'uuid'
|
|
4
4
|
import selectFile from './select-file.js'
|
|
5
5
|
|
|
6
|
-
let Agent
|
|
6
|
+
let Agent = window.__default_knowlearning_agent
|
|
7
7
|
|
|
8
8
|
function getNamespacedScope(namespace, scope) {
|
|
9
9
|
const allow = namespace?.allow || []
|
|
@@ -37,7 +37,7 @@ export default function browserAgent(options={}) {
|
|
|
37
37
|
return originalUpload(info)
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
if (!Agent) Agent = newAgent
|
|
40
|
+
if (!Agent) window.__default_knowlearning_agent = Agent = newAgent
|
|
41
41
|
|
|
42
42
|
return newAgent
|
|
43
43
|
}
|
package/browser.js
CHANGED