eric_li8983's 429 RESOURCE_EXHAUSTED after 0.1.3 was not quota. On the owner's real Antigravity account (plenty of quota; "hi" with no system prompt gives 200 on gemini-3.8-flash, claude-sonnet-4-6, gemini-3-flash), oh-my-pi's real system prompt (captured from omp 's request to a local server, 10.5KB) got 429 on all three. Bisected by hand: the sentence "RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL." alone gets 429; its halves, the list without the final period, or "2120" for "2119" get 200; the prompt without that line gets 200. Broken with a zero-width space after the first and second character of each word, the whole prompt gets 200 on the same three models. The line is added to antigravity's TURNED_AWAY (with its own hint when the cloak missed a reworded copy) and to antigravity-cloak's words. Run: bun test packages/antigravity packages/antigravity-cloak on magpie-desktop (wsl-run, HOME temp): 86 pass. Broken by hand (the TURNED_AWAY entry removed): the new shape test and the 429 hint test go red, 2 fail. Real account: omp's full prompt 200 on 3 models after, 429 before. Not tried: omp's own run through magpie end to end (the user's AGENTS.md and tools were not in the captured prompt); other omp prompt lines after the cloak. Real quota 429s and the credits path are unchanged.
15 lines
706 B
JSON
15 lines
706 B
JSON
{
|
|
"name": "@magpie-community/middleware-antigravity-cloak",
|
|
"version": "0.1.4",
|
|
"description": "magpie gateway middleware: Antigravity stops turning Claude Code's and the Claude Agent SDK's system prompts away, and no other provider's request is changed",
|
|
"type": "module",
|
|
"files": ["antigravity-cloak.middleware.js", "README.md"],
|
|
"keywords": ["magpie", "magpie-middleware", "antigravity", "claude-code", "llm-gateway"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/antigravity-cloak" },
|
|
"magpie": {
|
|
"middleware": "./antigravity-cloak.middleware.js",
|
|
"options": { "extraWords": [] }
|
|
}
|
|
}
|