NapCatQQ/packages/napcat-onebot/network/plugin
手瓜一十雪 94f07ab98b Support memory static files and plugin APIs
Introduce in-memory static file support and inter-plugin exports. Add MemoryStaticFile/MemoryFileGenerator types and expose staticOnMem in PluginRouterRegistry; router registry now tracks memory routes and exposes getters. Add getPluginExports to plugin manager adapters to allow plugins to call each other's exported modules. WebUI backend gains routes to serve /plugin/:pluginId/mem/* (memory files) and /plugin/:pluginId/files/* (plugin filesystem static) without auth. Update builtin plugin to demonstrate staticOnMem and inter-plugin call, and add frontend UI to open extension pages in a new window. Note: API router no longer mounts static filesystem routes — those are handled by webui-backend.
2026-02-02 15:01:26 +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 Support memory static files and plugin APIs 2026-02-02 15:01:26 +08:00
router-registry.ts Support memory static files and plugin APIs 2026-02-02 15:01:26 +08:00
types.ts Support memory static files and plugin APIs 2026-02-02 15:01:26 +08:00