@caretakerai/agent 0.0.34-beta.2 → 0.0.34-beta.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.
Files changed (2) hide show
  1. package/dist/agent.js +1 -1
  2. package/package.json +2 -2
package/dist/agent.js CHANGED
@@ -148,7 +148,7 @@ class Agent {
148
148
  }
149
149
  newActivities.push(activity);
150
150
  // Remove parsed activity from content
151
- content = content.replace(transformer.stringify(activity), '');
151
+ content = content.replace(transformer.stringify(activity).content, '');
152
152
  }
153
153
  if (!newActivities.length) {
154
154
  throw new AgentError('No new activities generated!');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caretakerai/agent",
3
- "version": "0.0.34-beta.2",
3
+ "version": "0.0.34-beta.4",
4
4
  "description": "Single framework for building text-agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "test": "echo \"Error: no test specified\" && exit 1",
13
- "build": "rimraf dist tsconfig.tsbuildinfo && tsc -p tsconfig.publish.json",
13
+ "build": "rimraf dist tsconfig.publish.tsbuildinfo && tsc -p tsconfig.publish.json",
14
14
  "build:watch": "tsc --watch"
15
15
  },
16
16
  "author": "Viktor Zhakhalov (zhakhalov@gmail.com)",