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§
- Extension
Info - Metadata returned by an extension’s
init()function. - Loaded
Wasm Extension - Result of loading a WASM extension.
- Wasm
Command Def - A command definition returned by
register_commands(). - Wasm
Extension Manager - Manages WASM extensions: discovery, loading, and tool execution.
- Wasm
Tool Def - A tool definition returned by
register_tools().