@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.
@@ -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 -File "${(0, path_1.join)(platform_1.CLAUDE_HOOKS_DIR, 'user-prompt-submit.ps1')}"` }] }
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 -File "${(0, path_1.join)(platform_1.CLAUDE_HOOKS_DIR, 'stop.ps1')}"` }] }
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {