Skip to content

Add antigravity config alias for Gemini API proxy targets#3820

Merged
lpcox merged 3 commits into
mainfrom
copilot/add-antigravity-config
May 26, 2026
Merged

Add antigravity config alias for Gemini API proxy targets#3820
lpcox merged 3 commits into
mainfrom
copilot/add-antigravity-config

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 26, 2026

This change adds antigravity config 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

    • Accept apiProxy.targets.antigravity in AWF config files
    • Map antigravity.host / antigravity.basePath onto the existing Gemini target/base-path runtime fields
    • Prefer antigravity when both antigravity and gemini are present in config
  • Schema + spec

    • Extend the published config schemas to include apiProxy.targets.antigravity
    • Document the alias in the config spec so editor/schema-driven autocomplete and validation stay aligned
  • Regression coverage

    • Add validation coverage for apiProxy.targets.antigravity
    • Add mapping coverage to confirm the alias resolves to the existing Gemini runtime options

Example:

apiProxy:
  targets:
    antigravity:
      host: gateway.google.com
      basePath: /v1alpha

This is treated the same as the existing Gemini target config at runtime.

Copilot AI linked an issue May 26, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add antigravity config to avoid confusion with Gemini Add antigravity config alias for Gemini API proxy targets May 26, 2026
Copilot AI requested a review from lpcox May 26, 2026 00:11
Copilot finished work on behalf of lpcox May 26, 2026 00:11
@lpcox lpcox marked this pull request as ready for review May 26, 2026 00:44
Copilot AI review requested due to automatic review settings May 26, 2026 00:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 38870fa

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 96.54% 96.59% 📈 +0.05%
Statements 96.38% 96.43% 📈 +0.05%
Functions 97.99% 97.99% ➡️ +0.00%
Branches 90.78% 90.84% 📈 +0.06%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/config-file.ts 100.0% → 100.0% (+0.00%) 98.0% → 98.1% (+0.08%)
src/config-writer.ts 89.3% → 90.9% (+1.65%) 89.3% → 90.9% (+1.65%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.antigravity to the config surface and map it onto the existing geminiApiTarget / geminiApiBasePath runtime options (preferring antigravity over gemini when both are present).
  • Extend the published JSON schemas to include the new antigravity target.
  • 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

Comment thread src/config-file.ts Outdated
Comment on lines +187 to +188
geminiApiTarget: geminiTargetConfig?.host,
geminiApiBasePath: geminiTargetConfig?.basePath,
Comment thread docs/awf-config-spec.md Outdated
Comment on lines +121 to +125
@@ -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`
Comment thread scripts/generate-schema.mjs Outdated
Comment on lines +173 to +180
@@ -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).',
},
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@lpcox
Copy link
Copy Markdown
Collaborator

lpcox commented May 26, 2026

@copilot adddress review feedback

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 26, 2026

@copilot adddress review feedback

Addressed in 8ec7819.

Copilot finished work on behalf of lpcox May 26, 2026 01:20
@github-actions
Copy link
Copy Markdown
Contributor

Smoke Test: Claude Engine

  • ✅ GitHub API: 2 recent PR entries found
  • ✅ GitHub check: playwright_check PASS
  • ✅ File verify: smoke-test-claude-26426825373.txt exists

Total: PASS

💥 [THE END] — Illustrated by Smoke Claude

@github-actions
Copy link
Copy Markdown
Contributor

🔥 Smoke Test: Copilot BYOK (Offline) Mode

Test Result
GitHub MCP (list PRs)
GitHub.com connectivity (HTTP 200)
File write/read
BYOK inference (this response)

Running in BYOK offline mode (COPILOT_OFFLINE=true) via api-proxy → api.githubcopilot.com

PR by @Copilot · Assignees: @lpcox, @Copilot · Overall: PASS

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions
Copy link
Copy Markdown
Contributor

🔬 Smoke Test Results

Test Status
GitHub MCP (list_pull_requests)
GitHub.com connectivity (HTTP 200)
File write/read (smoke.txt)

PR: Add antigravity config alias for Gemini API proxy targets
Author: @Copilot | Assignees: @lpcox, @Copilot

Overall: PASS

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

  • Add antigravity config alias for Gemini API proxy targets ✅
  • Refactor host-access port spec parsing to remove duplicate logic ✅
  • fix(api-proxy): prevent stream_options injection into OpenAI Responses API requests ✅
  • PASS

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • registry.npmjs.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "registry.npmjs.org"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex

@github-actions
Copy link
Copy Markdown
Contributor

Smoke Test: Gemini Engine Validation. Overall Status: FAIL.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • localhost

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "localhost"

See Network Configuration for more information.

💎 Faceted by Smoke Gemini

@github-actions
Copy link
Copy Markdown
Contributor

Chroot Smoke Test Results

Runtime Host Version Chroot Version Match?
Python Python 3.12.13 Python 3.12.3 ❌ NO
Node.js v24.15.0 v22.22.3 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Overall: ❌ Not all versions match. Python and Node.js versions differ between host and chroot.

Tested by Smoke Chroot

@github-actions
Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia 1/1 passed ✅ PASS
Bun hono 1/1 passed ✅ PASS
C++ fmt N/A ✅ PASS
C++ json N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world N/A ✅ PASS
.NET json-parse N/A ✅ PASS
Go color passed ✅ PASS
Go env passed ✅ PASS
Go uuid passed ✅ PASS
Java gson 1/1 passed ✅ PASS
Java caffeine 1/1 passed ✅ PASS
Node.js clsx passed ✅ PASS
Node.js execa passed ✅ PASS
Node.js p-limit passed ✅ PASS
Rust fd 0 tests (ok) ✅ PASS
Rust zoxide 0 tests (ok) ✅ PASS

Overall: 8/8 ecosystems passed — ✅ PASS

Note (Java): Maven's default local repository (~/.m2/repository) was not writable due to sandbox permissions. Tests passed successfully using -Dmaven.repo.local=/tmp/gh-aw/agent/m2repo.

Generated by Build Test Suite for issue #3820 · sonnet46 1.2M ·

@github-actions
Copy link
Copy Markdown
Contributor

Smoke Test: GitHub Actions Services Connectivity

Check Result
Redis PING ❌ No response (timeout)
PostgreSQL pg_isready no response
PostgreSQL SELECT 1 ❌ No response (timeout)

Overall: FAILhost.docker.internal is not reachable from this environment. Service containers appear unreachable.

🔌 Service connectivity validated by Smoke Services

@lpcox lpcox merged commit bec0761 into main May 26, 2026
64 of 66 checks passed
@lpcox lpcox deleted the copilot/add-antigravity-config branch May 26, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antigravity

3 participants