Plugin discovery, install, and enablement helpers.
Build component inventory for a plugin.
Load a Claude/Codex plugin manifest.
Load a marketplace manifest from a root directory.
Load a marketplace from either a cached directory or JSON file.
Load a marketplace source and return its local install location.
Resolve or materialize a marketplace plugin entry to a plugin root.
Parse a user-provided marketplace source.
Redact credentials from every HTTP URL embedded in text.
Split a plugin id in {plugin}@{marketplace} form.
Copy a plugin into the versioned cache and register the install.
Return the marketplace cache directory.
Return the lazily-created data directory for a plugin id.
Return the install entry for a plugin id.
Load enabled plugin ids.
Load installed plugin records.
Load persisted marketplace records.
Return the data directory path for a plugin id without creating it.
Remove a marketplace record.
Persist a marketplace record.
Persist a plugin enablement value.
Disable a plugin, remove install records, and delete orphaned cache dirs.
Add a local marketplace to dcode state.
Add a marketplace from a pasted source string.
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).
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.
Discover enabled marketplace plugins from their install cache paths.
List plugins from configured marketplaces.
Return plugin ids that have install records.
Raised when a plugin manifest is malformed enough to skip the plugin.
Raised when a marketplace cannot be loaded.
A catalog entry from a marketplace manifest.
Persisted marketplace source record.
Result from plugin discovery.
A discovered plugin ready to feed dcode adapters.
A parsed marketplace manifest.
GitHub or Git repository used as a marketplace source.
ref selects an optional branch or tag. Commit SHA checkout is not part of
the shallow-clone flow.