@ekkos/cli 1.1.0 → 1.1.2

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.
@@ -433,7 +433,7 @@ const isWindows = os.platform() === 'win32';
433
433
  // 'latest' = use latest version, or specify like '2.1.33' for specific version
434
434
  // Core ekkOS patches (eviction, context management) work with all recent versions
435
435
  // Cosmetic patches may fail on newer versions but don't affect functionality
436
- const PINNED_CLAUDE_VERSION = '2.1.37';
436
+ const PINNED_CLAUDE_VERSION = 'latest';
437
437
  // Max output tokens for Claude responses
438
438
  // Default: 16384 (safe for Sonnet 4.5)
439
439
  // Opus 4.5 supports up to 64k - set EKKOS_MAX_OUTPUT_TOKENS=32768 or =65536 to use higher limits
@@ -521,14 +521,14 @@ function getEkkosEnv() {
521
521
  }
522
522
  // ekkOS-managed Claude installation path
523
523
  const EKKOS_CLAUDE_DIR = path.join(os.homedir(), '.ekkos', 'claude-code');
524
- const EKKOS_CLAUDE_BIN = path.join(EKKOS_CLAUDE_DIR, 'node_modules', '.bin', 'claude');
524
+ const EKKOS_CLAUDE_BIN = path.join(EKKOS_CLAUDE_DIR, 'node_modules', '.bin', isWindows ? 'claude.cmd' : 'claude');
525
525
  /**
526
526
  * Check if a Claude installation exists and get its version
527
527
  * Returns version string if found, null otherwise
528
528
  */
529
529
  function getClaudeVersion(claudePath) {
530
530
  try {
531
- const version = (0, child_process_1.execSync)(`"${claudePath}" --version 2>/dev/null`, { encoding: 'utf-8' }).trim();
531
+ const version = (0, child_process_1.execSync)(`"${claudePath}" --version`, { encoding: 'utf-8', stdio: 'pipe' }).trim();
532
532
  // Look for pattern like "2.1.6 (Claude Code)" or just "2.1.6" anywhere in output
533
533
  const match = version.match(/(\d+\.\d+\.\d+)\s*\(Claude Code\)/);
534
534
  if (match)
@@ -1747,7 +1747,8 @@ async function run(options) {
1747
1747
  const spawnedProcess = (0, child_process_1.spawn)(claudePath, args, {
1748
1748
  stdio: 'inherit',
1749
1749
  cwd: process.cwd(),
1750
- env: getEkkosEnv()
1750
+ env: getEkkosEnv(),
1751
+ shell: isWindows
1751
1752
  });
1752
1753
  spawnedProcess.on('exit', (code) => process.exit(code ?? 0));
1753
1754
  spawnedProcess.on('error', (e) => {
@@ -1771,7 +1772,8 @@ async function run(options) {
1771
1772
  const spawnedProcess = (0, child_process_1.spawn)(claudePath, args, {
1772
1773
  stdio: 'inherit',
1773
1774
  cwd: process.cwd(),
1774
- env: getEkkosEnv()
1775
+ env: getEkkosEnv(),
1776
+ shell: isWindows
1775
1777
  });
1776
1778
  spawnedProcess.on('exit', (code) => {
1777
1779
  process.exit(code ?? 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {