Files
plugins/packages/agy-cli/package.json
T
yetone 18ce00e4ce agy-cli 0.1.17: a steer keeps the live agy session, so its prompt cache holds (ChrisJ_AI on X)
Reported by ChrisJ_AI on X: after 0.1.12, most turns show a normal cache
ratio, but a steer / interrupt still reads 0% (303K input, 0% in his
screenshot; agy's own session rows for the replay read 193K and 65.8K at
0% too, then 99% again).

Cause: a user steer (text or an image beside a live tool_result, a rejected
tool, a hook line) stopped the live agy session and replayed the round in a
new session/new. A new session has no cache, so agy itself reported 0%.

Now the bridge answers the pending MCP calls with the real results, cancels
the step agy was starting, and sends only the steer as the next prompt of
the same session (the answered tool results are not sent a second time).
Falls back to the old replay when the session or history differs, tools
grew, a result carries an image, a call is still unanswered, or the cancel
does not settle.

Run (WSL2 Ubuntu 24.04, Bun 1.4.2): bun test packages/agy-cli 11 of 11,
smoke.mjs ALL OK; bun scripts/check.mjs agy-cli ok. smoke.mjs now asserts
no new session/new (same convId, same init count), the steer text in the
next prompt and the real result delivered to the MCP call, for the Esc,
queued_command, standalone follow-up, text before/after the result, image,
rejected tool, Skill and queued-suffix cases. Broken by hand: the same
smoke.mjs against origin/main's index.mjs: 12 failures, all of those.
Not tried: a real agy (signed out on this machine and in magpie's account
store), so Google's cache after a steer is not measured; Windows (smoke
is red there, #973); macOS.
2026-11-11 15:10:23 +08:00

47 lines
1015 B
JSON

{
"name": "@magpie-community/opencode-agy-cli-auth",
"version": "0.1.17",
"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",
"re2-pattern.mjs",
"array-items.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
}
}