@ekkos/cli 1.0.8 → 1.0.9

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.
@@ -9,14 +9,18 @@ const platform_1 = require("../utils/platform");
9
9
  * Uses the new format required by Claude Code 2.1.40+
10
10
  */
11
11
  function generateHooksConfig() {
12
- const hooksDir = `${platform_1.HOME_DIR}/.claude/hooks`;
12
+ // Use CLAUDE_HOOKS_DIR (path.join-based) to get correct OS separators.
13
+ // Do NOT use template literals with HOME_DIR — they produce mixed separators
14
+ // on Windows (C:\Users\name/.claude/hooks) which causes "path not found".
15
+ const hooksDir = platform_1.CLAUDE_HOOKS_DIR;
13
16
  if (platform_1.isWindows) {
17
+ const ps1Dir = hooksDir.replace(/\\/g, '\\\\'); // escape backslashes for JSON string
14
18
  return {
15
19
  UserPromptSubmit: [
16
- { hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -File "${hooksDir}/user-prompt-submit.ps1"` }] }
20
+ { hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -File "${ps1Dir}\\user-prompt-submit.ps1"` }] }
17
21
  ],
18
22
  Stop: [
19
- { hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -File "${hooksDir}/stop.ps1"` }] }
23
+ { hooks: [{ type: 'command', command: `powershell -ExecutionPolicy Bypass -File "${ps1Dir}\\stop.ps1"` }] }
20
24
  ],
21
25
  };
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {