mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
be545b7ccd
Pixelpipe now always uses the full 1568px canvas (cols=313) and packs up to 50,000 chars per image. The multi-column code path and the shrink-to-content path are no longer used by transform.ts - both were sacrificing token savings on dense content to make sparse content marginally more readable, and the readability gain wasn't real (the renderer's output was unreadable in either layout once the content was actually dense). Key changes: - READABLE_CHARS_PER_IMAGE: 6_000 -> 50_000 - DEFAULT_COLS: 100 -> 313 (full 1568px / 5px cell) - shrinkColsToContent() is now a no-op (returns cols unchanged) - MinToolResultChars / MinReminderChars default to 50k (was 6k) - transform.ts always renders single-column at full canvas Practical impact: a 6 KB tool_result that previously rendered as 4 narrow 508x488 pages (1324 image tokens, 86% of text cost) now renders as 1 full-canvas 1568x488 page (~331 image tokens, 22% of text cost) - 4x more savings on the same content with no quality change. Rebuilt dist/. Tests: 315/315 pass.