Skip to content

feat!: remove deprecated google-agy provider - #238

Merged
anthonyhaussman merged 2 commits into
mainfrom
tone/feat/remove-google-agy
Dec 1, 2026
Merged

anthonyhaussman merged 2 commits into
mainfrom
tone/feat/remove-google-agy

Conversation

@anthonyhaussman

Copy link
Copy Markdown
Owner

Description

Provider removal

Remove the deprecated direct Code Assist provider google-agy with its OAuth flow, models.json catalog, request rewriting engine and the agy_quota / agy_quota_summary tools and commands.
The package now ships only google-agy-acp, which drives the local agy CLI and needs no Antigravity OAuth tokens.

Entry point and types

Default-export a new src/acp/plugin.ts that only calls registerAgyAcpProvider, keeping the plugin id google-agy so existing installs keep the same id.
OpenCode v2 contracts and the ACP Terms of Service warning moved into src/acp/, which drops the @opencode-ai/plugin, @ai-sdk/google and @openauthjs/openauth dependencies.
The setupOpenCodeV2 and v2PluginDefinition named exports are removed, so this is a breaking change.

Tests

Delete the old provider tests and the coverage padding files, and add test/acp/plugin.test.ts for the entry point and the warning.
Coverage on the ACP code alone is 97.3% statements, 91.0% branches, 97.8% functions and 99.1% lines, above every threshold.

Documentation

Replace the legacy README sections with an installation section and a migration note covering model prefixes, the provider.google-agy config, the unused auth.json key and quota through anthonyhaussman/opencode-quota#2.
Rewrite AGENTS.md for an ACP-only repository at 84 lines, keeping the ACP gating checks and the antigravity-cli#1684 re-check without the literal trigger string.

Release

release-as is left unchanged, so the version stays matched to agy even though release-please reads feat! as breaking.
A live google-agy-acp prompt through the local build alone (agy 1.5.20, OpenCode 2.4.2) answered with end_turn, and only google-agy-acp models were listed.

Ship only google-agy-acp, which drives the local agy CLI.
The direct Code Assist provider and its quota tools are gone.

BREAKING CHANGE: the google-agy provider, the agy_quota and
agy_quota_summary tools, the /agyquota and /agyquotasummary commands,
and the setupOpenCodeV2 and v2PluginDefinition exports are removed.
Use google-agy-acp models; quota moves to opencode-quota.

Assisted-by: Claude Opus 5.5
Remove the README warning and disclaimer and the startup warning.
The updated Antigravity terms permit wrapping the unmodified harness via ACP.

Assisted-by: Claude Opus 5.5
@anthonyhaussman
anthonyhaussman marked this pull request as ready for review December 1, 2026 17:57
@anthonyhaussman
anthonyhaussman merged commit 6331f63 into main Dec 1, 2026
3 checks passed
@anthonyhaussman
anthonyhaussman deleted the tone/feat/remove-google-agy branch December 1, 2026 17:57
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.

1 participant