@ekkos/cli 0.2.0 → 0.2.1

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.
@@ -731,11 +731,29 @@ async function runWithSpawn(claudePath, args, options, state) {
731
731
  console.log('');
732
732
  let claude;
733
733
  if (isWindows) {
734
- // On Windows, spawn Claude directly (no script equivalent)
735
- // PTY features may be limited
734
+ // On Windows, spawn Claude directly
735
+ // IMPORTANT: npx mode doesn't work well on Windows because Claude Code
736
+ // detects non-TTY and defaults to --print mode expecting stdin input
737
+ if (claudePath === 'npx') {
738
+ console.log('');
739
+ console.log(chalk_1.default.red('═══════════════════════════════════════════════════════════════════'));
740
+ console.log(chalk_1.default.red(' Windows requires Claude Code to be installed globally'));
741
+ console.log(chalk_1.default.red('═══════════════════════════════════════════════════════════════════'));
742
+ console.log('');
743
+ console.log(chalk_1.default.yellow(' Run this command first:'));
744
+ console.log(chalk_1.default.cyan(' npm install -g @anthropic-ai/claude-code'));
745
+ console.log('');
746
+ console.log(chalk_1.default.yellow(' Then try again:'));
747
+ console.log(chalk_1.default.cyan(' ekkos run -b'));
748
+ console.log('');
749
+ console.log(chalk_1.default.gray(' Why? Windows spawn mode doesn\'t provide a proper TTY,'));
750
+ console.log(chalk_1.default.gray(' causing Claude Code to expect piped input instead of interactive.'));
751
+ console.log('');
752
+ process.exit(1);
753
+ }
736
754
  console.log(chalk_1.default.gray('Windows mode: running Claude directly'));
737
755
  claude = (0, child_process_1.spawn)(claudePath, args, {
738
- stdio: ['inherit', 'pipe', 'inherit'],
756
+ stdio: 'inherit', // Full inherit for proper interactive mode
739
757
  cwd: process.cwd(),
740
758
  env: process.env,
741
759
  shell: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {