Repository navigation
fix: send the catalogue version when installing a module - #429
Conversation
The install-module action posted only the package name, so the runtime saved the module without a version and it was dropped on the next restart. The version of the matching vetted catalogue entry is now sent as well, when it is a plain semver. A @flowfuse/ package not listed in a vetted catalogue still installs without a version. Claude-Session: https://claude.ai/code/session_01HQVXtLUJtHr7hPXZ5DRwoL
|
@Steve-Mcl one decision for you. For The private scopes ( Should a
No agent can send a version: the tool input only accepts |
Closes #425
Description
The
automation/install-moduleaction posted{ module }toPOST /nodeswith no version. Node-RED then emitted anodes.installaudit event with no version and the module was saved without one, so it was not reinstalled after a restart (see FlowFuse/flowfuse#8919).isModuleEntitledalready loads the instance's vetted FlowFuse catalogues. It now also returns the matching entry's version, and the install POST sends{ module, version }, the same as the palette manager does.@flowfuse-nodes/and@flowfuse-certified-nodes/packages: the entitlement check is unchanged, and the version comes from the catalogue entry.@flowfuse/packages: still no entitlement check. If a vetted catalogue lists the package its version is sent, otherwise the install goes ahead without one and relies on the FlowFuse fallback for a missing version. A catalogue that fails to load never blocks these installs.latest, is dropped.Related Issue(s)
#425, FlowFuse/flowfuse#8919
Checklist