Files
opencode-antigravity-auth/package.json
Noe 2052e4d580 Add multi-account load balancing and improved OAuth UX
Adds multi-account support and round-robin load balancing for Google Antigravity OAuth to increase request throughput and resilience. Introduces an on-disk account pool with cooldowns for rate-limited accounts, automatic removal of revoked refresh tokens, and persistence of rotation state.

Improves OAuth flows and UX: CLI flow can add multiple accounts with per-account project IDs, TUI flow remains single-account, improved browser opening/fallback copy-paste handling, and clearer prompts for pasting redirect URLs or codes. Adds robust parsing of callback input and better headless handling.

Makes token refresh handling explicit and typed (throws a specific error on invalid_grant) and centralizes account management logic into an in-memory manager with persistence utilities. Adds tests for account rotation and rate-limit behavior and bumps package version.

Overall, this increases reliability under rate limits, makes multi-account configuration straightforward, and improves error handling and developer/user experience.
2025-12-16 01:35:02 +00:00

59 lines
1.4 KiB
JSON

{
"name": "opencode-antigravity-auth",
"version": "1.1.0",
"description": "Google Antigravity IDE OAuth auth plugin for Opencode - access Gemini 3 Pro and Claude 4.5 using Google credentials",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"license": "MIT",
"author": "noefabris",
"repository": {
"type": "git",
"url": "git+https://github.com/NoeFabris/opencode-antigravity-auth.git"
},
"homepage": "https://github.com/NoeFabris/opencode-antigravity-auth#readme",
"bugs": {
"url": "https://github.com/NoeFabris/opencode-antigravity-auth/issues"
},
"keywords": [
"opencode",
"google",
"antigravity",
"gemini",
"oauth",
"plugin",
"auth",
"claude"
],
"engines": {
"node": ">=20.0.0"
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"typescript": "^5"
},
"devDependencies": {
"@opencode-ai/plugin": "^0.15.30",
"@types/node": "^24.10.1",
"@vitest/ui": "^3.0.0",
"typescript": "^5.0.0",
"vitest": "^3.0.0"
},
"dependencies": {
"@openauthjs/openauth": "^0.4.3"
}
}