This directory contains example OpenVCS plugins.
The OpenVCS plugin system is component-only and defined by the WIT contracts under Core/wit/.
For a current, working plugin scaffold, use PluginTemplate/.
Current example:
example.status/: demonstrates hostset-status+get-statusAPIs.- Uses
use openvcs_core::prelude::*;andstatus::set/gethelpers. - Manifest capability:
status.set(which also impliesstatus.get).
- Uses
example.settings/: demonstrates v1.1 plugin menus, action handling, and automatic host-managed plugin settings persistence.- Contributes two menus with optional
orderhints (Some(5)andSome(10)) to demonstrate host-side menu ordering. - Uses
settings_defaults+settings_on_applyhooks while the host persistssettings.jsonunderplugin-data/<plugin-id>/.
- Contributes two menus with optional
Notes:
- Keep examples in sync with the current
openvcs-coreAPI and host capabilities. - The SDK builds plugin runtime assets for npm packages; see
SDK/README.mdfor current commands.