@ekkos/cli 1.1.1 → 1.1.3
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.
- package/dist/commands/run.js +8 -6
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -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
|
|
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)
|
|
@@ -1140,9 +1140,9 @@ async function run(options) {
|
|
|
1140
1140
|
logoLines.forEach(line => console.log(chalk_1.default.magenta(line)));
|
|
1141
1141
|
console.log('');
|
|
1142
1142
|
// ══════════════════════════════════════════════════════════════════════════
|
|
1143
|
-
// ANIMATED TITLE: "
|
|
1143
|
+
// ANIMATED TITLE: "Scale Pulse" with orange/white shine
|
|
1144
1144
|
// ══════════════════════════════════════════════════════════════════════════
|
|
1145
|
-
const titleText = '
|
|
1145
|
+
const titleText = 'ekkOS_Pulse';
|
|
1146
1146
|
const taglineText = 'Context is finite. Intelligence isn\'t.';
|
|
1147
1147
|
// Color palette for shine effect
|
|
1148
1148
|
const whiteShine = chalk_1.default.whiteBright;
|
|
@@ -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);
|