|
1 | 1 | # Core 开发体验路线(plugin_sdk · core_commands · 热重载) |
2 | 2 |
|
3 | | -> **状态**:设计草案(M0 键名已敲定) · **分支**:`feat/core-devx` |
| 3 | +> **状态**:M0–M5b 已落地 · **分支**:`dev` |
4 | 4 | > **背景**:多平台适配 ROI 低;QQ 深耕 + 参考 [GsUID Core](https://github.com/Genshin-bots/gsuid_core) 的「用户减负、统一开发、内置命令、成熟热重载」方向。 |
5 | 5 | > **非目标**:替换 NoneBot matcher、全量代码热载、独立 WS 核心。 |
6 | 6 |
|
@@ -320,20 +320,20 @@ flowchart LR |
320 | 320 |
|
321 | 321 | | 步骤 | 交付 | 兼容要求 | |
322 | 322 | | --- | --- | --- | |
323 | | -| **M5a** | 目录 `src/plugins/pb_webui/`、import 全量替换、`plugin_matrix` / help 别名 | `pallas_webui` 包名在 `plugin_aliases` / 全局禁用名单保留 **1 个版本周期** 映射到 `pb_webui` | |
324 | | -| **M5b** | 目录 `src/plugins/pb_protocol/`、测试目录同步、文档路径 | `PALLAS_PROTOCOL_*` env **继续可读**;文档标注 `PB_PROTOCOL_*` 为推荐新键 | |
| 323 | +| **M5a** | 目录 `src/plugins/pb_webui/`、import 全量替换、`plugin_matrix` / help 别名 | `pallas_webui` 包名在 `plugin_aliases` / 全局禁用名单保留 **1 个版本周期** 映射到 `pb_webui` | ✅ | |
| 324 | +| **M5b** | 目录 `src/plugins/pb_protocol/`、测试目录同步、文档路径 | `PALLAS_PROTOCOL_*` env **继续可读**;文档标注 `PB_PROTOCOL_*` 为推荐新键 | ✅ | |
325 | 325 | | **M5c** | 扩展仓 `pallas-plugin-protocol` → `pb-plugin-protocol`(若做) | 旧 pip 包名 README 指向新包 | |
326 | 326 |
|
327 | | -### M5 单 PR 检查清单 |
| 327 | +### M5 单 PR 检查清单(M5a/M5b 已验收) |
328 | 328 |
|
329 | | -- [ ] `src/plugins/<old>/` → `src/plugins/<new>/` |
330 | | -- [ ] `tests/plugins/<old>/` → `tests/plugins/<new>/` |
331 | | -- [ ] `docs/plugins/<old>/` → `docs/plugins/<new>/` |
332 | | -- [ ] `plugin_matrix.py`、`plugin_aliases.py`、`startup_global_disable` 默认名单 |
333 | | -- [ ] `plugin_data_dir("…")` 与 `data/` 目录:启动时检测旧路径并 **一次性迁移或软链**(写清 Migration 说明) |
334 | | -- [ ] 跨插件 `from src.plugins.<old>` import 全仓 grep 清零 |
335 | | -- [ ] WebUI `field_labels` / `env_sections` 中插件 id 字符串 |
336 | | -- [ ] CI / release 脚本中的硬编码包名 |
| 329 | +- [x] `src/plugins/<old>/` → `src/plugins/<new>/` |
| 330 | +- [x] `tests/plugins/<old>/` → `tests/plugins/<new>/` |
| 331 | +- [x] `docs/plugins/<old>/` → `docs/plugins/<new>/` |
| 332 | +- [x] `plugin_matrix.py`、`plugin_aliases.py`、`startup_global_disable` 默认名单 |
| 333 | +- [x] `plugin_data_dir("…")` 与 `data/` 目录:启动时检测旧路径并 **一次性迁移**(`pb_*_data_dir`) |
| 334 | +- [x] 跨插件 `from src.plugins.<old>` import 全仓 grep 清零 |
| 335 | +- [x] WebUI `field_labels` / `env_sections` 中插件 id 字符串(section id 改为 `pb_*`) |
| 336 | +- [x] CI / release 脚本中的硬编码包名(文档路径) |
337 | 337 |
|
338 | 338 | ### 与 pb_core 的关系 |
339 | 339 |
|
|
0 commit comments