ryo-plugin-api
Status: experimental. APIs may change in v0.x. Part of the ryo workspace — AST-centric Rust programming for AI agents.
WebAssembly Interface Types for ryo mutation plugins. WIT-generated Rust types that define the host ↔ guest contract: plugins act as "Definition Providers" supplying mutation metadata and transformation logic.
Install
Quickstart
For plugin authors (guest side):
use *;
generate!;
;
API Summary
| Item | Purpose |
|---|---|
MutationManifest |
Plugin metadata returned from get-manifest() |
MutationCategory |
Idiom / Refactor / Generate / Custom |
TransformDef |
Template-based or WASM-executed transforms |
MatchResult / Capture / NodeKind |
Pattern-match payloads |
TextEdit |
Replacement instructions returned to host |
TransformContext / TypeHint |
Per-call context information |
TransformError |
Plugin-side error reporting |
CURRENT_API_VERSION |
Version constant for compatibility check |
Status
Experimental. WIT definitions and plugin loader contract are evolving. Production-quality stability is deferred to v1.0.
License
Licensed under either of Apache-2.0 or MIT at your option.