Skip to main content

Module wasm

Module wasm 

Source
Expand description

WASM-based extension system powered by Extism.

Loads .wasm extension files from ~/.oxicode/extensions/ and project-local .oxicode/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 (WASI enabled). Host access is provided through injected host functions; arbitrary command execution (oxicode_exec) is disabled by default and must be opted in via the OXICODE_EXTENSION_EXEC=1 environment variable.

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().