speiidev 1.2.0 → 1.3.0
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/speiidev.js +4 -11
- package/package.json +1 -1
- package/src/autodev/_version.py +1 -1
package/bin/speiidev.js
CHANGED
|
@@ -6,18 +6,11 @@ const os = require('os');
|
|
|
6
6
|
const isWin = os.platform() === 'win32';
|
|
7
7
|
const pythonCmd = isWin ? 'python' : 'python3';
|
|
8
8
|
|
|
9
|
-
// 1.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
console.error('❌ Error: Python 3 is required to run speiidev, but it was not found.');
|
|
13
|
-
console.error('💡 Windows Tip: Install Python via: winget install Python.Python.3.11');
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
9
|
+
// 1. Force upgrade the Python engine to the latest version from PyPI
|
|
10
|
+
console.log('🔄 Updating speiidev core engine from PyPI...');
|
|
11
|
+
spawnSync(pythonCmd, ['-m', 'pip', 'install', '--user', '--upgrade', 'autodev-orchestrator'], { stdio: 'inherit' });
|
|
16
12
|
|
|
17
|
-
// 2.
|
|
18
|
-
spawnSync(pythonCmd, ['-m', 'pip', 'install', '--user', '--upgrade', 'autodev_orchestrator'], { stdio: 'inherit' });
|
|
19
|
-
|
|
20
|
-
// 3. Forward arguments and run
|
|
13
|
+
// 2. Pass arguments and launch
|
|
21
14
|
const args = process.argv.slice(2);
|
|
22
15
|
const result = spawnSync(pythonCmd, ['-m', 'autodev.cli', ...args], { stdio: 'inherit' });
|
|
23
16
|
process.exit(result.status);
|
package/package.json
CHANGED
package/src/autodev/_version.py
CHANGED