kry_http grows a streaming file sink (kry_http_download) with byte and
fraction progress, sized for artifacts instead of in-memory bodies.
kry_sha256 adds dependency-free FIPS 180-4 hashing (streaming + file +
hex compare). kry_update ties them together: appcast-channel downloads
staged under XDG_DATA_HOME/LOCALAPPDATA with sha256 verification (bad
files are removed), AppImage staging that copies next to the running
image and atomically renames over it (plus re-exec in apply), and a
Windows portable swap script spawned detached from %TEMP%. Tests cover
hash vectors, verified/failed downloads via file://, and AppImage
staging; the exec'ing apply path stays untested by design.
The write callback now appends under the request mutex so mid-flight
reads are safe, and kry_http_partial copies whatever of the body has
arrived while the transfer is still RUNNING - the transport piece for
streaming chat responses (SSE) without changing the poll model.
- kry_json: dependency-free recursive-descent parser (objects/arrays/
strings with \u escapes + surrogate pairs, numbers, bools) and a
compact KryJsonBuf emitter. Depth-capped against hostile input.
- kry_http: async libcurl-easy client (HAS_LIBCURL) on the existing
KryThread worker pattern — POST-JSON/GET, poll for state, body owned
by the request. Stub when curl is absent. file:// counts as success
(HTTP code 0), which the hermetic tests use.
- kry_zai: z.ai GLM chat-completions client (OpenAI-compatible) on the
two above. Coding-Plan endpoint default, glm-4.6, ZAI_API_KEY/
ZAI_BASE_URL/ZAI_MODEL env with an in-process override; thinking
disabled for fast answers. Live test gated on ZAI_API_KEY.
- mk/vendor.mk: KRYON_CURL_TRANSITIVE_LDLIBS (brotli/zstd) the vendored
static curl needs at final link.