@ngxtm/devkit 3.10.1 → 3.10.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.
- package/cli/utils.js +7 -3
- package/package.json +1 -1
package/cli/utils.js
CHANGED
|
@@ -54,7 +54,7 @@ const TOOLS = {
|
|
|
54
54
|
commandsPath: null,
|
|
55
55
|
supportsHooks: false,
|
|
56
56
|
configFile: null,
|
|
57
|
-
detectCmd: 'gh copilot --version'
|
|
57
|
+
detectCmd: null, // Don't use 'gh copilot --version' as it triggers interactive prompt
|
|
58
58
|
detectFolder: path.join(HOME, '.copilot')
|
|
59
59
|
},
|
|
60
60
|
'gemini': {
|
|
@@ -87,11 +87,15 @@ function detectInstalledTools() {
|
|
|
87
87
|
// Try command detection first
|
|
88
88
|
if (tool.detectCmd) {
|
|
89
89
|
try {
|
|
90
|
-
execSync(tool.detectCmd, {
|
|
90
|
+
execSync(tool.detectCmd, {
|
|
91
|
+
stdio: 'pipe',
|
|
92
|
+
timeout: 3000, // 3 second timeout
|
|
93
|
+
input: 'n\n' // Auto-answer 'no' to any prompts
|
|
94
|
+
});
|
|
91
95
|
detected = true;
|
|
92
96
|
method = 'cli';
|
|
93
97
|
} catch (e) {
|
|
94
|
-
// Command not found
|
|
98
|
+
// Command not found or timed out
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
|