Publish a plugin
A plugin is a folder with a manifest, valvora-plugin.toml, from which Valvora adds parts, catalogs, lessons, models, transforms or drivers.
Read the author guide: writing, checking and publishing a plugin.
Writing the listing
valvora-cli plugin check refuses a listing that breaks these rules.
- The name says what it is, and does not end in “plugin”, “pack” or “for Valvora”, in any case.
- The description is one sentence of what the plugin does for the person, 50 to 155 characters long, and does not start with “This plugin”.
- The icon is the manifest's optional
icon: an SVG drawn in the symbol subset, checked like a symbol. Without one, the catalogue shows the icon of the plugin's form.
The lines of the plugins made by Valvora:
| Name | Description |
|---|---|
| Sampler | One symbol, one catalog part and one exercise, to try extensions out. |
| Throttle models | The throttle and the one-way flow control valve, written again as a model extension. |
| Multifunction timer relay | One timer relay whose function is a parameter: on delay, off delay, interval or flasher, started from its B1 input. |
| Connection list | Exports every connection of the circuit as a CSV list: sheet, line, medium, part and port. |
Reference plugins
The plugins made by Valvora are worked examples: each folder is a complete plugin to copy from.
| Plugin | Id | Form | What it holds | Capabilities | Manifest sections |
|---|---|---|---|---|---|
| Sampler | valvora.sample | No code | symbols, catalogs, exercises | None | [[pack]] |
| Throttle models | valvora.throttle | Walled-off code | symbols, models | None | [[pack]] [[model]] [entry.*] |
| Multifunction timer relay | valvora.timer-relays | Walled-off code | symbols, models | None | [[pack]] [[model]] [entry.*] |
| Connection list | valvora.connection-list | Walled-off code | transforms | None | [[transform]] |
The reference plugins' folders in Valvora's repository
Capabilities
Only a program, a driver, declares capabilities: models and transforms run in a sandbox that gives them nothing to declare. Before a program is installed, Valvora asks, naming each capability in these words. They are what the program says it uses: nothing yet holds it to them.
| Written in the manifest | What Valvora shows |
|---|---|
serial | The serial port you choose |
usb:<vendor> | USB devices of vendor <vendor> |
network:<hosts> | The network address <hosts> |
network:hosts-chosen-by-user | Network addresses you enter |
com:local | COM objects on this computer |
files:chosen-by-user | Files you choose |
process:<name> | The program <name> on this computer |
Trying a new version
Installing from a file a plugin that is already installed from the registry does not replace it. The file's version runs as a test copy for this session only, marked “Test copy · <version>”.
The reviewed version stays installed. “Back to the reviewed version” returns to it, and after Valvora restarts the reviewed version is in use.
A circuit saved while the test copy is in use records the test copy's version, with a snapshot of every part's box and ports, as for any plugin; saving does not warn. Once the test copy is gone, parts the reviewed version also has are drawn by it, and parts only the test copy has reopen as placeholders with their wires kept.