Plugin support for dcode.
Add a local marketplace to dcode state.
Add a marketplace from a pasted source string.
Discover enabled marketplace plugins from their install cache paths.
Install a marketplace plugin into the versioned cache and enable it.
Copies the plugin source into plugins/cache/{marketplace}/{plugin}/{version}/,
writes installed_plugins.json, and enables the plugin.
List plugins from configured marketplaces.
Return plugin ids that have install records.
Restore an installed plugin's files from its marketplace source.
Unlike install_plugin, this always replaces the cached copy, even when the
registry already lists the same version, so it repairs missing or damaged
files. The enabled state and the plugin's data directory are left as-is.
Remove a marketplace and every plugin installed from it.
Local marketplace source directories are never deleted. Managed marketplace clones and installed plugin caches are removed.
Set the enabled state of an installed plugin.
Uninstall a plugin (disable, clear records, delete orphaned cache).
Update installed plugins to their marketplace versions.
Result from plugin discovery.
broken lists enabled plugins whose installed files are missing. They are
reported separately from warnings so callers can present them once with
repair guidance instead of repeating an internal warning per consumer.
A discovered plugin ready to feed dcode adapters.
Marketplace parsing for plugins.
CLI helpers for plugin management.
Data models for plugins.
Variable substitution for plugin-provided configuration.
Plugin discovery, install, and enablement helpers.
Plugin subsystem adapters.