All plugins

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 lines of the plugins made by Valvora:

NameDescription
SamplerOne symbol, one catalog part and one exercise, to try extensions out.
Throttle modelsThe throttle and the one-way flow control valve, written again as a model extension.
Multifunction timer relayOne timer relay whose function is a parameter: on delay, off delay, interval or flasher, started from its B1 input.
Connection listExports 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.

PluginIdFormWhat it holdsCapabilitiesManifest sections
Samplervalvora.sampleNo codesymbols, catalogs, exercisesNone[[pack]]
Throttle modelsvalvora.throttleWalled-off codesymbols, modelsNone[[pack]] [[model]] [entry.*]
Multifunction timer relayvalvora.timer-relaysWalled-off codesymbols, modelsNone[[pack]] [[model]] [entry.*]
Connection listvalvora.connection-listWalled-off codetransformsNone[[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 manifestWhat Valvora shows
serialThe serial port you choose
usb:<vendor>USB devices of vendor <vendor>
network:<hosts>The network address <hosts>
network:hosts-chosen-by-userNetwork addresses you enter
com:localCOM objects on this computer
files:chosen-by-userFiles 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.