# Plugin System Hardening Research — AIUI ## Current State The plugin system has these existing components: - `packages/core/src/types/plugin.ts` — `AIUIPlugin` interface, `PluginContext`, `PluginType` - `packages/core/src/plugins/registry.ts` — in-memory Vue ref-based registry - `packages/app/src/stores/pluginMarketplace.ts` — `InstalledPlugin`, `PluginPermission`, `installPlugin`, `hasPermission` - `packages/app/src/components/settings/PluginMarketplace.vue` — permissions dialog - `packages/app/src/components/renderers/CodeRunner.vue` — existing `