@emend-ai/utim 2.3.24 → 2.3.25

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/bin/utim.js CHANGED
@@ -60,7 +60,7 @@ function findPython() {
60
60
  const r = spawnSync(cmd, ['--version'], {
61
61
  encoding: 'utf8',
62
62
  timeout: 5000,
63
- shell: isWin,
63
+ shell: false,
64
64
  windowsHide: true,
65
65
  });
66
66
  const out = (r.stdout || '') + (r.stderr || '');
@@ -77,7 +77,7 @@ function isUtimInstalled(python) {
77
77
  const r = spawnSync(python, ['-m', 'pip', 'show', 'utim-cli'], {
78
78
  encoding: 'utf8',
79
79
  timeout: 10000,
80
- shell: isWin,
80
+ shell: false,
81
81
  windowsHide: true,
82
82
  });
83
83
  if (r.status !== 0) return false;
@@ -105,7 +105,7 @@ function runPip(python, extraFlags) {
105
105
  const cmdStr = `title UTIM Setup & echo ======================================== & echo Installing UTIM Python engine and dependencies... & echo ======================================== & "${python}" -m pip install ${extraFlags.join(' ')} ${pipPackage} & echo ======================================== & echo Installation complete. You can close this window. & pause`;
106
106
  spawnSync('cmd.exe', ['/c', 'start', '/wait', 'cmd.exe', '/c', cmdStr], {
107
107
  stdio: 'ignore',
108
- shell: true,
108
+ shell: false,
109
109
  windowsHide: false,
110
110
  });
111
111
  // After the popup window closes, verify if the pip package was actually installed
@@ -172,7 +172,7 @@ function installEngine(python) {
172
172
  // Strategy 3: upgrade pip first, then retry both
173
173
  process.stderr.write('\n Upgrading pip and retrying...\n\n');
174
174
  spawnSync(python, ['-m', 'pip', 'install', '--upgrade', 'pip'], {
175
- stdio: 'pipe', shell: isWin, windowsHide: true, timeout: 60000,
175
+ stdio: 'pipe', shell: false, windowsHide: true, timeout: 60000,
176
176
  });
177
177
  if (runPip(python, termuxFlags)) return true;
178
178
  if (runPip(python, [...termuxFlags, '--user'])) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emend-ai/utim",
3
- "version": "2.3.24",
3
+ "version": "2.3.25",
4
4
  "description": "UTIM AI CLI \u2013 Universal Terminal Intelligence Manager. An agentic AI coding assistant for your terminal.",
5
5
  "keywords": [
6
6
  "ai",
@@ -24,7 +24,7 @@ function findPython() {
24
24
  const r = spawnSync(candidate, ['--version'], {
25
25
  encoding: 'utf8',
26
26
  timeout: 4000,
27
- shell: isWin,
27
+ shell: false,
28
28
  windowsHide: true,
29
29
  });
30
30
  const out = (r.stdout || '') + (r.stderr || '');
@@ -79,7 +79,7 @@ try {
79
79
  ['-m', 'pip', 'install', '--quiet', pipPackage],
80
80
  {
81
81
  stdio: 'pipe',
82
- shell: isWin,
82
+ shell: false,
83
83
  windowsHide: true,
84
84
  timeout: 300000,
85
85
  }