@anusornneal/chat-relay 1.3.1 → 1.3.2

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.
@@ -30,7 +30,9 @@ const ENDED_TTL_MS = 30 * 60 * 1000;
30
30
 
31
31
  const BLOCKED_COMMANDS = [
32
32
  /\b(mkfs|mount|umount|fdisk|dd|parted|diskpart|sudo|su|passwd)\b/i,
33
- /\bformat\b(?!-(?:List|Table)\b)/i,
33
+ // Match disk formatting as a command, not a filename, argument or Git flag.
34
+ /(?:^|[;|&]\s*|\$\(\s*)(?:\s*&\s*)?(?:format(?:\.(?:exe|com))?|Format-Volume)(?=\s|$|[;|&)]|\/)/i,
35
+ /\bcmd(?:\.exe)?\s+\/[ck]\s+(?:\"|')?format(?:\.(?:exe|com))?(?=\s|$)/i,
34
36
  /\b(adduser|useradd|usermod|groupadd|chsh|visudo|shutdown|reboot|halt)\b/i,
35
37
  /\b(poweroff|init|iptables|firewall|netsh|sfc|bcdedit|runas|cipher|takeown)\b/i,
36
38
  /\b(reg|sc)\.exe\b/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anusornneal/chat-relay",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Zero-checkout remote MCP agent for ChatGPT with terminal, filesystem, process, multi-user, and multi-agent support.",
5
5
  "type": "module",
6
6
  "bin": {