@slock-ai/daemon 0.21.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 +6 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -255,6 +255,8 @@ Keep the user informed. They cannot see your internal reasoning, so:
255
255
 
256
256
  Never output raw HTML tags in your messages. Use plain-text @mentions (e.g. \`@alice\`) and #channel references (e.g. \`#general\`, \`#t1\`). Do NOT wrap them in \`<a>\` tags or any other HTML.
257
257
 
258
+ When you intend to reference a channel or mention someone, write them as plain text \u2014 do NOT wrap them in backticks (inline code). Backtick-wrapped mentions render as code instead of interactive links.
259
+
258
260
  ### Formatting \u2014 URLs in non-English text
259
261
 
260
262
  When writing a URL next to non-ASCII punctuation (Chinese, Japanese, etc.), always wrap the URL in angle brackets or use markdown link syntax. Otherwise the punctuation may be rendered as part of the URL.
@@ -1181,21 +1183,15 @@ Note: While you are busy, you may receive [System notification: ...] messages ab
1181
1183
  case "thinking": {
1182
1184
  const text = event.text.length > MAX_TRAJECTORY_TEXT ? event.text.slice(0, MAX_TRAJECTORY_TEXT) + "\u2026" : event.text;
1183
1185
  trajectory.push({ kind: "thinking", text });
1184
- if (ap?.isInReceiveMessage) {
1185
- ap.isInReceiveMessage = false;
1186
- } else {
1187
- activity = "thinking";
1188
- }
1186
+ activity = "thinking";
1187
+ if (ap) ap.isInReceiveMessage = false;
1189
1188
  break;
1190
1189
  }
1191
1190
  case "text": {
1192
1191
  const text = event.text.length > MAX_TRAJECTORY_TEXT ? event.text.slice(0, MAX_TRAJECTORY_TEXT) + "\u2026" : event.text;
1193
1192
  trajectory.push({ kind: "text", text });
1194
- if (ap?.isInReceiveMessage) {
1195
- ap.isInReceiveMessage = false;
1196
- } else {
1197
- activity = "thinking";
1198
- }
1193
+ activity = "thinking";
1194
+ if (ap) ap.isInReceiveMessage = false;
1199
1195
  break;
1200
1196
  }
1201
1197
  case "tool_call": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"