@mulmobridge/chat-service 1.0.2 → 1.0.3
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/dist/commands.js +2 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -281,7 +281,8 @@ export function createCommandHandler(opts) {
|
|
|
281
281
|
}
|
|
282
282
|
return { reply: `Unknown command: ${text}\n\n${buildHelpText(skills)}` };
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
// `split` always yields at least one element, so the default is unreachable.
|
|
285
|
+
const [command = "", ...args] = text.split(/\s+/);
|
|
285
286
|
switch (command) {
|
|
286
287
|
case "/reset":
|
|
287
288
|
return handleReset(transportId, chatState);
|
package/package.json
CHANGED