feat(ai-code-review): 支援 Antigravity CLI
This commit is contained in:
@@ -52,15 +52,16 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -e
|
||||
tools="$(node --input-type=module -e "import { getLLMCLICommands } from './app/config.js'; console.log(getLLMCLICommands().join(' '));")"
|
||||
found=""
|
||||
for tool in codex claude opencode; do
|
||||
for tool in $tools; do
|
||||
if command -v "$tool" >/dev/null 2>&1; then
|
||||
found="${found} ${tool}"
|
||||
"$tool" --version || true
|
||||
fi
|
||||
done
|
||||
if [ -z "$found" ]; then
|
||||
echo "找不到可用的 AI 助理 CLI(需要 codex、claude 或 opencode 其中之一)" >&2
|
||||
echo "找不到可用的 AI 助理 CLI(需要 ${tools} 其中之一)" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "可用 AI 助理 CLI:${found}"
|
||||
|
||||
Reference in New Issue
Block a user