diff --git a/VERSION b/VERSION index cb0c939..be14282 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.2 +0.5.3 diff --git a/larry.sh b/larry.sh index c5b7ee9..7185e68 100755 --- a/larry.sh +++ b/larry.sh @@ -36,7 +36,7 @@ set -o pipefail # ───────────────────────────────────────────────────────────────────────────── # Config # ───────────────────────────────────────────────────────────────────────────── -LARRY_VERSION="0.5.2" +LARRY_VERSION="0.5.3" LARRY_HOME="${LARRY_HOME:-$HOME/.larry}" LARRY_BASE_URL="${LARRY_BASE_URL:-https://raw.githubusercontent.com/bojj27/cloverleaf-larry/main}" LARRY_UPDATE_URL="${LARRY_UPDATE_URL:-${LARRY_BASE_URL}/larry.sh}" diff --git a/lib/oauth.sh b/lib/oauth.sh index bee39db..53683fa 100755 --- a/lib/oauth.sh +++ b/lib/oauth.sh @@ -122,7 +122,9 @@ EOF local resp resp=$(curl -sS -X POST "$TOKEN_URL" \ -H "Content-Type: application/json" \ + -H "Accept: application/json" \ -H "anthropic-beta: oauth-2025-04-20" \ + -H "User-Agent: claude-cli/2.1.85 (larry-anywhere)" \ -d "$(jq -n \ --arg cid "$CLIENT_ID" \ --arg code "$code" \ @@ -168,7 +170,9 @@ cmd_refresh() { local resp resp=$(curl -sS -X POST "$TOKEN_URL" \ -H "Content-Type: application/json" \ + -H "Accept: application/json" \ -H "anthropic-beta: oauth-2025-04-20" \ + -H "User-Agent: claude-cli/2.1.85 (larry-anywhere)" \ -d "$(jq -n --arg cid "$CLIENT_ID" --arg rt "$refresh_token" \ '{client_id:$cid, grant_type:"refresh_token", refresh_token:$rt}')")