@knowlearning/agents 0.9.174 → 0.9.176

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.
@@ -78,7 +78,7 @@ export default function EmbeddedAgent() {
78
78
  async function environment(user) {
79
79
  const response = await send({ type: 'environment', user })
80
80
  // keep copy on initialize symantics for environment variables
81
- if (!variables) variables = response.variables
81
+ if (!variables && !user) variables = response.variables
82
82
  return { ...response, variables }
83
83
  }
84
84
 
package/browser.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface AgentEnvironment {
15
15
  server: string;
16
16
  session: string;
17
17
  context: string[];
18
+ variables: object;
18
19
  }
19
20
 
20
21
  export interface AgentUploadInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.9.174",
3
+ "version": "0.9.176",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "node.js",
6
6
  "browser": "browser.js",