Tool steps estimate their cache reads from the last ratio the proc learned, and only a final, uncancelled response taught it, so a cancelled prompt left the next one's tool steps reporting every token as a cache miss. agy reports each prompt's cached reads, so recordPromptUsage now sets the ratio from them. Test: a cancelled prompt (390k of 520k cached) then a tool step reports 0.75. Red with the line off, green with it. Not captured from a real agy: the owner's agy is signed out on this machine and mote was down. A fresh conversation's first prompt still has no ratio until it ends. Ran node --test packages/agy-cli/test (2 reds on base too: cp-hook, version/report hangs), bun test packages/antigravity, scripts/check.mjs.
45 lines
968 B
JSON
45 lines
968 B
JSON
{
|
|
"name": "@magpie-community/opencode-agy-cli-auth",
|
|
"version": "0.1.6",
|
|
"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",
|
|
"usage.mjs",
|
|
"README.md",
|
|
"README.en.md",
|
|
"LICENSE",
|
|
"NOTICE.md"
|
|
],
|
|
"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
|
|
}
|
|
}
|