mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-12-05 13:56:25 +00:00
p2 sent uploaded images at full size, so a phone photo failed the request with a provider 400 and every later one in the conversation. pi-durable gains @earendil-works/pi-durable/images/fit, a kit that works with any ImageProcessor and does not load Photon: fitImage/fitImages for a host's input, and the fit-images extension, an afterTool hook that fits the images of every tool result before it is committed. Images are fitted once, before they are stored, so the transcript and prompt caches stay stable. Every image is decoded, as in the coding agent; one that cannot be prepared is left out with a note. imageLimits(model) is shared with read. p2 creates one Photon processor per worker (WorkerParts.images) and uses it for read, for attachments (resizes noted next to the file) and in the new fit-images plugin. |
||
|---|---|---|
| .. | ||
| activity.tsx | ||
| cards.ts | ||
| package.json | ||
| tui.ts | ||
| web.tsx | ||
| worker.ts | ||