Expand description
§Plugins (runtime v2)
Standard Code plugins are WebAssembly components written in Rust against
the WIT package standard:plugin@2.0.0 (wit/plugin.wit in this crate),
with this SDK, standard-plugin-sdk, and the CLI standard-plugin
(standard-plugin-cli). These guides ship with the SDK: they are the
docs/ directory of the crate, the standard_plugin::guide pages of its
API documentation, and standard-plugin guide prints them for the SDK
version a plugin’s Cargo.lock resolves. Agents writing a plugin start
with the agent guide.
| Page | Status |
|---|---|
| Getting started | Written |
| The manifest | Written |
| Grants | Written |
| Rendering | Written |
| Input | Written |
| Working together | Written |
| Daemon plugins | Written |
| Testing plugins | Written |
| Handlers: taking over a job Standard Code does, such as New Pane | Written |
| Store previews and icons: the live preview, the sample state each plugin owns, the icon | Written |
| Publishing and installing: sources (GitHub, npm, links, files), the plugin store, updates | Written |
| Agent guide: the plugin model, pitfalls from real plugins, a pre-publish checklist | Written |
| The low-level contract: the exports, memory rules and surface buffer protocol the SDK implements | Written |
| Other toolchains (unsupported): the rules any component must meet, and what the CLI checks | Written |
Every code example these pages refer to is a compiled file in the crate’s
examples/ or tests/testing_harness.rs, and the manifests shown here are
checked by the CLI’s tests.