Skip to main content

Module wasm

Module wasm 

Source
Expand description

WASM-based extension system powered by Extism.

Loads .wasm extension files from ~/.oxi/extensions/ and project-local .oxi/extensions/. Each extension exports well-known functions (init, register_tools, execute_tool) called via Extism’s JSON-in/JSON-out protocol. Extensions run inside a WASM sandbox with zero host access by default — HTTP access is granted via the oxi_http_request host function.

Structs§

ExtensionInfo
Metadata returned by an extension’s init() function.
LoadedWasmExtension
Result of loading a WASM extension.
WasmCommandDef
A command definition returned by register_commands().
WasmExtensionManager
Manages WASM extensions: discovery, loading, and tool execution.
WasmToolDef
A tool definition returned by register_tools().