@yeaft/webchat-agent 0.1.267 → 0.1.269
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.
- package/conversation.js +1 -0
- 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
|
// 检查是否是不支持的斜杠命令
|