Files
NebulaShell/store/@{FutureOSS}/lifecycle.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
2026-04-17 23:15:15 +08:00

lifecycle 生命周期管理

管理插件的状态转换和钩子函数。

功能

  • 状态机:pendingrunningstopped
  • 支持状态转换验证
  • 提供生命周期钩子:
    • before_start
    • after_start
    • before_stop
    • after_stop
  • 支持扩展能力注入

状态转换

pending → running → stopped
              ↕
          (可重启)

使用

lc = lifecycle_plugin.create("my-plugin")
lc.on("after_start", lambda: print("started"))
lc.start()