Skip to main content

Module index

Module index 

Source
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.

PageStatus
Getting startedWritten
The manifestWritten
GrantsWritten
RenderingWritten
InputWritten
Working togetherWritten
Daemon pluginsWritten
Testing pluginsWritten
Handlers: taking over a job Standard Code does, such as New PaneWritten
Store previews and icons: the live preview, the sample state each plugin owns, the iconWritten
Publishing and installing: sources (GitHub, npm, links, files), the plugin store, updatesWritten
Agent guide: the plugin model, pitfalls from real plugins, a pre-publish checklistWritten
The low-level contract: the exports, memory rules and surface buffer protocol the SDK implementsWritten
Other toolchains (unsupported): the rules any component must meet, and what the CLI checksWritten

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.