core refactor for runtime support

This commit is contained in:
nicwands
2026-03-23 16:30:38 -04:00
parent eea1cccf16
commit 4d64bc995f
32 changed files with 634 additions and 486 deletions

View File

@@ -1,7 +1,6 @@
export default class PluginRegistry {
constructor(environment = 'web') {
constructor() {
this.plugins = new Map()
this.environment = environment
}
register(plugin) {
@@ -9,11 +8,6 @@ export default class PluginRegistry {
throw new Error('Plugin must have an id')
}
const environments = plugin.environments || ['electron', 'web']
if (!environments.includes(this.environment)) {
return
}
this.plugins.set(plugin.id, plugin)
}