@cloudbase/cli 2.8.27 → 2.8.28
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/.env.local +1 -1
- package/dist/standalone/cli.js +6127 -302
- package/lib/utils/ai/router.js +2 -5
- package/package.json +1 -1
package/lib/utils/ai/router.js
CHANGED
|
@@ -396,8 +396,7 @@ class AICommandRouter {
|
|
|
396
396
|
executeCommand(command, args, env, log) {
|
|
397
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
398
398
|
return new Promise((resolve, reject) => {
|
|
399
|
-
const useShell = process.platform
|
|
400
|
-
(process.env.WSL_DISTRO_NAME || process.env.MSYS2 || process.env.GIT_BASH);
|
|
399
|
+
const useShell = process.platform === 'win32';
|
|
401
400
|
const child = (0, child_process_1.spawn)(command, args, {
|
|
402
401
|
stdio: 'inherit',
|
|
403
402
|
env,
|
|
@@ -442,11 +441,9 @@ class AICommandRouter {
|
|
|
442
441
|
isToolAvailable(command) {
|
|
443
442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
444
443
|
return new Promise((resolve) => {
|
|
445
|
-
const useShell = process.platform !== 'win32' ||
|
|
446
|
-
(process.env.WSL_DISTRO_NAME || process.env.MSYS2 || process.env.GIT_BASH);
|
|
447
444
|
const child = (0, child_process_1.spawn)(command, ['--version'], {
|
|
448
445
|
stdio: 'pipe',
|
|
449
|
-
shell:
|
|
446
|
+
shell: true
|
|
450
447
|
});
|
|
451
448
|
child.on('close', (code) => {
|
|
452
449
|
resolve(code === 0);
|