You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): delegate Antigravity updates to its native updater - #22268
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.
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.
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
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.
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.
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: 6
Check name
Status
Explanation
Title check
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
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
[#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
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
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
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:
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, ... }).
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.
Report when the CLI is missing. When findOnPath returns nothing, the command writes a not-found message to stderr and sets process.exitCode = 1.
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
omniroute runtime update-agyas an explicit terminal command for an installed official Antigravity CLI.agyon PATH and pass the fixedupdateargument directly. Relay the native updater's output and status.Related Issues
Closes #22267. The dashboard runtime manager has its separate tracker in #20910.
Target Branch
release/v3.8.56Validation
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.
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.tsCoverage 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