Files
NebulaShell/store/@{FutureOSS}/hot-reload.disabled
qwen.ai[bot] d7978349ed Title: Update license confirmation and enhance project documentation
Key features implemented:
- Updated README.md to prominently display MIT license badge and include full license text in expandable section
- Enhanced .gitignore with comprehensive file patterns for Python, dependencies, logs, and build artifacts
- Added detailed plugin manifest example showing license declaration in plugin configuration
- Included license information in plugin development documentation section

The updates provide clear license visibility and improved development workflow configuration.
2026-04-25 08:14:10 +00:00
..
2026-04-17 23:15:15 +08:00
2026-04-17 23:15:15 +08:00
2026-04-17 23:15:15 +08:00

hot-reload 热插拔

运行时加载、卸载、更新插件,无需重启服务。

功能

  • 运行时加载新插件
  • 运行时卸载插件
  • 运行时更新插件(热重载)
  • 自动监听文件变化(可选)
  • 模块缓存清理

使用

from pathlib import Path

# 加载新插件
hot_reload.load_plugin(Path("store/@{Author/new-plugin"))

# 卸载插件
hot_reload.unload_plugin("plugin-name")

# 更新插件
hot_reload.reload_plugin("plugin-name", Path("store/@{Author/plugin-name"))

注意事项

  • 插件必须实现 init(), start(), stop()
  • 卸载时会调用 stop()
  • 更新时先 stop()init() + start()