Skip to content

feat(cli): delegate Antigravity updates to its native updater - #22268

Open
KiaroSama wants to merge 2 commits into
cheaper-inference:release/v3.8.56from
KiaroSama:feat/agy-native-update
Open

KiaroSama wants to merge 2 commits into
cheaper-inference:release/v3.8.56from
KiaroSama:feat/agy-native-update

Conversation

@KiaroSama

Copy link
Copy Markdown
Contributor

Summary

  • Add omniroute runtime update-agy as an explicit terminal command for an installed official Antigravity CLI.
  • Resolve agy on PATH and pass the fixed update argument directly. Relay the native updater's output and status.
  • Pass standard proxy settings from the invoking terminal. Keep server environment settings out of the updater process.

Related Issues

Closes #22267. The dashboard runtime manager has its separate tracker in #20910.

Target Branch

release/v3.8.56

Validation

The installed OmniRoute CLI entry point located a checksum-verified official Linux x64 Antigravity CLI from a path containing spaces and used its updater to move from 1.5.24 to 1.5.25 in a disposable profile.

agy before: 1.5.24
Verification successful
Update successful
agy after: 1.5.25
Focused assertions: 44 passed, 0 failed

The terminal fixture verifies one invocation, proxy propagation, environment isolation and exit status. Missing-binary, help and ordinary startup cases are covered. Scoped lint, formatting, changelog integrity and repository hooks passed.

Tests Added Or Updated

  • tests/unit/cli-runtime.test.ts

Coverage Notes

The actual vendor update ran on Linux x64. Windows executable resolution is covered by the command's platform handling and still needs a native Windows smoke test.

Official Antigravity CLI reference

@mergify

mergify Bot commented Dec 5, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added omniroute runtime update-agy to update an installed Antigravity CLI using its native updater. The command finds agy on your system PATH, forwards available proxy settings, and reports when the executable can’t be found or started.
    • The command returns the updater’s exit status, so you can tell whether the update succeeded.
  • Documentation
    • Added setup guidance, including how to check the installed version, network and permission requirements, and restarting running Antigravity sessions after an update.

The CLI now provides omniroute runtime update-agy. It locates the installed agy executable, runs its update operation, and handles missing executables and process results. The CLI captures operator proxy settings before loading .env files and passes them to the updater.

Changes: Antigravity CLI update

Layer / File(s) Summary
Capture and pass operator proxy settings
bin/omniroute.mjs, bin/cli/program.mjs, bin/cli/commands/registry.mjs
The CLI captures HTTP, HTTPS, and no-proxy variables before loading .env files. It passes the captured values through program and command registration.
Register and execute the native updater
bin/cli/commands/runtime.mjs, tests/unit/cli-runtime.test.ts, changelog.d/features/agy-native-update.md, docs/guides/CLI-INTEGRATIONS.md
The runtime update-agy command locates agy on PATH and runs agy update without a shell. It reports missing executables and process-start errors, and sets the exit code from the child status or to 1 on failure. Tests cover invocation, proxy forwarding, errors, exit status, and help output. The changelog and guide document the command and its use.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related issues

  • cheaper-inference/OmniRoute issue 17270 requests Antigravity CLI support. This change adds a terminal command for updating the installed Antigravity CLI, which is within that broader integration area.
Merge Risk: Minimal · previous review f70c3

The new command runs the installed Antigravity updater, passes the invoking terminal's proxy settings, and relays its exit status. No merge-blocking risk was identified.

Pre-merge checks: Passed 6

