Commit Graph

79 Commits

Author SHA1 Message Date
tctinh
0407a66d30 docs: enhance documentation with load balancing details and formatting improvements 2026-01-17 04:32:22 +07:00
tctinh
f0c1abf2c6 fix: update default values for keep_thinking and auto_resume options in documentation and schema 2026-01-17 04:16:06 +07:00
tctinh
e975a1cae8 feat: Update issue templates and README for improved user guidance
- Enhanced issue template configuration with troubleshooting and existing issues links.
- Removed old feature request markdown and replaced it with a new YAML template for better structure.
- Updated README to include a comprehensive troubleshooting section and clarified configuration paths.
- Added detailed troubleshooting steps for common issues, including rate limits and OAuth callback problems.
- Incremented version to 1.2.9-beta.10 in package.json.
2026-01-17 04:11:01 +07:00
Noe
80efd94658 fix: update documentation and code comments for hybrid strategy implementation 2026-01-16 17:19:49 +00:00
Noe
1a6237c123 Add comprehensive documentation for Antigravity Auth plugin
- Created CONFIGURATION.md for detailed configuration options and examples.
- Added MODEL-VARIANTS.md to explain the variant system and its usage.
- Introduced MULTI-ACCOUNT.md to guide users on setting up and managing multiple accounts.
- Developed TROUBLESHOOTING.md to address common issues and provide solutions.
2026-01-16 00:01:52 +00:00
FrescoFlacko
a79d44a395 refactor: simplifying sentence structure 2026-01-10 21:49:17 -05:00
FrescoFlacko
2afcbe1568 Merge branch 'main' into gemini-project-id-doc-update 2026-01-10 21:43:58 -05:00
FrescoFlacko
402af3a8e3 docs: adding documentation for Gemini CLI model issues. 2026-01-10 21:30:07 -05:00
Chindriș Mihai Alexandru
094fca33ac docs: Make browser OAuth troubleshooting sections collapsible
Addresses review feedback from tctinh to make the troubleshooting
subsections expandable/collapsible for better readability.
2026-01-11 00:00:40 +02:00
Chindriș Mihai Alexandru
f3d4205688 docs: Address review feedback - add Windows commands and port hints
- Add Windows PowerShell/Command Prompt equivalents for port discovery
- Add hint about trying common ports (8080, 3000, 5000)
- Add alternative lsof command to list all listening processes

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-10 01:58:48 +02:00
Chindriș Mihai Alexandru
693a2bc429 docs: Add Safari/browser OAuth troubleshooting section
Add documentation for browser-specific OAuth callback issues:
- Safari HTTPS-Only Mode blocking localhost callbacks
- Port conflict resolution steps
- WSL2/SSH port forwarding guidance
- References issue #119 for manual auth feature
2026-01-10 01:51:25 +02:00
tctinh
462b429736 docs: add missing config options and improve documentation
- Add switch_on_first_rate_limit and pid_offset_enabled to JSON schema
- Document keep_thinking with experimental warning (fixes #150)
- Expand quota_fallback description explaining Gemini dual quota pools (fixes #151)
- Add Signature Cache section documenting cache settings
2026-01-09 14:00:06 +07:00
tctinh
3445cdaa88 feat: progressive rate limit retry with switch_on_first_rate_limit config
- Replace SHORT_RETRY_THRESHOLD_MS with progressive retry logic
- First 429: wait 1s, then switch account (if switch_on_first_rate_limit=true)
- Second 429: wait 5s, then switch (if switch_on_first_rate_limit=false)
- Single account: exponential backoff (1s, 2s, 4s... max 60s)
- Add switch_on_first_rate_limit config option (default: true)
- Update README with new config documentation

Fixes NoeFabris/opencode-antigravity-auth#147
2026-01-08 22:36:13 +07:00
Soungmin Son (Eddy)
972c877a44 Merge branch 'dev' into fix/antigravity-v6.6.89-compat 2026-01-08 14:26:22 +09:00
tctinh
d39d1f5c90 fix: Gemini 3 tool schema format and restore thinking deduplication
- Wrap tools in functionDeclarations format for Gemini 3 API
- Flatten incoming functionDeclarations and convert parameters to proper schema
- Re-implement session-level thinking deduplication after partial revert
- Update README model names for clarity (Antigravity vs Gemini CLI)
- Fix model resolver to append default tier for Antigravity Gemini 3 models
2026-01-07 03:09:40 +07:00
CasualDeveloper
f78ddf23af fix: merge dev, align defaults with Google/Anthropic docs, simplify variants
Merge conflict resolution and defaults per official API docs.

**Gemini 3** (https://cloud.google.com/vertex-ai/generative-ai/docs/thinking):
> HIGH: Allows the model to use more tokens for thinking... This is the
> default level for Gemini 3 Pro and Gemini 3 Flash.

- Default thinkingLevel: 'high' for both Pro and Flash
- Model-specific levels: Flash (minimal/low/medium/high), Pro (low/high only)

**Claude** (https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking):
> To turn on extended thinking, add a thinking object... and the
> budget_tokens to a specified token budget.

- budget_tokens is required when enabling extended thinking (no default)
- Default thinkingBudget: 32768 (max) for Claude thinking models without variant

**Additional changes per maintainer feedback:**
- Simplify Claude variants to 'low' and 'max' only (medium/high not much different)
- Update all README examples and config snippets
2026-01-07 02:59:28 +08:00
CasualDeveloper
f05bd6b45e fix: add minimal level and set Pro default to high per Google docs
- Add 'minimal' to GEMINI_3_THINKING_LEVELS constant
- Change Pro default from 'medium' to 'high' (per Google API docs)
- Document model-specific level availability:
  - Flash: minimal, low, medium, high
  - Pro: low, high only
- Update README variant examples with correct levels per model

Addresses CodeRabbit review feedback on #131
2026-01-07 00:53:32 +08:00
CasualDeveloper
6cab735ef1 feat: complete Gemini 3 variant config overhaul
Fixes #130

## Changes

### Model resolver (already in PR)
- Default thinkingLevel for base Gemini 3 models: Pro → 'medium', Flash → 'minimal'

### Native thinkingLevel support
- extractVariantThinkingConfig now extracts thinkingLevel string for Gemini 3
- Prefer native thinkingLevel when present
- Fall back to budget→level conversion with deprecation warning

### Correct variant config format (README)
- Remove providerOptions.google wrapper from all examples
- Gemini 3: use thinkingLevel string
- Claude: use thinkingConfig.thinkingBudget number

### Code cleanup
- Remove dead Anthropic/OpenRouter checks (all Antigravity routes through Google)
- Add deprecation warning for legacy thinkingBudget on Gemini 3

## Backward Compatibility
- Legacy thinkingBudget for Gemini 3 still works (deprecated)
- Tier-suffixed model names still work
2026-01-06 23:46:28 +08:00
tctinh
815068ff05 feat: add pid_offset_enabled config option (disabled by default)
- Add pid_offset_enabled config option (default: false)
- Add env var override OPENCODE_ANTIGRAVITY_PID_OFFSET_ENABLED
- Make PID-based account offset opt-in instead of always-on
- Update README with documentation

Fixes #122
2026-01-06 09:45:46 +07:00
tctinh
9eb09b5379 feat: implement variant thinking configuration extraction and model resolution 2026-01-06 00:21:15 +07:00
tctinh
eedafe5947 feat: smart account routing with error differentiation
- Add account_selection_strategy config: sticky, round-robin, hybrid
- Fix capacity vs quota error handling (Issue #111)
- Capacity errors: escalating backoff (5s→60s), retry same account
- Quota errors: switch to next account immediately
- Add touchedForQuota state tracking for hybrid strategy
- Add comprehensive tests for all strategies
2026-01-05 22:53:22 +07:00
Rico Sta. Cruz
caed29f867 Update model names in README.md 2026-01-04 00:49:02 +11:00
Tinh To
0c521a648b Add troubleshooting section to README
Added troubleshooting section for common issues related to multi-account authentication, Gemini model not found, and session errors.
2026-01-02 23:10:45 +07:00
Tinh To
b8b055da3e Update README with correct URL for Antigravity plugin 2026-01-01 17:05:11 +07:00
Tinh To
a98d992b66 Update schema URLs to NoeFabris repository 2026-01-01 17:00:14 +07:00
Tinh To
0f6167e983 Update URLs to NoeFabris repository 2026-01-01 16:59:18 +07:00
tctinh
984b77ab71 Merge remote-tracking branch 'origin/dev' into release/1.2.7 2026-01-01 09:25:42 +07:00
tctinh
219069a2a3 feat: add legacy Gemini 3 model support for Antigravity quota and implement E2E test suite 2026-01-01 09:25:15 +07:00
tctinh
a6489f3cc2 chore: release v1.2.7 - pin version for official release 2026-01-01 08:56:09 +07:00
tctinh
c3f0fa26fb docs: update README for clarity and improved installation instructions 2026-01-01 08:52:41 +07:00
Tinh To
c6201c9f20 Update plugin version in README.md to beta 2025-12-31 02:12:05 +07:00
Tinh To
e39d4b80dd Revise upgrade steps and config for antigravity
Updated upgrade instructions and configuration details for antigravity.
2025-12-31 01:48:26 +07:00
tctinh
44badf64d5 feat: enhance configuration options and update installation instructions 2025-12-28 20:27:54 +07:00
tctinh
802dfe1fdb Refactor rate limit handling and improve error responses
- Deleted the RATE_LIMIT_ROUTING_ANALYSIS.md document as it is no longer needed.
- Enhanced the regression test to provide detailed failure information, including the first failure's stderr output.
- Updated the plugin to handle 400 errors ("Prompt too long") with a synthetic response instead of returning a session-locking error.
- Introduced createSyntheticErrorResponse function to generate a synthetic SSE response for error messages, allowing continued session usage.
- Added tests for createSyntheticErrorResponse to ensure correct behavior and structure of the synthetic SSE events.
2025-12-28 18:28:56 +07:00
tctinh
16f4bb07a1 feat: add E2E testing scripts and simplify Gemini Flash model config
- Add test-models.ts for validating all supported model endpoints
- Add test-regression.ts for multi-turn regression testing (Issue #50)
- Consolidate Gemini 3 Flash variants (low/medium/high) into single model
- Fix schema structure by flattening nested signature_cache properties
- Extract streaming transformer utilities to dedicated module
2025-12-28 00:04:57 +07:00
tctinh
ba2891bf57 Update README.md and bump beta version 2025-12-27 16:47:32 +07:00
tctinh
7c43511f7a feat: add prefix-based quota routing for Gemini CLI vs Antigravity
- Add 'antigravity-' prefix to route to Antigravity quota
- Models without prefix route to Gemini CLI quota
- Claude/GPT models auto-route to Antigravity (only available there)
- Gemini 3 tiers: Pro supports low/high, Flash supports minimal/low/medium/high
- Add thinkingLevel param for Gemini CLI, keep tier in model name for Antigravity

Resolves #51
2025-12-26 17:36:20 +07:00
tctinh
0864d6a9e5 docs: update model names to new thinking budget format in README 2025-12-26 14:56:35 +07:00
tctinh
19eeaf752d docs: add migration guide for v1.2.5 with upgrade steps and new features 2025-12-26 14:52:59 +07:00
tctinh
ab86d6d8d1 fix: prevent tool_use without tool_result errors
Add defense-in-depth protection against Claude API tool pairing errors:

- findOrphanedToolUseIds(): Detect orphaned tool_use blocks
- fixClaudeToolPairing(): Inject placeholder tool_result responses
- validateAndFixClaudeToolPairing(): Nuclear fallback removes broken blocks
- 12 new unit tests covering all edge cases

Fixes permanent session corruption when ESC pressed or context compacted.
2025-12-26 11:44:06 +07:00
tctinh
4cfac758fe feat: add npm beta version badge to README 2025-12-26 02:39:26 +07:00
tctinh
6c1e3b7b40 feat: Implement session recovery module for handling recoverable errors
- Added recovery functionality for tool_result_missing, thinking_block_order, and thinking_disabled_violation errors.
- Introduced constants and types for session recovery.
- Created storage utilities for reading and writing session data.
- Enhanced debug logging capabilities in debug.ts.
- Refactored debug state management for better initialization and access.
2025-12-26 02:09:15 +07:00
github-actions[bot]
109c5c0ea5 docs: update readme version to 1.2.4 [skip ci] 2025-12-24 09:49:39 +00:00
Noe
aa865ace46 docs: update README 2025-12-23 18:32:10 +01:00
github-actions[bot]
67cbce0396 docs: update readme version to 1.2.3 [skip ci] 2025-12-23 17:31:25 +00:00
github-actions[bot]
370f5eb7ed docs: update readme version to 1.2.2 [skip ci] 2025-12-22 22:32:35 +00:00
Noe
e382fcd644 Improves Gemini quota handling with dual pools
Enhances Gemini quota management by introducing dual quota pools (Antigravity and Gemini CLI) for increased quota availability.

Gemini models now automatically fall back to the second quota pool when the first is exhausted, effectively doubling the quota per account.
2025-12-22 23:07:57 +01:00
github-actions[bot]
b81d70f01b docs: update readme version to 1.2.1 [skip ci] 2025-12-21 12:32:14 +00:00
Noe
c611e4dde4 feat: enhance logging functionality with configurable log directory and debug output 2025-12-21 12:40:08 +01:00
Noe
bd124f92ec docs: update installation instructions to include model definitions for LLM agents 2025-12-21 12:15:53 +01:00