Add antigravity config alias for Gemini API proxy targets#3820
Conversation
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (2 files)
Coverage comparison generated by |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull request overview
This PR adds an apiProxy.targets.antigravity configuration alias intended to let users configure the Gemini API proxy target using the newer “Antigravity” name, while keeping runtime wiring mapped to the existing Gemini options.
Changes:
- Add
apiProxy.targets.antigravityto the config surface and map it onto the existinggeminiApiTarget/geminiApiBasePathruntime options (preferringantigravityovergeminiwhen both are present). - Extend the published JSON schemas to include the new
antigravitytarget. - Add regression tests for validation acceptance and mapping behavior.
Show a summary per file
| File | Description |
|---|---|
| src/config-file.ts | Adds antigravity target to config typing and maps it to existing Gemini runtime options. |
| src/config-file-validation.test.ts | Adds a validation test for accepting apiProxy.targets.antigravity. |
| src/config-file-mapping.test.ts | Adds mapping tests for antigravity and precedence over gemini. |
| src/awf-config-schema.json | Adds apiProxy.targets.antigravity to the runtime-bundled schema. |
| scripts/generate-schema.mjs | Adds antigravity to the schema generator’s targets list. |
| docs/awf-config.schema.json | Adds apiProxy.targets.antigravity to the published schema. |
| docs/awf-config-spec.md | Documents antigravity.basePath mapping to the Gemini base-path flag. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 7/7 changed files
- Comments generated: 3
| geminiApiTarget: geminiTargetConfig?.host, | ||
| geminiApiBasePath: geminiTargetConfig?.basePath, |
| @@ -122,6 +122,7 @@ the corresponding CLI flag. | |||
| - `apiProxy.targets.openai.basePath` → `--openai-api-base-path` | |||
| - `apiProxy.targets.anthropic.basePath` → `--anthropic-api-base-path` | |||
| - `apiProxy.targets.gemini.basePath` → `--gemini-api-base-path` | |||
| - `apiProxy.targets.antigravity.basePath` → `--gemini-api-base-path` | |||
| @@ -174,6 +174,10 @@ const schemaBody = { | |||
| $ref: '#/$defs/providerTarget', | |||
| description: 'Google Gemini API target override.', | |||
| }, | |||
| antigravity: { | |||
| $ref: '#/$defs/providerTarget', | |||
| description: 'Antigravity API target override (alias of Gemini runtime settings).', | |||
| }, | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@copilot adddress review feedback |
Smoke Test: Claude Engine
Total: PASS
|
🔥 Smoke Test: Copilot BYOK (Offline) Mode
Running in BYOK offline mode ( PR by
|
🔬 Smoke Test Results
PR: Add antigravity config alias for Gemini API proxy targets Overall: PASS ✅
|
This comment has been minimized.
This comment has been minimized.
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Smoke Test: Gemini Engine Validation. Overall Status: FAIL. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Chroot Smoke Test Results
Overall: ❌ Not all versions match. Python and Node.js versions differ between host and chroot.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL —
|
This change adds
antigravityconfig support to the AWF config surface so users can configure Antigravity without having to reason about legacy Gemini naming. The new config shape resolves to the existing Gemini runtime wiring, keeping behavior unchanged outside config naming.Config alias
apiProxy.targets.antigravityin AWF config filesantigravity.host/antigravity.basePathonto the existing Gemini target/base-path runtime fieldsantigravitywhen bothantigravityandgeminiare present in configSchema + spec
apiProxy.targets.antigravityRegression coverage
apiProxy.targets.antigravityExample:
This is treated the same as the existing Gemini target config at runtime.