Files
plugins/packages/agy-cli/package.json
T
yetone 3d9ac97f91 agy-cli 0.1.74: a turn the conversation went on without is replayed at once, not after two 409s (#1051)
NieiR's logs on #1051 (agy-cli 0.1.69, agy 1.5.9, OpenCode through a
routing group of google, devin, neko and agy-cli): agy-cli left a turn
detached with 5 pending calls at 13:51:47, the group served the next 16
requests on google and neko, and at 14:07:36 google's 429 failed back
to agy-cli with google's own tool round at the tail. None of those ids
were agy's, the held turn was neither stale nor expired, so the request
got 409 "no active MCP call matches these tool results" twice and was
replayed only at the third try (NO_PROGRESS_REPEAT_LIMIT).

movedOnVerdict counts such a turn as stale ("moved_on") on the first
request: its calls are pending, at least one of its calls is in the
client's history, and after the last of them comes an assistant tool
round whose ids don't have the bridge's shape (toolu_ + 24 hex). It is
asked in the unmatched-results path and again under the lock in
recoverStaleTurn, so the reclaim and replay are the existing ones.

Left as before: a sibling request that only leaves the turn's calls out
(a side request, a compaction fork) still gets 409 and needs three, as
smoke.mjs's "unmatched results alone cannot supersede" and A7 check; a
later round with ids of the bridge's shape is not taken as moving on.

Run (mote, HOME=$(mktemp -d)):
- packages/agy-cli bun test (all suites, smoke included): 36 pass,
  0 fail; repeat-batch.mjs alone: 48 pass.
- bun scripts/check.mjs agy-cli: ok.

Broken by hand: origin/main's index.mjs with the new tests: the moved-on
request answers 409 (the first new test fails); the own-shape test
passes on both.

Not tried: a real routing group failing over to real agy.
2026-11-16 13:37:11 +08:00

59 lines
1.2 KiB
JSON

{
"name": "@magpie-community/opencode-agy-cli-auth",
"version": "0.1.74",
"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": [
"proc.mjs",
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"platform.mjs",
"install.mjs",
"login.mjs",
"mcp-server.mjs",
"step-usage.mjs",
"tool-schema.mjs", "tool-budget.mjs",
"usage.mjs",
"model-ids.mjs",
"signin.mjs",
"account.mjs",
"import.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"
},
"engines": {
"magpie": ">=0.1.4246"
},
"magpie": {
"maxConcurrency": 16
}
}