Spaces:
Paused
Paused
File size: 529 Bytes
4e7644b | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import { pluginSystem } from "./hostExternals";
import { chatExtensions } from "./registry/chatExtensions";
import { menuRegistry, routeRegistry, slotRegistry } from "./registry/store";
/** Remove every host-managed registration owned by one frontend plugin. */
export function removePluginRuntime(pluginId: string): void {
menuRegistry.removeBySource(pluginId);
routeRegistry.removeBySource(pluginId);
slotRegistry.removeBySource(pluginId);
pluginSystem.removePlugin(pluginId);
chatExtensions.disposeAll(pluginId);
}
|