openpencil/packages/core/tests
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
..
canvas feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
clipboard/figma test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
design-jsx feat: add visual diff and patch apply tools and openpencil diff (#810) 2026-10-03 21:00:13 +04:00
editor feat(app): follow people and agents from the toolbar avatars (#807) 2026-10-04 00:09:40 +04:00
figma-api test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
helpers feat: add visual diff and patch apply tools and openpencil diff (#810) 2026-10-03 21:00:13 +04:00
io/formats/fig fix(fig): read, render, and write Figma slots (#850) 2026-10-04 00:45:10 +04:00
layout/auto-layout/text fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
text/derived-text feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
tools fix(core): send image tool results in the AI SDK's file shape (#857) 2026-10-04 01:00:27 +04:00