stigmergy 1.3.26-beta.0 → 1.3.27-beta.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/package.json
CHANGED
|
@@ -60,7 +60,14 @@ async function handleStatusCommand(options = {}) {
|
|
|
60
60
|
|
|
61
61
|
for (const tool of supportedTools) {
|
|
62
62
|
try {
|
|
63
|
-
|
|
63
|
+
// 添加超时保护
|
|
64
|
+
const timeoutPromise = new Promise((_, reject) =>
|
|
65
|
+
setTimeout(() => reject(new Error('Timeout')), 5000)
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const statusPromise = CLI_TOOLS.checkInstallation(tool);
|
|
69
|
+
const status = await Promise.race([statusPromise, timeoutPromise]);
|
|
70
|
+
|
|
64
71
|
results.push({ tool, ...status });
|
|
65
72
|
|
|
66
73
|
if (status.installed) {
|
package/src/cli/router-beta.js
CHANGED
|
@@ -342,7 +342,7 @@ async function main() {
|
|
|
342
342
|
});
|
|
343
343
|
|
|
344
344
|
// Route commands to CLI tools
|
|
345
|
-
for (const tool of ['claude', 'gemini', 'qwen', 'codebuddy', 'codex', 'iflow', 'qodercli', 'copilot'
|
|
345
|
+
for (const tool of ['claude', 'gemini', 'qwen', 'codebuddy', 'codex', 'iflow', 'qodercli', 'copilot']) {
|
|
346
346
|
program
|
|
347
347
|
.command(tool)
|
|
348
348
|
.description(`Use ${tool} CLI tool`)
|