What: buildKiro read a tool_result's content for its text alone, so an image a tool returned (Codex's view_image, a computer-use screenshot, Claude Code's Read of a PNG) never reached Kiro: the model got "(no output)" and said it saw nothing. Its image blocks (base64) now go with the message that answers the call, beside any image the user sent, as magpie's built-in has sent them since yetone/magpie#369. Kiro's tool results hold text alone. The "only the latest images" rule is unchanged; an image named only by a URL still has no bytes to send and is left out. Why: simonsmh reported Codex's view_image unreadable through Kiro on magpie v0.1.1215 (#1861). A moved Kiro is served by this plugin, which never got #369's fix. Run: HOME=<scratch> TMPDIR=<scratch> bun test (1152 pass, 0 fail) and bun scripts/check.mjs. tool-images.test.mjs's fixture is the Anthropic body magpie's gateway hands the plugin for Codex 0.162's view_image output ([{"type":"input_image","image_url":"data:...","detail":"high"}]), dumped from magpie's buildAnthropic; 3 of its 4 tests fail on 0.1.8. Not tried against a real Kiro account (none signed in here); #369 checked the same body shape on the built-in against a real account.
13 lines
486 B
JSON
13 lines
486 B
JSON
{
|
|
"name": "@magpie-community/opencode-kiro-auth",
|
|
"version": "0.1.9",
|
|
"description": "Kiro subscriptions (Free, Pro, Pro+, Power) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "kiro"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/kiro" }
|
|
}
|