stigmergy 1.3.26-beta.0 → 1.3.28-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stigmergy",
3
- "version": "1.3.26-beta.0",
3
+ "version": "1.3.28-beta.0",
4
4
  "description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -60,7 +60,14 @@ async function handleStatusCommand(options = {}) {
60
60
 
61
61
  for (const tool of supportedTools) {
62
62
  try {
63
- const status = await CLI_TOOLS.checkInstallation(tool);
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) {
@@ -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', 'kode', 'opencode', 'oh-my-opencode']) {
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`)
@@ -93,16 +93,15 @@ const CLI_TOOLS = {
93
93
  hooksDir: path.join(os.homedir(), '.opencode', 'hooks'),
94
94
  config: path.join(os.homedir(), '.opencode', 'config.json'),
95
95
  autoInstall: false, // 默认不安装
96
- },
97
- 'oh-my-opencode': {
98
- name: 'Oh-My-OpenCode Plugin Manager',
99
- version: 'oh-my-opencode --version',
100
- install: 'npm install bun -g && bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no',
101
- hooksDir: path.join(os.homedir(), '.opencode', 'plugins'),
102
- config: path.join(os.homedir(), '.opencode', 'config.json'),
103
- skipVersionCheck: true, // Version check may not work properly for bunx packages
104
- requiresBun: true, // Requires bun runtime
105
- autoInstall: false, // 默认不安装
96
+ plugins: [
97
+ {
98
+ name: 'oh-my-opencode',
99
+ install: 'npm install bun -g && bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no',
100
+ hooksDir: path.join(os.homedir(), '.opencode', 'plugins'),
101
+ skipVersionCheck: true,
102
+ requiresBun: true
103
+ }
104
+ ]
106
105
  },
107
106
  };
108
107