@yeaft/webchat-agent 0.1.266 → 0.1.268

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/conversation.js +1 -0
  2. package/package.json +1 -1
package/conversation.js CHANGED
@@ -196,6 +196,7 @@ export async function preloadSlashCommands(workDir, targetId = '__preload__') {
196
196
  * @returns {{type: string|null, command?: string, message: string, passthrough?: boolean}}
197
197
  */
198
198
  export function parseSlashCommand(message) {
199
+ if (!message) return { type: null, message: '' };
199
200
  const trimmed = message.trim();
200
201
 
201
202
  // 检查是否是不支持的斜杠命令
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.266",
3
+ "version": "0.1.268",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",