Commit Graph

10 Commits

Author SHA1 Message Date
Noe
a5f2ff440c feat: implement auto-update checker for Antigravity plugin with installation instructions and model updates 2025-12-21 03:09:16 +01:00
Noe
684076eaba Improves Antigravity account management and debugging
Refactors account management to support sticky sessions, per-model-family rate limits, and enhanced debugging capabilities.

- Implements sticky account selection, preserving Anthropic's prompt cache by sticking to the same account until a rate limit is encountered.
- Tracks rate limits separately for Claude and Gemini models, allowing an account to be used for one model family even if rate-limited for another.
- Introduces a smart retry threshold for short rate limits, retrying on the same account to avoid unnecessary switching.
- Adds exponential backoff for consecutive rate limits, increasing delays with each subsequent 429 error.
- Includes quota reset times in rate limit toast notifications when available from the API.
- Debounces toast notifications to prevent spam during streaming responses.
- Introduces a quiet mode to suppress account-related toast notifications via an environment variable.
- Enhances debug logging with level-based verbosity, TUI integration, and auto-stripping of injected debug blocks.
2025-12-21 02:25:44 +01:00
Noè
86533c104e Merge branch 'main' into claude-improvements 2025-12-18 10:37:37 +00:00
fgonzalezurriola
6d78ea5d91 refactor: Using {@email} toast doesn't show for users with less than 2 accounts 2025-12-17 14:37:20 -03:00
Noe
314ac9d427 feat(claude): add multi-turn thinking signature caching and real-time SSE streaming
Implement comprehensive support for Claude thinking models with interleaved
thinking in multi-turn conversations:

- Add signature caching system to preserve and restore thinking block
  signatures across conversation turns, preventing "invalid signature" errors
- Enable real-time SSE streaming with immediate forwarding of thinking tokens
- Add interleaved-thinking-2025-05-14 beta header for Claude thinking models
- Implement smart system hints to encourage thinking during tool use
- Add VALIDATED mode for tool calling on Claude models
- Ensure output token limits accommodate thinking budgets
- Filter and sanitize thinking blocks, removing SDK-injected cache_control
- Add comprehensive test suites for auth, cache, and request-helpers modules
- Update build config to exclude test files from production builds
- Document streaming and thinking features in README
2025-12-17 15:52:40 +00:00
Noe
debcfb7443 fix: add modalities support for input/output in configuration and improve toast notifications in plugin 2025-12-17 00:18:21 +00:00
Noe
c42a90d645 feat(auth): add login mode selection and improve rate limit handling
- Add CLI prompt to choose between adding accounts or starting fresh
- Implement automatic retry with backoff for single-account rate limits
- Show toast notifications for account switching and rate limit status
- Clear stale account storage when OpenCode auth state changes
- Add sleep helper function with abort signal support
- Improve README with clearer step-by-step setup instructions

TUI flow now adds accounts non-destructively; CLI flow offers choice.
2025-12-17 00:09:17 +00:00
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
Noe
d946805235 Updates to make it work with workspace accounts 2025-12-10 11:33:03 +00:00
Noe
5d229bf44e First commit - auth and models working 2025-12-09 23:59:18 +00:00