Files
yetone 67fb12584a antigravity 0.2.4: a reply names the id it went out under (x-magpie-sent-model)
daoche_wuzui on X asked how to tell whether a request was routed to a
model with a suffix. The plugin sends a family (gemini-3.7-flash) as the
variant the effort picks from the account's list (gemini-3.7-flash-high),
and nothing told magpie which. complete()'s replies now carry
x-magpie-sent-model with that id, on the stream, the whole reply and a
failed reply passed through. magpie keeps it in its ledger and shows it
on Usage › Requests and the Routing page (yetone/magpie, same day), and
takes the header off before the agent. OpenCode ignores it.

Run (mote, HOME=$(mktemp -d)) at this tree: bun test packages/antigravity
136 pass, 0 fail; bun scripts/check.mjs ok.
Broken by hand: 0.2.3's index.mjs with the new test: requests.test.mjs
31 pass, 1 fail (the new test).
Not tried: a real account. The change adds one response header and sends
Google nothing new.
2026-11-19 13:08:52 +08:00

13 lines
631 B
JSON

{
"name": "@magpie-community/opencode-antigravity-auth",
"version": "0.2.4",
"description": "Sign in to Antigravity with a Google account from OpenCode or magpie: Gemini, and the Claude and GPT-OSS models Google hosts for it",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "antigravity", "gemini"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/antigravity" }
}