mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-24 14:43:37 -04:00
b0716ae5d4
Keep discriminator-specific schemas for known Anthropic blocks, content deltas, and message deltas, while holding only the nested provider payload opaque at the event boundary. Unknown discriminators are ignored; recognized variants are processed only after strict decoding succeeds. Malformed fields relevant to a known variant drop that block or delta; malformed fields belonging to other variants are ignored. Envelope, terminal, error, tool-input, and finish-reason behavior is unchanged.