mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
The title and every heading are the page's to write, and both skipped truncate(), so one hostile scalar could print unbounded output whatever the budget said. The compact view now cuts titles, headings, and input names at the same cap and marker every other block gets, and read cuts even a first block bigger than its whole budget, since 'up to N tokens' is a promise the page must not be able to break. The distilled page keeps the full values: --json stays the machine-stable view, bounded by the fetch cap, and machines cut for themselves. Fixes #28