Files
hermes-agent/tests/plugins
kshitijk4poor de479f6469 fix(image_gen): keep legacy non-dict Krea refs passing through and cap the bytes actually read
The inlining step called ref.get() on every reference, so a legacy
image_style_references entry that is neither a string nor a dict raised
AttributeError out of generate() (main forwarded it to Krea). It now passes
through untouched.

The 3 MB budget was checked against stat() and the file read separately,
so a file that grew in between was sent in full. Each file is now read once,
at most one byte past the remaining budget, and the cap applies to those
bytes. The refusal test states each expected error_type and message
directly.
2026-10-01 16:22:28 +05:30
..
…
…