@slock-ai/daemon 0.22.0 → 0.23.0

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/index.js +4 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1183,21 +1183,15 @@ Note: While you are busy, you may receive [System notification: ...] messages ab
1183
1183
  case "thinking": {
1184
1184
  const text = event.text.length > MAX_TRAJECTORY_TEXT ? event.text.slice(0, MAX_TRAJECTORY_TEXT) + "\u2026" : event.text;
1185
1185
  trajectory.push({ kind: "thinking", text });
1186
- if (ap?.isInReceiveMessage) {
1187
- ap.isInReceiveMessage = false;
1188
- } else {
1189
- activity = "thinking";
1190
- }
1186
+ activity = "thinking";
1187
+ if (ap) ap.isInReceiveMessage = false;
1191
1188
  break;
1192
1189
  }
1193
1190
  case "text": {
1194
1191
  const text = event.text.length > MAX_TRAJECTORY_TEXT ? event.text.slice(0, MAX_TRAJECTORY_TEXT) + "\u2026" : event.text;
1195
1192
  trajectory.push({ kind: "text", text });
1196
- if (ap?.isInReceiveMessage) {
1197
- ap.isInReceiveMessage = false;
1198
- } else {
1199
- activity = "thinking";
1200
- }
1193
+ activity = "thinking";
1194
+ if (ap) ap.isInReceiveMessage = false;
1201
1195
  break;
1202
1196
  }
1203
1197
  case "tool_call": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"