Versioning¶
apiVersion¶
Current API version: 1. Both hosts support API version 1.
At load, the host compares GetInfo.apiVersion with the highest version it supports:
| Plugin apiVersion | Host supports | Result |
|---|---|---|
| 1 | 1 | Loads normally |
| 1 | 2 | Loads; the host is backward compatible |
| 2 | 1 | Refused with API_VERSION_MISMATCH; the load-failure dialog names both versions |
A missing or lower apiVersion is accepted without a warning. Always declare the version you built against.
Additive-only changes¶
Within a major API version, changes are additive only: new optional fields, new optional methods, new capability strings. Nothing is removed or renamed.
Ignore unknown response fields. Tolerate missing optional request fields.
Capabilities¶
Optional plugin methods are called only when their capability string is in GetInfo.capabilities. If a capability is absent, the host never calls that method. A plugin built against an older API therefore keeps working on a newer host; new methods are simply not invoked. See Architecture.
DeriveCapabilities() derives the list from the optional methods you override. A menu-only plugin that overrides none of them gets []. HydroMan has fewer optional plugin methods than HydroSym: BeforeFileOpen, BeforeFileClose, and SetProjectVariables only.
Plugin version vs apiVersion¶
apiVersion: protocol version, currently1.version: your plugin's own version, for example ("2.3.1"). Logged at load. Not used for compatibility checks.
Host version¶
InitializeRequest.HostVersion is the host's display version, a short string such as "2026". It is not a dotted build number, so do not parse it. Plugin API v1 is available in HydroSym 2026 and HydroMan 2026 and later.