@ekkos/cli 1.1.5 → 1.1.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.
@@ -257,18 +257,28 @@ async function deployForClaude(apiKey, userId, options) {
257
257
  catch (error) {
258
258
  spinner.fail('MCP server configuration failed');
259
259
  }
260
- // Settings.json (hook registration)
261
- spinner = (0, ora_1.default)('Deploying hooks configuration...').start();
262
- try {
263
- (0, settings_1.deployClaudeSettings)();
260
+ // Settings.json (hook registration) — skipped on Windows (proxy-only mode)
261
+ if (platform_1.isWindows) {
262
+ spinner = (0, ora_1.default)('Hooks skipped (Windows proxy-only mode)').start();
263
+ spinner.info('Hooks skipped (Windows uses proxy-only mode)');
264
264
  result.settings = true;
265
- spinner.succeed('Hooks configuration');
266
265
  }
267
- catch (error) {
268
- spinner.fail('Hooks configuration failed');
266
+ else {
267
+ spinner = (0, ora_1.default)('Deploying hooks configuration...').start();
268
+ try {
269
+ (0, settings_1.deployClaudeSettings)();
270
+ result.settings = true;
271
+ spinner.succeed('Hooks configuration');
272
+ }
273
+ catch (error) {
274
+ spinner.fail('Hooks configuration failed');
275
+ }
276
+ }
277
+ // Hook scripts — skipped on Windows
278
+ if (platform_1.isWindows) {
279
+ // Skip hook scripts on Windows
269
280
  }
270
- // Hook scripts
271
- if (!options.skipHooks) {
281
+ else if (!options.skipHooks) {
272
282
  spinner = (0, ora_1.default)('Deploying hook scripts...').start();
273
283
  try {
274
284
  result.hooks = (0, hooks_1.deployHooks)(apiKey);
@@ -901,6 +901,27 @@ async function run(options) {
901
901
  console.log(chalk_1.default.yellow(' ⏭️ API proxy disabled (--no-proxy)'));
902
902
  }
903
903
  // ══════════════════════════════════════════════════════════════════════════
904
+ // WINDOWS: Disable hooks for reliability — proxy-only mode
905
+ // Hooks can cause PowerShell execution policy issues and hangs on Windows.
906
+ // The proxy handles context management; hooks aren't strictly required.
907
+ // ══════════════════════════════════════════════════════════════════════════
908
+ if (isWindows) {
909
+ try {
910
+ const settingsPath = path.join(os.homedir(), '.claude', 'settings.json');
911
+ if (fs.existsSync(settingsPath)) {
912
+ const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'));
913
+ if (settings.hooks) {
914
+ delete settings.hooks;
915
+ fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
916
+ console.log(chalk_1.default.gray(' ⏭️ Hooks disabled (Windows proxy-only mode)'));
917
+ }
918
+ }
919
+ }
920
+ catch {
921
+ // Non-fatal — continue without hook cleanup
922
+ }
923
+ }
924
+ // ══════════════════════════════════════════════════════════════════════════
904
925
  // DASHBOARD MODE: Launch via tmux with isolated dashboard pane (60/40)
905
926
  // ══════════════════════════════════════════════════════════════════════════
906
927
  if (options.dashboard) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {