NapCatQQ/packages/napcat-onebot
手瓜一十雪 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
..
action Add plugin data management API and frontend support 2026-01-28 13:39:36 +08:00
api Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
config Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
event Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
helper refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
network Improve plugin status handling and dirname lookup 2026-01-29 16:42:15 +08:00
types Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
index.ts Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
package.json feat: 所有的类型检查 2025-11-15 12:57:19 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00