@knowlearning/agents 0.9.55 → 0.9.57

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.
@@ -73,7 +73,9 @@ function embed(environment, iframe) {
73
73
  }
74
74
  else if (type === 'metadata') {
75
75
  const { scope, user, domain } = message
76
- sendDown(await Agent.metadata(scope, user, domain))
76
+ const namespacedScope = environment.namespace && !validateUUID(scope) ? `${environment.namespace}/${scope}` : scope
77
+
78
+ sendDown(await Agent.metadata(namespacedScope, user, domain))
77
79
  }
78
80
  else if (type === 'tag') {
79
81
  const { tag_type, target, context } = message
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.55",
3
+ "version": "0.9.57",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",