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
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-agy-cli-auth",
|
|
"version": "0.1.33",
|
|
"description": "Magpie/OpenCode model provider that connects your local agy CLI through the Agent Client Protocol (agy acp), so Antigravity subscription models run through the real CLI",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": {
|
|
".": "./opencode2.mjs"
|
|
},
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"platform.mjs",
|
|
"login.mjs",
|
|
"mcp-server.mjs",
|
|
"step-usage.mjs",
|
|
"tool-schema.mjs",
|
|
"usage.mjs",
|
|
"README.md",
|
|
"README.en.md",
|
|
"LICENSE",
|
|
"NOTICE.md",
|
|
"re2-pattern.mjs",
|
|
"array-items.mjs",
|
|
"cloak.mjs"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-plugin",
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"antigravity",
|
|
"agy",
|
|
"acp"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/agy-cli"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test"
|
|
},
|
|
"magpie": {
|
|
"maxConcurrency": 16
|
|
}
|
|
}
|