- Added
xfetch-guest-api: host-call bridge for WebAssembly core-module guests (host_call,http_request,exec,log,protocol_version) plus thexfetch_alloc/xfetch_freeexports the host needs. - Added
wit/xfetch-runtime.wit: the component-model contract withplugin,effectandextensionworlds and the typedfetch/exec/log/protocol-versionhost interface. with_timeoutis now wasm-compatible: onwasm32the task runs inline (no worker threads) and the host enforces the deadline through wasmtime epochs.
- Added
with_timeout(budget, task)toxfetch-plugin-apiandxfetch-extension-api. Plugins and extensions declare their own runtime budget in code; the task runs on a worker thread andErr(TimedOut)is returned when the budget elapses, so a hung plugin/extension can never hang xfetch.