NapCatQQ/packages/napcat-onebot/network
手瓜一十雪 699b46acbd Improve plugin status handling and dirname lookup
Enhanced setPluginStatus to support enabling/disabling plugins by both package name and dirname, improving robustness when plugins are not loaded. Also removed redundant directory name matching logic from findDirnameById in the web UI backend.

Register plugin after installation in PluginStore

Adds logic to immediately register a plugin with the plugin manager after installation, both in the standard and SSE install handlers. This ensures newly installed plugins are available without requiring a restart or manual reload.

Refactor plugin path handling in plugin manager

Simplifies plugin directory and data path resolution by using pluginPath from the plugin context instead of fileId. Streamlines plugin uninstall and reload logic, removing redundant file system scans and improving code clarity.

Refactor plugin API to use package id and improve UX

Standardized plugin management APIs and frontend to use 'id' (package name) instead of ambiguous 'name' or 'filename'. Added support for a 'plugin' display field in package.json and improved plugin store UI to show install/update status. Refactored backend and frontend logic for enabling, disabling, uninstalling, and configuring plugins to use consistent identifiers, and enhanced type definitions and documentation for better maintainability.
2026-01-29 16:42:15 +08:00
..
adapter.ts Refactor network adapter activation and message handling 2026-01-14 18:53:31 +08:00
http-client.ts refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
http-server-sse.ts Refactor network adapter activation and message handling 2026-01-14 18:53:31 +08:00
http-server.ts Refactor network adapter activation and message handling 2026-01-14 18:53:31 +08:00
index.ts Add isActive property to plugin adapters 2026-01-14 18:53:32 +08:00
plugin-manger.ts Improve plugin status handling and dirname lookup 2026-01-29 16:42:15 +08:00
plugin.ts Improve plugin status handling and dirname lookup 2026-01-29 16:42:15 +08:00
websocket-client.ts Reduce WebSocket maxPayload to 50 MB 2026-01-27 22:56:27 +08:00
websocket-server.ts Reduce WebSocket maxPayload to 50 MB 2026-01-27 22:56:27 +08:00