Files
ShowenV2/configs/README.md
showen 7135f28545 feat: 实现动态插件系统 (6阶段完成)
- 阶段1: 消息类型序列化 (Serialize/Deserialize, &'static str → String)
- 阶段2: FFI 边界类型 + Plugin SDK (plugin_abi, showen-plugin-sdk crate)
- 阶段3: PluginLoader + DynamicPlugin (libloading 动态加载 .so)
- 阶段4: 版本管理 + 错误策略 (VersionManager, PluginState, 自动回退)
- 阶段5: 远程仓库客户端 (HTTP 下载 + tar.gz 安装)
- 阶段6: 示例插件 + HTTP 管理 API + 全目录 README 文档

54/54 测试通过,0 warnings。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 03:38:08 +08:00

20 lines
607 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# configs/ — 状态机配置
JSON 格式的状态机配置文件,定义视频播放场景和状态转换规则。
## 文件
| 文件 | 说明 |
|------|------|
| `dog_state_machine.json` | 狗宠物的场景/动画状态机 |
| `cat_state_machine.json` | 猫宠物的场景/动画状态机 |
## 配置结构
每个 JSON 配置定义:
- **场景 (scenes)**: 包含多个动画状态
- **状态 (states)**: 绑定视频文件,定义播放行为
- **转换 (transitions)**: 触发器驱动的状态跳转voice / button / sensor
`VideoPlugin``StateMachine` 模块解析和驱动。