ai-lab-bridge 0.1.1 → 0.1.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/index.js +2 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -179,15 +179,14 @@ async function detectCapabilities() {
|
|
|
179
179
|
if (fallback) cursorBinary = "cursor-agent";
|
|
180
180
|
return fallback;
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
// 仅探测平台支持的 CLI(gemini/iflow 已下线不支持,探测会以"未安装"标签干扰用户)
|
|
183
|
+
const [claudeVersion, codexVersion, opencodeVersion, codefreeVersion, cursorVersion, qwenVersion] = await Promise.all([
|
|
183
184
|
runVersionProbe("claude", "--version"),
|
|
184
185
|
runVersionProbe("codex", "--version"),
|
|
185
186
|
runVersionProbe("opencode", "--version"),
|
|
186
187
|
runVersionProbe("codefree-o", "--version"),
|
|
187
188
|
probeCursor(),
|
|
188
|
-
runVersionProbe("gemini", "--version"),
|
|
189
189
|
runVersionProbe("qwen", "--version"),
|
|
190
|
-
runVersionProbe("iflow", "--version"),
|
|
191
190
|
]);
|
|
192
191
|
return [
|
|
193
192
|
{ cli: "claude", version: claudeVersion, available: !!claudeVersion },
|
|
@@ -195,9 +194,7 @@ async function detectCapabilities() {
|
|
|
195
194
|
{ cli: "opencode", version: opencodeVersion, available: !!opencodeVersion },
|
|
196
195
|
{ cli: "codefree-o", version: codefreeVersion, available: !!codefreeVersion },
|
|
197
196
|
{ cli: "cursor", version: cursorVersion, available: !!cursorVersion },
|
|
198
|
-
{ cli: "gemini", version: geminiVersion, available: !!geminiVersion },
|
|
199
197
|
{ cli: "qwen", version: qwenVersion, available: !!qwenVersion },
|
|
200
|
-
{ cli: "iflow", version: iflowVersion, available: !!iflowVersion },
|
|
201
198
|
];
|
|
202
199
|
}
|
|
203
200
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-lab-bridge",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "AI
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "AI 开发平台设备桥接进程:反连平台 WebSocket,驱动本地 Claude Code / Codex CLI 执行任务并回传事件流",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"index.js",
|