openpencil/packages/core/tests/tools
Danila Poyarkov 31e2e84b08
fix(core): send image tool results in the AI SDK's file shape (#857)
AI SDK 7 has no 'media' tool output part; images are { type: 'file', mediaType, data: { type: 'data', data } }. After diff_visual, export_image, or any other image result, the next step's prompt failed validation with AI_InvalidPromptError and the chat run stopped. toModelOutput is now typed against the SDK's ToolResultPart output, and a test validates the resulting tool message with the SDK's own schema.
2026-10-04 01:00:27 +04:00
..
analyze/diff feat(ai): show what each AI edit changed in its tool call (#812) 2026-10-03 23:32:37 +04:00
ai-adapter.test.ts fix(core): send image tool results in the AI SDK's file shape (#857) 2026-10-04 01:00:27 +04:00