Skip to main content

Module wire

Module wire 

Source
Expand description

Internal wire-format helpers exposed for sibling crates that need to talk to the in-guest agent directly (specifically the napi binding in npm/supermachine-core/). The action JSON shape these support is internal — outside embedders should prefer Vm::write_file / Vm::read_file / Vm::exec which call these for you.

Re-exports§

pub use crate::exec::send_control_with_ack;

Functions§

b64_decode
Public counterpart to b64_encode. Same shape, same caveat.
b64_encode
Public so the napi binding can encode bytes for the agent’s write_file action JSON without re-implementing this. The shape is internal — embedders outside this workspace should stick to crate::Vm::write_file / crate::Vm::read_file which call into this for you.