@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.
Files changed (2) hide show
  1. package/dist/commands.js +2 -1
  2. 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
- const [command, ...args] = text.split(/\s+/);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulmobridge/chat-service",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Server-side chat service for MulmoBridge — socket.io + REST bridge to Claude Code agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",