@knowlearning/agents 0.6.2 → 0.6.4

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/generic.js CHANGED
@@ -126,6 +126,9 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
126
126
  if (message.error) console.warn('ERROR RESPONSE', message)
127
127
 
128
128
  if (!authed) {
129
+ // TODO: credential refresh flow instead of forcing login
130
+ if (message.error) return login()
131
+
129
132
  authed = true
130
133
  if (!user) { // this is the first authed websocket connection
131
134
  user = message.auth.user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",
@@ -24,6 +24,8 @@
24
24
  "homepage": "https://github.com/knowlearning/core#readme",
25
25
  "dependencies": {
26
26
  "fast-json-patch": "^3.1.1",
27
- "uuid": "^8.3.2"
27
+ "uuid": "^8.3.2",
28
+ "vue": "^3.3.4",
29
+ "vuex": "^4.1.0"
28
30
  }
29
31
  }