Plugin Management API
usePlugin
usePlugin(plugin: any): Promise<boolean>
Use a plugin.
removePlugin
removePlugin(pluginId: string): Promise<boolean>
Remove a plugin.
setTheme
setTheme(theme: 'light' | 'dark'): Promise<boolean>
Switch built-in themes at runtime.
getLoadedPlugins
getLoadedPlugins(): any[]
Get the list of loaded plugins.
isPluginLoaded
isPluginLoaded(pluginName: string): boolean
Check whether a plugin is loaded.