When the model's first call returns neither text nor tool calls, agy writes "\n⚠ Model produced invalid output." into the reply and calls the model again in the same turn. The bridge passed that banner on as the reply's text, so Claude Code's prompt_suggestion took it as the suggestion. Turn.pushText now drops the banner, with its leading newline and one trailing newline, wherever it starts a line. A banner that ends a chunk is held, so a newline in the next chunk goes with it, and it is dropped for good when the text is flushed. The turn goes on: unlike agy's error marker, it does not fail the prompt. The model quoting it mid-line keeps it. Run on WSL (Bun, temp HOME): - packages/agy-cli: bun test, 21 pass / 0 fail (repeat-batch 30 pass). - bun scripts/check.mjs agy-cli: ok. - Broken by hand: on the old index.mjs the new #1124 banner test is red. Not tried: a real agy 1.5.8 empty-output retry; the banner bytes come from the reporter's gateway log, and both with and without a trailing newline are covered.
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-agy-cli-auth",
|
|
"version": "0.1.42",
|
|
"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",
|
|
"signin.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
|
|
}
|
|
}
|