fix: isolate failures when parsing batch result lines

VI
18d ago
+46-2

Fixes #60.

Python now rejects batch result lines with HTTP status 400 or higher before model validation. Model-validation errors are attached to the corresponding request, allowing later valid lines in the same file to resolve and the partial-result offset to advance.

Four regression cases cover a malformed response body and HTTP 400/429/500 results, each followed by an independent successful result. All four fail on unmodified main. TypeScript already rejects per-request HTTP failures; its result distribution does not perform Python's Pydantic validation.

Validation: 150 Python tests pass, ty check passes, and git diff --check passes. The unchanged TypeScript SDK also passes its 57 tests, typecheck and build. Tests use mocked upstream resources or local proxy servers.

The unchanged fork CI matrix passes all four jobs for head 44be8cdf1fc6e3a9c3b429521f5c1e7857584153: Python 3.12 with latest/minimum 2.0.0 SDKs, and TypeScript with locked/minimum 4.104.0 SDKs. Upstream CI is awaiting maintainer approval (action_required).