refactor(bf-bot): 插件重构为 handlers/services/utils 分层,资源归入 res/

- 旧平铺模块(data/data_utils/database_op/image_builder*/get_bf6_data/
  gametools_bf6/bf6_data/img_utils)拆分为 handlers(绑定/查询)、
  services(fetchers/processing/query)、utils(渲染/参数)分层;
  新增 repository.py / config.py / paths.py
- 字体/图片/模板资源迁入 res/,新增 BF2042 卡面素材(bg/object_icon 等)
- browser_ext/:BF2042 扩展捕获桥(WS 直连兜底通道)源码入库
- 新增 hexi/web/src/plugins/bf_bot 前端管理页
- 新增 tests:test_bf_bot_helpers / repository / tracker_api

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
sansenhoshiandClaude Code committed 2026-10-13 17:53:06 +08:00
1 parent 614e1d7e00
commit a31aab00e8
752 files changed
+6241 -2506

No files matched your search

@@ -0,0 +1,31 @@
{
"manifest_version": 3,
"name": "HeXi BF2042 捕获桥",
"version": "0.1.0",
"description": "被动捕获 tracker.gg 的 BF2042 响应并经 WebSocket 转发给本机禾汐 bot。浏览器无需开调试端口。",
"minimum_chrome_version": "116",
"permissions": ["tabs", "scripting", "alarms"],
"host_permissions": [
"https://tracker.gg/*",
"https://*.tracker.gg/*",
"http://127.0.0.1/*"
],
"background": {
"service_worker": "background.js"
},
"content_scripts": [
{
"matches": ["https://tracker.gg/*", "https://*.tracker.gg/*"],
"js": ["inject.js"],
"run_at": "document_start",
"world": "MAIN",
"all_frames": true
},
{
"matches": ["https://tracker.gg/*", "https://*.tracker.gg/*"],
"js": ["content.js"],
"run_at": "document_start",
"all_frames": true
}
]
}