Unregister everything.
Importer for a file name (enabled plugins only).
Run an importer as one undoable transaction.
Mount a plugin panel with an API that tracks the selection. The returned unmount function is idempotent; disabling or unregistering the plugin also unmounts it.
Register (and by default enable) a plugin. Errors leave nothing registered.
Run a named plugin command (pluginId:command) as one transaction.
Optionalargs: unknownStorage adapters contributed by enabled plugins, in registration order.
Subscribe to registry changes.
Remove the plugin. Documents keep its entities (read-only until registered again).
Disable: tools/commands disappear, the plugin's entities become read-only (data kept).