NapCatQQ/packages/napcat-onebot/network/plugin
手瓜一十雪 82a7154b92 fix: #1574 & Clear CJS cache and reload plugins on install
Add support for clearing CommonJS module cache when unloading plugins and reload plugins on install. PluginLoader now uses createRequire to access require.cache and exposes clearCache(pluginPath) to remove cached modules under the plugin directory; plugin manager calls this when unloading. Web UI backend install handlers now reload an existing plugin (with progress updates) instead of skipping registration, ensuring updated code/metadata take effect.
2026-02-02 14:14:06 +08:00
..
config.ts Refactor plugin manager with modular loader and types 2026-01-30 11:50:22 +08:00
index.ts Refactor plugin manager with modular loader and types 2026-01-30 11:50:22 +08:00
loader.ts fix: #1574 & Clear CJS cache and reload plugins on install 2026-02-02 14:14:06 +08:00
manager.ts Default plugins disabled; skip loading disabled 2026-01-31 15:26:56 +08:00
router-registry.ts Add plugin WebUI extension page and API routing support 2026-01-30 12:48:24 +08:00
types.ts Add plugin WebUI extension page and API routing support 2026-01-30 12:48:24 +08:00