Ask a question to get started
Enter to send•Shift+Enter new line
cache_and_register_plugin( plugin_id: str, source_dir: Path, *, version: str | None
plugin_id
str
Plugin id in {name}@{marketplace} form.
{name}@{marketplace}
source_dir
Path
Source plugin root to copy from.
version
str | None
Version declared by the plugin manifest, if any.
validate
Callable[[Path], None] | None
None
Copy a plugin into the versioned cache and register the install.
Optional validation to run against the temporary copy before replacing an existing cache.