@ekkos/cli 1.0.10 → 1.0.11
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/deploy/settings.js +7 -2
- package/package.json +1 -1
package/dist/deploy/settings.js
CHANGED
|
@@ -12,13 +12,18 @@ const platform_1 = require("../utils/platform");
|
|
|
12
12
|
function generateHooksConfig() {
|
|
13
13
|
// Use path.join (via CLAUDE_HOOKS_DIR) so OS-correct separators are used.
|
|
14
14
|
// JSON.stringify handles backslash-escaping automatically — do NOT pre-escape.
|
|
15
|
+
//
|
|
16
|
+
// IMPORTANT: Do NOT use `-File` on Windows — Claude Code has a known bug where
|
|
17
|
+
// it fails to canonicalize absolute script paths, producing "system cannot find
|
|
18
|
+
// the specified path". Use `-Command "& 'path'"` instead, which bypasses it.
|
|
19
|
+
// See: https://github.com/anthropics/claude-code/issues/12874
|
|
15
20
|
if (platform_1.isWindows) {
|
|
16
21
|
return {
|
|
17
22
|
UserPromptSubmit: [
|
|
18
|
-
{ hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -
|
|
23
|
+
{ hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -Command "& '${(0, path_1.join)(platform_1.CLAUDE_HOOKS_DIR, 'user-prompt-submit.ps1')}'"` }] }
|
|
19
24
|
],
|
|
20
25
|
Stop: [
|
|
21
|
-
{ hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -
|
|
26
|
+
{ hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -Command "& '${(0, path_1.join)(platform_1.CLAUDE_HOOKS_DIR, 'stop.ps1')}'"` }] }
|
|
22
27
|
],
|
|
23
28
|
};
|
|
24
29
|
}
|