mirror of
https://github.com/hanzoai/engine.git
synced 2026-11-20 14:17:52 +00:00
Add ZAP (Zero-Copy App Proto / Cap'n Proto) as the binary wire for INTERNAL
engine<>node comms, alongside the existing OpenAI JSON path. External
OpenAI/Anthropic HTTP+JSON API is untouched.
- schema/inference.capnp: Inference interface (chat/chatStream/tokenize/
detokenize/listModels/health/systemInfo/reIsq) mirroring
hanzo_engine::{Request,Response}.
- src/zap: feature-gated (`zap`) module.
- message: wire structs + bridges to engine Request/Response.
- server: ZapInferenceServer adapter over Arc<Hanzo>::get_sender.
- client: ZapInference trait; in-process server impls it.
- transport: documents the capnp-rpc drop-in (gated `zap-capnp`); no
capnp build dep so cargo check stays green without the capnp binary.
cargo check -p hanzo-engine --features zap: ok. 2 unit tests pass.
Co-authored-by: Hanzo Dev <[email protected]>