name: 'Antigravity CLI' description: 'Antigravity CLI 工具' author: 'Jeffery' inputs: prompt: description: '' required: false default: "請自我介紹" model: description: '' required: true oauth: description: '' required: true outputs: text: description: '輸出的文字' value: ${{ steps.antigravity.outputs.text }} runs: using: 'composite' steps: - name: 安裝工具 env: OAUTH: ${{ inputs.oauth }} run: | curl -fsSL https://antigravity.google/cli/install.sh | bash echo "$HOME/.local/bin" >> "$GITHUB_PATH" oauth_dir="$HOME/.gemini/antigravity-cli" oauth_file="$oauth_dir/antigravity-oauth-token" mkdir -p "$oauth_dir" printf '%s' "$OAUTH" | base64 -d > "$oauth_file" chmod 600 "$oauth_file" test -s "$oauth_file" echo "::group::Antigravity OAuth debug" stat -c 'oauth_file_mode=%a oauth_file_size=%s' "$oauth_file" sha256sum "$oauth_file" | awk '{ print "oauth_file_sha256=" $1 }' echo "::endgroup::" shell: bash - name: 執行工具 id: antigravity env: MODEL: ${{ inputs.model }} PROMPT: ${{ inputs.prompt }} run: | text="$(agy --print "$PROMPT" --model "$MODEL")" printf '%s\n' "$text" { echo 'text<> "$GITHUB_OUTPUT" shell: bash