mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-20 14:13:23 +00:00
The zen and enso engines ship as Go packages that already host their module: hanzo-inc/zen lib, which is their Rust core run through wasm2go. The package pumps the module, makes the upstream calls with the keys it is opened with, and writes the answers. So ai keeps no second host beside it. The hz_* ABI, its upstream handles, the WASI sandbox and the Rust stub are deleted. package plugin is now a registry. plugin.Register(name, handler) makes plugin://<name> that handler, called in process. plugin.Transport serves the request under the caller's context, which ends when the caller leaves or closes the body early. The body crosses through a pipe, so a caller who stops reading stops the handler. Declared trailers arrive at the body's end. The family client's header timeout bounds how long the answer may take to begin. A test serves the same family service at its network address and registered in process, and holds every body and every debit equal. Claude-Session: https://claude.ai/code/session_01SCPMGSQsLNF2YtHFL4bwyp