Check name Status Explanation
Title check Passed The title follows the Conventional Commits format with type feat and scope cli. It states the main change: the command delegates Antigravity updates to the CLI's native updater, which matches the runt…
Description check Passed The description follows the template's Summary and Related Issues sections, and it includes a Target Branch, Validation, Tests Added Or Updated, and Coverage Notes. It lists the changed test file and …
Linked Issues check Passed [#22267] The only directly linked issue is open and has coding requirements. The head implements each one:

1. Locate agy on PATH and pass the fixed update argument. bin/cli/commands/runtime.mjs…
Out of Scope Changes check Passed Each changed file supports the #22267 objective:

- bin/cli/commands/runtime.mjs: adds the update-agy command and its execution helper.
- bin/cli/commands/registry.mjs and bin/cli/program.mjs:…
Tests For Production Code Passed The custom check requires tests when production code under src/, open-sse/, electron/ or bin/ changes. This PR (#22268, head feat/agy-native-update, base release/v3.8.56) changes production code under…
No Ai Attribution Passed The check looks for a Co-Authored-By trailer naming an AI assistant or bot, or a "Generated with " footer, in the commits or PR body. - Commits: the reviewed range (refs/coderabbit/pre-merge-…
Full details: Title check

Explanation

The title follows the Conventional Commits format with type feat and scope cli. It states the main change: the command delegates Antigravity updates to the CLI's native updater, which matches the runtime update-agy command in the changeset.

Full details: Description check

Explanation

The description follows the template's Summary and Related Issues sections, and it includes a Target Branch, Validation, Tests Added Or Updated, and Coverage Notes. It lists the changed test file and explains the Windows coverage gap. It omits the Reviewer Notes section and leaves the Target Branch checklist unticked. It also does not state the change type checkbox or confirm the lint checkbox, though it reports that lint passed in the Validation text.

Resolution

Optionally add a Reviewer Notes section, tick the Target Branch and Validation checklist items, and select the change type (CLI).

Full details: Linked Issues check

Explanation

[#22267] The only directly linked issue is open and has coding requirements. The head implements each one:

  1. Locate agy on PATH and pass the fixed update argument. bin/cli/commands/runtime.mjs registers runtime update-agy. It resolves agy (or agy.exe on Windows) with findOnPath and runs spawnSync(resolve(binary), ["update"], { shell: false, ... }).
  2. Relay output and exit status. The child uses stdio: ["ignore", "inherit", "inherit"], so the updater output reaches the terminal. process.exitCode = status ?? 1 relays the exit status. Spawn errors and signals are reported on stderr.
  3. Report when the CLI is missing. When findOnPath returns nothing, the command writes a not-found message to stderr and sets process.exitCode = 1.
  4. Test the real entry point. tests/unit/cli-runtime.test.ts covers one invocation, proxy forwarding, omission of OMNIROUTE_API_KEY, missing executable, start errors, exit-status propagation, and help without execution. The PR also reports a real Linux x64 update from 1.5.24 to 1.5.25 through the installed entry point. The action runs only when the subcommand is invoked, so help and ordinary startup do not run the updater.

The dashboard runtime manager (#20910) is excluded from this requirement, as the issue states. No parent issue applies. The Windows native smoke test named in the PR description is a manual check, not a coding requirement of #22267.

Full details: Out of Scope Changes check

Explanation

Each changed file supports the #22267 objective:

  • bin/cli/commands/runtime.mjs: adds the update-agy command and its execution helper.
  • bin/cli/commands/registry.mjs and bin/cli/program.mjs: pass operatorProxyEnv through to registerRuntime. This plumbing is required by the proxy-forwarding behavior.
  • bin/omniroute.mjs: captures the uppercase and lowercase proxy variables before .env loading. This keeps server .env values out of the updater environment, as the PR states.
  • tests/unit/cli-runtime.test.ts: tests for the new command.
  • docs/guides/CLI-INTEGRATIONS.md and changelog.d/features/agy-native-update.md: documentation of the command.

No dashboard runtime manager change or unrelated feature appears in the reviewed summary. The changes do not show unrelated behavior.

Full details: Tests For Production Code

Explanation

The custom check requires tests when production code under src/, open-sse/, electron/ or bin/ changes. This PR (#22268, head feat/agy-native-update, base release/v3.8.56) changes production code under bin/: bin/cli/commands/registry.mjs, bin/cli/commands/runtime.mjs, bin/cli/program.mjs and bin/omniroute.mjs (git diff --name-status against the review base). The same PR updates tests/unit/cli-runtime.test.ts (+93 lines in the diff stat). The new tests cover the update-agy delegation to the agy executable, the single invocation with shell:false, the proxy-only environment forwarding, the omitted OMNIROUTE_API_KEY, and the missing-executable path. The requirement is therefore met. I did not check AGENTS.md itself, so the check is judged on its stated condition only.

Full details: No Ai Attribution

Explanation

The check looks for a Co-Authored-By trailer naming an AI assistant or bot, or a "Generated with <AI tool>" footer, in the commits or PR body. - Commits: the reviewed range (refs/coderabbit/pre-merge-check/base..head) has one commit, f70c3a2, authored by Kiaro Sama. Its full message is only the subject "feat(cli): delegate Antigravity updates to its native updater". It has no trailers. - Keyword scan: a case-insensitive search of all commit messages in the range for "co-authored", "generated with", and common AI or bot names found no matches. - PR body: the contributor's description has Summary, Related Issues, Target Branch, Validation, Tests Added Or Updated, and Coverage Notes sections. It has no AI attribution or "Generated with" footer. - Primary PR author (provider-reported): KiaroSama, verified. This does not affect the verdict. No AI attribution was found, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4d428db and f70c3a2.

Files selected for processing: 7

  • bin/cli/commands/registry.mjs
  • bin/cli/commands/runtime.mjs
  • bin/cli/program.mjs
  • bin/omniroute.mjs
  • changelog.d/features/agy-native-update.md
  • docs/guides/CLI-INTEGRATIONS.md
  • tests/unit/cli-runtime.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Recognize the native command before server bootstrap and preserve the terminal proxy settings. Localize wrapper text while passing the native process output and status through.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the official Antigravity CLI update as an explicit terminal command

1 participant