76cfb7fe869ea2cc7147b2d8aefd33f1b4c4a8d8
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
00892c80e3 |
agy-cli 0.1.33: DSH's @-path paragraph goes reworded, as antigravity sends it (#1028) (LeeTengLong on X)
agy-cli's cloak.mjs copied only antigravity's TURNED_AWAY break-up (#980), not the REWORDED rewrite antigravity 0.1.7 added for #1028, so DeepSeek Harness's "Tokens prefixed with @ are paths…" paragraph reached agy word for word, the text that got gemini-4-argon answering fast, without thinking and shallow. cloak.mjs now carries REWORDED, reword and outgoing (reword after cloak), a copy of antigravity/index.mjs's, and every place agy-cli hands system text to agy uses outgoing: the session's systemPrompt.append, <external_system_instructions>, a later system/developer message and the notices beside a tool result. Only that exact paragraph changes; a prompt that merely mentions @ paths, and what the user wrote, go as written. instructionsIdentity still keys on the prompt as the client wrote it. The packages ship on their own, so the code is a copy; cloak.test.mjs holds it to antigravity's shape() output for each REWORDED entry and the samples. Run on mote (Bun 1.4.2, temp HOME): bun test packages/agy-cli packages/antigravity 118 pass 0 fail; bun scripts/check.mjs exit 0. Broken by hand: outgoing without reword turns 3 tests red (cloak.test.mjs 2, and smoke.mjs's #1028 session, external_system_instructions and later system message checks). Not tried: a real agy with a real Antigravity account and DSH; the rewording's effect rests on #1028's replays. No magpie min names agy-cli. Reported-by: LeeTengLong |
||
|
|
9ec696258d |
agy-cli 0.1.18: turned-away system lines are broken up before agy sends them, and a 429 to one is not a quota (#980)
Antigravity answers 429 "Resource has been exhausted" to a few system prompt lines whatever quota is left (Claude Code's billing line, the Claude Agent SDK, Codex's and Hermes Agent's identities, oh-my-pi's RFC 2119 line). The antigravity provider breaks them up with zero-width spaces (TURNED_AWAY / breakUp / cloak); agy-cli sent the client's system prompt to agy as written, and called the 429 an exhausted quota (rate_limit_error), so a client or routing group retried a prompt that fails every time. - cloak.mjs is a copy of antigravity's TURNED_AWAY, cloak and hint (the two-zero-width-space break-up of 11-11). Each package ships on its own, so cloak.test.mjs imports packages/antigravity's _internal and fails when the two give a different answer for any line or sample. - Every route the system text reaches agy is cloaked: the session's systemPrompt.append (session/new and session/resume), <external_system_instructions> when agy can't append, a later system or developer message in the turn or the replayed history (renderTurnMessageParts), and a system/developer notice delivered beside a tool result (extractToolResults). - What the bridge keys and hashes on is unchanged: proc.instructions, sameInstructions, instructionsIdentity, stripVolatileSystem and the session store keep the prompt as the client wrote it; cloak is applied only where the text is sent. User text is not touched. - #formatAgentError: a "code 429 ... Resource has been exhausted" with a turned-away line in the session's instructions is an invalid_request_error, "Antigravity answered 429 to this system prompt: <detail> — <hint>", with the antigravity provider's hint. Any other 429 stays rate_limit_error. - READMEs (en, zh) say so under the minimal-agent section. Run (wsl-run, magpie-desktop, HOME=$(mktemp -d), at |