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.
lifecycle 生命周期管理
管理插件的状态转换和钩子函数。
功能
- 状态机:
pending→running→stopped - 支持状态转换验证
- 提供生命周期钩子:
before_startafter_startbefore_stopafter_stop
- 支持扩展能力注入
状态转换
pending → running → stopped
↕
(可重启)
使用
lc = lifecycle_plugin.create("my-plugin")
lc.on("after_start", lambda: print("started"))
lc.start()