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.
- package/index.mjs +10 -0
- 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