Expand description
WebAssembly Component Model runtime for kind = Wasm skills.
Loads plain .wasm components, validated and compiled by the current
runtime at load time. Native precompiled .cwasm inputs are refused;
discovered files have no protected provenance authorizing deserialization.
Components target the
uar:skill@0.1.0 WIT world and dispatches
the run(input: string) -> result<string, string> export.
Behind the existing wasm-runtime Cargo feature.
Structs§
- Wasm
Host State - Host state for a wasm skill instance.
- Wasm
Skill Runtime
Functions§
- builtin_
wasm_ dir - Returns the resolved built-in WASM skill dir. Honours
UAR_SKILLS_WASM_BUILTIN_DIR; falls back tocrates/prometheus-skill-system/skills(anyskill.wasmdiscovered alongside aSKILL.md). - discover_
and_ load - Scan both directories for plain
.wasmcomponents and register each intoruntime. Discovered.cwasmentries produce an actionable load refusal and are never deserialized. Returns oneSkillper loaded component, suitable forSkillService::register_builtins. - user_
wasm_ dir