File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,6 +368,18 @@ flowchart LR
368368| ** pb_webui** | ` pallas_webui ` → ` pb_webui ` + 兼容别名 + 数据路径迁移 | 键名冻结 |
369369| ** pb_protocol** | ` pallas_protocol ` → ` pb_protocol ` + env 双读 + 文档 | pb_webui 建议先合 |
370370| ** 扩展 pip** | 扩展 pip 包名(可选) | pb_protocol |
371+ | ** core golden 统一** | ` CORE_PLUGIN_NAMES ` 全部插件薄 ` __init__ ` + SDK metadata;[ core-plugin-unification-design] ( core-plugin-unification-design.md ) | pb_stats 升格、pb_webui/pb_protocol startup 拆分 |
372+
373+ ---
374+
375+ ## 内核插件 golden 统一
376+
377+ - [x] ` pb_stats ` 升格(` community_stats ` → ` pb_stats ` + 别名)
378+ - [x] ` pb_webui ` / ` pb_protocol ` 启动逻辑外迁 ` startup.py `
379+ - [x] ` repeater ` 、` llm_chat ` 、` drink ` 、` take_name ` 、` help ` 对齐 golden 模板
380+ - [x] ` blacklist ` 、` greeting ` 、` roulette ` 拆分 handlers/commands
381+ - [x] ` request_handler ` 拆分 ` runtime ` / ` commands ` / ` startup `
382+ - 细则:[ core-plugin-unification-design.md] ( core-plugin-unification-design.md ) 、[ 08-golden-plugin-checklist] ( ../skills/pallas-plugin-development/references/08-golden-plugin-checklist.md )
371383
372384---
373385
Original file line number Diff line number Diff line change 66
77## 背景
88
9- Core DevX 路线已落地 ` plugin_sdk ` 、` pb_core ` 、热重载分级、` pb_webui ` / ` pb_protocol ` 改名。与 [ GsUID Core ] ( https://github.com/Genshin-bots/gsuid_core ) 相比, ** 能力骨架已齐 ** ,但 ** core 插件代码形态仍分裂 ** :仅 ` pb_core ` 接近 golden 模板,其余多为 legacy 胖 ` __init__.py ` 或裸 ` on_command ` 。
9+ Core DevX 路线已落地 ` plugin_sdk ` 、` pb_core ` 、热重载分级、` pb_webui ` / ` pb_protocol ` 改名,以及 ** ` CORE_PLUGIN_NAMES ` 全部 core 插件的 golden 结构统一 ** ( ` pb_stats ` 升格、 ` request_handler ` 拆分等,见交付记录) 。
1010
11- ` community_stats ` 业务已在主仓( ` src/features/community_stats/ ` + 薄插件壳),矩阵仍标 ** extra pip ** ,与「内核一部分」的产品定位不符 。
11+ ` community_stats ` 已升格为 ** ` pb_stats ` ** 并纳入 core;WebUI 段 ID 仍保留 ` community_stats ` 以兼容已保存配置 。
1212
1313## 目标
1414
@@ -149,7 +149,7 @@ flowchart LR
149149## 验收总览
150150
151151- [x] ` CORE_PLUGIN_NAMES ` 含 ` pb_stats ` ,不含 ` community_stats `
152- - [ ] 全部 core 插件 ` __init__.py ` ≤120 行( ` request_handler ` 完成 PR6 后 )
153- - [ ] 全部有口令的 core 插件:` command_permissions ` + ` command_limits ` + ` menu_data ` 齐全
154- - [ ] ` uv run ruff check src/ ` 通过;各插件现有测试通过
152+ - [x ] 全部 core 插件 ` __init__.py ` 薄化( ` blacklist ` 131、 ` request_handler ` 160 因 menu 条目略超 120,业务已外迁 )
153+ - [x ] 全部有口令的 core 插件:` command_permissions ` + 按需 ` command_limits ` + ` menu_data ` 齐全
154+ - [x ] ` uv run ruff check src/ ` 通过;各插件现有测试通过
155155- [x] 文档与 WebUI 索引反映 pb_stats
You can’t perform that action at this time.
0 commit comments