Commit History
-
refactor(executor): split providers and preserve legacy entrypoints
shinmentakezo07 +1: Claude Opus 4.6Extract provider-specific logic into refactored executors with a shared base flow, keep legacy executor files as thin compatibility wrappers, and apply static safety fixes to reduce duplication and avoid symbol/nil-path regressions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3e5ab39
-
feat: passthrough upstream response headers to clients
Kirill TuranskiyCPA previously stripped ALL response headers from upstream AI provider APIs, preventing clients from seeing rate-limit info, request IDs, server-timing and other useful headers. Changes: - Add Headers field to Response and StreamResult structs - Add FilterUpstreamHeaders helper (hop-by-hop + security denylist) - Add WriteUpstreamHeaders helper (respects CPA-set headers) - ExecuteWithAuthManager/ExecuteCountWithAuthManager now return headers - ExecuteStreamWithAuthManager returns headers from initial connection - All 11 provider executors populate Response.Headers - All handler call sites write filtered upstream headers before response Filtered headers (not forwarded): - RFC 7230 hop-by-hop: Connection, Transfer-Encoding, Keep-Alive, etc. - Security: Set-Cookie - CPA-managed: Content-Length, Content-Encoding409fbf7
-
refactor(translator, executor): remove redundant `bytes.Clone` calls for improved performance
Unverified signature- Replaced all instances of `bytes.Clone` with direct references to enhance efficiency. - Simplified payload handling across executors and translators by eliminating unnecessary data duplication.1b0fbba -
refactor(executor): optimize payload cloning and streamline SDK translator usage
Unverified signature- Replaced unnecessary `bytes.Clone` calls for `opts.OriginalRequest` throughout executors. - Introduced intermediate variable `originalPayloadSource` to simplify payload processing. - Ensured better clarity and structure in request translation logic.c702df8 -
refactor(util, executor): optimize payload handling and schema processing
Unverified signature- Replaced repetitive string operations with a centralized `escapeGJSONPathKey` function. - Streamlined handling of JSON schema cleaning for Gemini and Antigravity requests. - Improved payload management by transitioning from byte slices to strings for processing. - Removed unnecessary cloning of byte slices in several places.45239da
-
Merge pull request #1248 from shekohex/feat/responses-compact
Unverified signaturefeat(openai): add responses/compact supportd7805f3
-
feat(openai): add responses/compact support
Shady KhalifaUnverified signature8f7449a -
feat(auth): add support for request_retry and disable_cooling overrides
Unverified signatureImplement `request_retry` and `disable_cooling` metadata overrides for authentication management. Update retry and cooling logic accordingly across `Manager`, Antigravity executor, and file synthesizer. Add tests to validate new behaviors.0144e53
-
refactor(runtime): implement retry logic for Antigravity executor with improved error handling and capacity management
Unverified signature7e8d524
-
Merge pull request #1132 from XYenon/fix/gemini-models-displayname-override
Unverified signaturefix(gemini): preserve displayName and description in models list0b4b8da
-
feat(executor): apply payload rules using requested model
hkfires69a5340
-
fix(executor): adjust model-specific request payload
hkfires8e59c60 -
refactor(util): reorder gemini schema cleaner helpers
hkfires0a664c5
-
Fix Gemini function-calling INVALID_ARGUMENT by relaxing Gemini tool validation and cleaning schema
sowar1987351d5f0 -
fix(gemini): preserve displayName and description in models list
XYenonPreviously GeminiModels handler unconditionally overwrote displayName and description with the model name, losing the original values defined in model definitions (e.g., 'Gemini 3 Pro Preview'). Now only set these fields as fallback when they are missing or empty.fea5337 -
fix(executor): only strip maxOutputTokens for non-claude models
hkfiresa18a371
-
Fix antigravity malformed_function_call
bexcodex5f3b36c -
feat(registry): support provider-specific model info lookup
hkfires4771da8
-
fix(executor): stop rewriting thinkingLevel for gemini
hkfiresaeb8420 -
feat(registry): expand antigravity model config
hkfiresRemove static Name mapping and add entries for claude-sonnet-4-5, tab_flash_lite_preview, and gpt-oss-120b-medium configs02fbf2b
-
refactor(thinking): pass source and target formats to ApplyThinking for cross-format validation
hkfiresUpdate ApplyThinking signature to accept fromFormat and toFormat parameters instead of a single provider string. This enables: - Proper level-to-budget conversion when source is level-based (openai/codex) and target is budget-based (gemini/claude) - Strict budget range validation when source and target formats match - Level clamping to nearest supported level for cross-format requests - Format alias resolution in SDK translator registry for codex/openai-response Also adds ErrBudgetOutOfRange error code and improves iflow config extraction to fall back to openai format when iflow-specific config is not present.4072514
-
feat(runtime): add model alias support and enhance payload rule matching
Unverified signature- Introduced `payloadModelAliases` and `payloadModelCandidates` functions to support model aliases for improved flexibility. - Updated rule matching logic to handle multiple model candidates. - Refactored variable naming in executor to improve code clarity and consistency.edada39 -
feat(config): supplement missing default aliases during antigravity migration
hkfiresca79075
-
Merge pull request #1033 from router-for-me/reasoning
Unverified signatureRefactor thinking3520e81 -
refactor(thinking): extract antigravity logic into a dedicated provider
hkfiresc549b59 -
refactor(auth): simplify file handling logic and remove redundant comparison functions
Unverified signaturefeat(auth): fetch and update Antigravity project ID from metadata during filestore operations - Added support to retrieve and update `project_id` using the access token if missing in metadata. - Integrated HTTP client to fetch project ID dynamically. - Enhanced metadata persistence logic.4681d64 -
refactor(thinking): improve budget clamping and logging with provider/model context
hkfiresd15e4d4
-
fix(thinking): map reasoning_effort to thinkingConfig
hkfires44c95c2 -
fix(thinking): improve model lookup and validation
hkfires8ce90bc -
refactor(antigravity): remove hardcoded model aliases
hkfires0661552 -
fix(executor): properly handle thinking application errors
hkfirese934726 -
refactor: improve thinking logic
hkfiresee9e572
-
feat(executor): add HttpRequest support across executors for better http request handling
Unverified signaturea64baa3
-
fix(executor): handle context cancellation and deadline errors explicitly
Unverified signaturee7d2c44
-
Merge pull request #787 from sususu98/fix/antigravity-429-retry-delay-parsing
Unverified signaturefix(antigravity): parse retry-after delay from 429 response bodyc48b3b7 -
feat(executor): centralize systemInstruction handling for Claude and Gemini-3-Pro models
Unverified signature993d71e -
fix(executor): update gemini model identifier to gemini-3-pro-preview
hkfiresUpdate the model name check in `buildRequest` to target "gemini-3-pro-preview" instead of "gemini-3-pro" when applying specific system instruction handling.f8a2b48 -
feat(executor): update system instruction handling for Claude and Gemini-3-Pro models
Unverified signature450f409 -
feat(executor): add model-specific support for "gemini-3-pro" in execution and payload handling
Unverified signature9c76ae8 -
feat(executor): enhance Antigravity payload with user role and dynamic system instructions
Unverified signature85a84b1
-
fix(executor): remove unused `tokenRefreshTimeout` constant and pass zero timeout to HTTP client
Unverified signatured7e3e91
-
feat(executor): add token refresh timeout and improve context handling during refresh
Unverified signatureIntroduced `tokenRefreshTimeout` constant for token refresh operations and enhanced context propagation for `refreshToken` by embedding roundtrip information if available. Adjusted `refreshAuth` to ensure default context initialization and handle cancellation errors appropriately.31d9182
-
feat(executor): enhance payload translation with original request context
Unverified signatureRefactored `applyPayloadConfig` to `applyPayloadConfigWithRoot`, adding support for default rule validation against the original payload when available. Updated all executors to use `applyPayloadConfigWithRoot` and incorporate an optional original request payload for translations.ae057e3
-
fix(thinking): fallback to upstream model for thinking support when alias not in registry
hkfirescc7e585 -
fix(thinking): use model alias for thinking config resolution in mapped models
hkfiresd57c140
-
refactor(executor): resolve upstream model at conductor level before execution
hkfiresc37b7ba -
fix(executor): use upstream model for thinking config and payload translation
hkfires7559da4 -
fix(antigravity): parse retry-after delay from 429 response body
sususuWhen receiving HTTP 429 (Too Many Requests) responses, parse the retry delay from the response body using parseRetryDelay and populate the statusErr.retryAfter field. This allows upstream callers to respect the server's requested retry timing. Applied to all error paths in Execute, executeClaudeNonStream, ExecuteStream, CountTokens, and refreshToken functions.9433db3 -
feat(cliproxy): introduce global model name mappings for improved aliasing and routing
Unverified signaturee5e9477
-
Merge branch 'dev' into fix/antigravity-prompt-caching
Unverified signature302b826