v0.5.3
Added
host_resultmodule — canonical decoder for theHostResultwire format (0x00Ok + payload /0x01Err + message). All host functions that return data use this encoding instead of WASM traps for recoverable errors. (#25)
Changed
fs::read,fs::metadata,fs::exists,fs::read_dir— decodeHostResultfrom kernel. File-not-found, permission denied, and VFS errors returned asErr(SysError)instead of crashing the capsule. (#25)kv::get_bytes,kv::list_keys,kv::clear_prefix— decodeHostResultfrom kernel. (#25)
Fixed
- Interceptor chain payload corruption — interceptors returning
Result<(), SysError>serialized()asb"null"(4 bytes), overwriting the chain payload for subsequent interceptors. Now returns empty bytes, preserving the original payload. (#25)
With many thanks from the following Astrinauts 🚀
- Joshua J. Bouw