cc-safe-setup 28.4.5 → 28.4.6

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/index.mjs +10 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4922,6 +4922,16 @@ async function doctor() {
4922
4922
  for (const h of hookList) {
4923
4923
  if (h.type !== 'command') continue;
4924
4924
  const cmd = h.command;
4925
+
4926
+ // Check for Windows backslash paths
4927
+ if (cmd.includes('\\')) {
4928
+ fail('Windows backslash in hook command: ' + cmd);
4929
+ const fixed = cmd.replace(/\\/g, '/');
4930
+ console.log(c.dim + ' Fix: npx cc-safe-setup --uninstall && npx cc-safe-setup@latest' + c.reset);
4931
+ console.log(c.dim + ' Or manually change to: ' + fixed + c.reset);
4932
+ continue;
4933
+ }
4934
+
4925
4935
  // Extract the script path from commands like "bash ~/.claude/hooks/x.sh" or "~/bin/x.sh arg1 arg2"
4926
4936
  let scriptPath = cmd;
4927
4937
  // Strip leading interpreter (bash, sh, node, python3, etc.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-safe-setup",
3
- "version": "28.4.5",
3
+ "version": "28.4.6",
4
4
  "description": "One command to make Claude Code safe. 336 hooks (8 built-in + 330 examples). 49 CLI commands. 987 tests. 5 languages.",
5
5
  "main": "index.mjs",
6
6
  "bin": {