#1058: in one Claude Code conversation every request started a new agy conversation, so Gemini 4 Carbon's cache read stayed at 0. The bridge reuses a live session only when the conversation key, work dir, instructions and history all match, and nothing said which one failed. acquireProcLocked now writes one content-free stderr row per new session ("[agy-bridge] {event: agy_bridge_session, action: session_new, reason, conv, fresh, resumed, parked, history}"). reason is no_live (no session under this conversation key), or for a live one that was dropped: forced, dead, retiring, work_dir, instructions, history or fresh_after_first. conv is the key's 12-char digest, so a key that changes per request shows as a new conv each time. The rows have their own 30/min budget, so they never crowd out the tool-state rows. magpie writes plugin stderr into its log, so the reporter can send them. Run (on a separate test Mac, temp HOME): bun scripts/check.mjs agy-cli ok; packages/agy-cli bun test ./agy-cli.test.mjs 14 pass 0 fail; test/repeat-batch.mjs 20 pass, test/conversation-key.mjs 31 pass. Broken by hand: with the logSessionEvent call disabled, the new #1058 test fails. Not tried: a real agy, or the reporter's Claude Code requests. This does not fix the cache miss; it finds which check misses. Reported-by: chrisjian
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-agy-cli-auth",
|
|
"version": "0.1.30",
|
|
"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
|
|
}
|
|
}
|