aram-mayhem-dsh 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/INSTALL.zh-CN.txt +61 -54
  2. package/LICENSE +27 -27
  3. package/README.md +234 -194
  4. package/THIRD_PARTY_NOTICES.md +50 -50
  5. package/client.js +973 -829
  6. package/config/settings.json +57 -57
  7. package/cordis.patch.yml +5 -6
  8. package/data/README.md +9 -9
  9. package/docs/DETAIL.md +3 -3
  10. package/docs/DETAIL.zh.md +3 -3
  11. package/docs/preview.svg +63 -63
  12. package/icon.svg +23 -23
  13. package/index.js +544 -439
  14. package/install.ps1 +63 -63
  15. package/locale/en.json +7 -7
  16. package/locale/zh.json +7 -7
  17. package/package.json +72 -72
  18. package/requirements-core.txt +6 -6
  19. package/requirements-dsh.txt +8 -8
  20. package/scripts/desktop_overlay.py +1305 -1305
  21. package/scripts/dsh_service.py +999 -999
  22. package/src/__init__.py +3 -3
  23. package/src/app.py +462 -462
  24. package/src/core/__init__.py +1 -1
  25. package/src/core/event_bus.py +56 -56
  26. package/src/core/events.py +28 -28
  27. package/src/core/hotkeys.py +166 -166
  28. package/src/core/logging_setup.py +44 -44
  29. package/src/core/paths.py +44 -44
  30. package/src/core/settings.py +271 -271
  31. package/src/data/__init__.py +1 -1
  32. package/src/data/fetcher.py +239 -239
  33. package/src/data/matcher.py +534 -534
  34. package/src/data/models.py +287 -287
  35. package/src/data/schema.py +128 -128
  36. package/src/data/scoring.py +127 -127
  37. package/src/data/store.py +543 -543
  38. package/src/lcu/__init__.py +1 -1
  39. package/src/lcu/connector.py +316 -316
  40. package/src/lcu/listener.py +507 -507
  41. package/src/main.py +76 -76
  42. package/src/ui/__init__.py +1 -1
  43. package/src/ui/augment_panel.py +276 -276
  44. package/src/ui/build_panel.py +319 -319
  45. package/src/ui/champ_panel.py +236 -236
  46. package/src/ui/overlay_window.py +631 -631
  47. package/src/ui/theme.py +298 -298
  48. package/src/ui/widgets.py +408 -408
  49. package/src/vision/__init__.py +1 -1
  50. package/src/vision/capture.py +249 -249
  51. package/src/vision/ocr_engine.py +122 -122
  52. package/src/vision/scanner.py +272 -272
@@ -1,57 +1,57 @@
1
- {
2
- "version": 1,
3
- "window": {
4
- "x": null,
5
- "y": null,
6
- "width": 420,
7
- "height": 680,
8
- "min_width": 360,
9
- "opacity": 0.97,
10
- "always_on_top": true,
11
- "mini": false,
12
- "click_through": false
13
- },
14
- "hotkeys": {
15
- "enabled": true,
16
- "toggle_visible": "Ctrl+Shift+H",
17
- "toggle_mini": "Ctrl+Shift+M",
18
- "rescan_augments": "Ctrl+Shift+R",
19
- "toggle_click_through": "Ctrl+Shift+L"
20
- },
21
- "lcu": {
22
- "enabled": true,
23
- "poll_interval": 1.0,
24
- "use_websocket": true,
25
- "reconnect_interval": 5.0,
26
- "request_timeout": 3.0
27
- },
28
- "vision": {
29
- "enabled": true,
30
- "interval": 1.5,
31
- "region": [
32
- 0.06,
33
- 0.12,
34
- 0.88,
35
- 0.76
36
- ],
37
- "ocr_min_confidence": 0.45,
38
- "match_threshold": 0.72,
39
- "min_matches": 2,
40
- "cooldown": 8.0
41
- },
42
- "data": {
43
- "seed_file": "data/seed_16.23.json",
44
- "cache_file": "data/cache/stats.sqlite3",
45
- "stats_url": "",
46
- "auto_refresh": false,
47
- "refresh_hours": 24.0
48
- },
49
- "ui": {
50
- "language": "zh_CN",
51
- "font_family": "Microsoft YaHei UI",
52
- "exclude_from_capture": true
53
- },
54
- "demo": {
55
- "enabled": false
56
- }
57
- }
1
+ {
2
+ "version": 1,
3
+ "window": {
4
+ "x": null,
5
+ "y": null,
6
+ "width": 420,
7
+ "height": 680,
8
+ "min_width": 360,
9
+ "opacity": 0.97,
10
+ "always_on_top": true,
11
+ "mini": false,
12
+ "click_through": false
13
+ },
14
+ "hotkeys": {
15
+ "enabled": true,
16
+ "toggle_visible": "Ctrl+Shift+H",
17
+ "toggle_mini": "Ctrl+Shift+M",
18
+ "rescan_augments": "Ctrl+Shift+R",
19
+ "toggle_click_through": "Ctrl+Shift+L"
20
+ },
21
+ "lcu": {
22
+ "enabled": true,
23
+ "poll_interval": 1.0,
24
+ "use_websocket": true,
25
+ "reconnect_interval": 5.0,
26
+ "request_timeout": 3.0
27
+ },
28
+ "vision": {
29
+ "enabled": true,
30
+ "interval": 1.5,
31
+ "region": [
32
+ 0.06,
33
+ 0.12,
34
+ 0.88,
35
+ 0.76
36
+ ],
37
+ "ocr_min_confidence": 0.45,
38
+ "match_threshold": 0.72,
39
+ "min_matches": 2,
40
+ "cooldown": 8.0
41
+ },
42
+ "data": {
43
+ "seed_file": "data/seed_16.23.json",
44
+ "cache_file": "data/cache/stats.sqlite3",
45
+ "stats_url": "",
46
+ "auto_refresh": false,
47
+ "refresh_hours": 24.0
48
+ },
49
+ "ui": {
50
+ "language": "zh_CN",
51
+ "font_family": "Microsoft YaHei UI",
52
+ "exclude_from_capture": true
53
+ },
54
+ "demo": {
55
+ "enabled": false
56
+ }
57
+ }
package/cordis.patch.yml CHANGED
@@ -1,6 +1,5 @@
1
- - insert:
2
- - id: aram-mayhem
3
- name: 'aram-mayhem-dsh'
4
- config:
5
- pythonPath: python
6
- overlay: true
1
+ - insert:
2
+ - id: aram-mayhem
3
+ name: 'aram-mayhem-dsh'
4
+ config:
5
+ pythonPath: python
package/data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # 数据目录
2
-
3
- - `seed_16.23.json`:内置聚合快照,供首次启动导入 SQLite。
4
- - `cache/`:运行时生成的 `stats.sqlite3`,可安全删除;下次启动会从 seed 重建。
5
- - `raw/`:`scripts/build_seed.py` / `scripts/sync_data.py` 的下载/元数据缓存,可删除。
6
-
7
- **许可提醒**:`seed_16.23.json` 来自 AramHex 数据仓库,协议 CC BY-NC 4.0(署名、禁止商业使用)。详见项目根目录 `THIRD_PARTY_NOTICES.md` 与 `LICENSE`。
8
-
9
- 数据集格式与导入逻辑见 `src/data/schema.py`、`src/data/store.py`;生成脚本见 `scripts/build_seed.py`。
1
+ # 数据目录
2
+
3
+ - `seed_16.23.json`:内置聚合快照,供首次启动导入 SQLite。
4
+ - `cache/`:运行时生成的 `stats.sqlite3`,可安全删除;下次启动会从 seed 重建。
5
+ - `raw/`:`scripts/build_seed.py` / `scripts/sync_data.py` 的下载/元数据缓存,可删除。
6
+
7
+ **许可提醒**:`seed_16.23.json` 来自 AramHex 数据仓库,协议 CC BY-NC 4.0(署名、禁止商业使用)。详见项目根目录 `THIRD_PARTY_NOTICES.md` 与 `LICENSE`。
8
+
9
+ 数据集格式与导入逻辑见 `src/data/schema.py`、`src/data/store.py`;生成脚本见 `scripts/build_seed.py`。
package/docs/DETAIL.md CHANGED
@@ -1,3 +1,3 @@
1
- # ARAM: Mayhem assistant
2
-
3
- ![A champion summary beside three augment cards with recommendation scores](preview.svg)
1
+ # ARAM: Mayhem assistant
2
+
3
+ ![A champion summary beside three augment cards with recommendation scores](preview.svg)
package/docs/DETAIL.zh.md CHANGED
@@ -1,3 +1,3 @@
1
- # 海斗助手
2
-
3
- ![英雄概览、三张海克斯卡片与推荐评分](preview.svg)
1
+ # 海斗助手
2
+
3
+ ![英雄概览、三张海克斯卡片与推荐评分](preview.svg)
package/docs/preview.svg CHANGED
@@ -1,63 +1,63 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 300" width="640" height="300" role="img" aria-label="A champion panel with three augment cards and a recommendation score">
2
- <defs>
3
- <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
- <stop offset="0" stop-color="#0D1727"/>
5
- <stop offset="1" stop-color="#172A40"/>
6
- </linearGradient>
7
- <linearGradient id="gold" x1="0" y1="0" x2="1" y2="1">
8
- <stop offset="0" stop-color="#F0D79A"/>
9
- <stop offset="1" stop-color="#B8862F"/>
10
- </linearGradient>
11
- <linearGradient id="teal" x1="0" y1="0" x2="1" y2="0">
12
- <stop offset="0" stop-color="#2F8C8C"/>
13
- <stop offset="1" stop-color="#67D6C7"/>
14
- </linearGradient>
15
- <linearGradient id="violet" x1="0" y1="0" x2="1" y2="0">
16
- <stop offset="0" stop-color="#6D4BB3"/>
17
- <stop offset="1" stop-color="#B18CFF"/>
18
- </linearGradient>
19
- </defs>
20
- <rect x="0" y="0" width="640" height="300" rx="18" fill="url(#bg)"/>
21
- <rect x="24" y="20" width="592" height="64" rx="13" fill="#121F32" stroke="#2A405E"/>
22
- <circle cx="58" cy="52" r="21" fill="#213A55" stroke="#D9B86C" stroke-width="2"/>
23
- <path d="M50 52l6-9 6 9-6 9-6-9z" fill="url(#gold)"/>
24
- <rect x="88" y="36" width="112" height="11" rx="5.5" fill="#D8E4F2"/>
25
- <rect x="88" y="54" width="82" height="8" rx="4" fill="#6F87A6"/>
26
- <rect x="430" y="30" width="76" height="42" rx="10" fill="#1C2D45" stroke="#334A63"/>
27
- <rect x="442" y="40" width="52" height="7" rx="3.5" fill="#6F87A6"/>
28
- <rect x="442" y="54" width="44" height="11" rx="5" fill="url(#gold)"/>
29
- <rect x="516" y="34" width="82" height="20" rx="10" fill="#2A2315" stroke="#D9B86C" stroke-width="1.4"/>
30
- <rect x="532" y="40" width="50" height="7" rx="3.5" fill="#E8CF96"/>
31
-
32
- <rect x="24" y="102" width="184" height="150" rx="14" fill="#121F32" stroke="#2A405E"/>
33
- <rect x="40" y="118" width="152" height="8" rx="4" fill="#6F87A6"/>
34
- <rect x="40" y="136" width="120" height="6" rx="3" fill="#334A63"/>
35
- <rect x="40" y="158" width="108" height="24" rx="6" fill="#1C2D45" stroke="#334A63"/>
36
- <rect x="40" y="190" width="108" height="24" rx="6" fill="#1C2D45" stroke="#334A63"/>
37
- <rect x="40" y="222" width="70" height="10" rx="5" fill="url(#teal)"/>
38
-
39
- <rect x="224" y="102" width="184" height="150" rx="14" fill="#182437" stroke="#D9B86C" stroke-width="2"/>
40
- <circle cx="250" cy="128" r="12" fill="#2A2315" stroke="#D9B86C"/>
41
- <rect x="272" y="120" width="96" height="9" rx="4.5" fill="#E8EEF8"/>
42
- <rect x="272" y="135" width="56" height="7" rx="3.5" fill="#D9B86C"/>
43
- <rect x="240" y="155" width="152" height="6" rx="3" fill="#273A52"/>
44
- <rect x="240" y="155" width="122" height="6" rx="3" fill="url(#gold)"/>
45
- <rect x="240" y="174" width="72" height="8" rx="4" fill="#D8E4F2"/>
46
- <rect x="320" y="174" width="70" height="8" rx="4" fill="#6F87A6"/>
47
- <rect x="240" y="198" width="49" height="18" rx="5" fill="#2A2315" stroke="#6B5428"/>
48
- <rect x="296" y="198" width="49" height="18" rx="5" fill="#10281F" stroke="#255B46"/>
49
- <rect x="352" y="198" width="40" height="18" rx="5" fill="#15243A" stroke="#2C4A72"/>
50
- <rect x="240" y="230" width="140" height="6" rx="3" fill="#233650"/>
51
-
52
- <rect x="424" y="102" width="192" height="150" rx="14" fill="#121F32" stroke="#2A405E"/>
53
- <rect x="440" y="120" width="42" height="6" rx="3" fill="#6F87A6"/>
54
- <rect x="440" y="136" width="160" height="8" rx="4" fill="#8CA2BF"/>
55
- <rect x="440" y="154" width="120" height="8" rx="4" fill="#6F87A6"/>
56
- <rect x="440" y="178" width="160" height="8" rx="4" fill="#8CA2BF"/>
57
- <rect x="440" y="196" width="96" height="8" rx="4" fill="#6F87A6"/>
58
- <rect x="440" y="220" width="158" height="6" rx="3" fill="#233650"/>
59
- <rect x="440" y="220" width="118" height="6" rx="3" fill="url(#violet)"/>
60
-
61
- <circle cx="566" cy="52" r="6" fill="#67D6C7" opacity="0.8"/>
62
- <circle cx="540" cy="52" r="3" fill="#67D6C7" opacity="0.4"/>
63
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 300" width="640" height="300" role="img" aria-label="A champion panel with three augment cards and a recommendation score">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#0D1727"/>
5
+ <stop offset="1" stop-color="#172A40"/>
6
+ </linearGradient>
7
+ <linearGradient id="gold" x1="0" y1="0" x2="1" y2="1">
8
+ <stop offset="0" stop-color="#F0D79A"/>
9
+ <stop offset="1" stop-color="#B8862F"/>
10
+ </linearGradient>
11
+ <linearGradient id="teal" x1="0" y1="0" x2="1" y2="0">
12
+ <stop offset="0" stop-color="#2F8C8C"/>
13
+ <stop offset="1" stop-color="#67D6C7"/>
14
+ </linearGradient>
15
+ <linearGradient id="violet" x1="0" y1="0" x2="1" y2="0">
16
+ <stop offset="0" stop-color="#6D4BB3"/>
17
+ <stop offset="1" stop-color="#B18CFF"/>
18
+ </linearGradient>
19
+ </defs>
20
+ <rect x="0" y="0" width="640" height="300" rx="18" fill="url(#bg)"/>
21
+ <rect x="24" y="20" width="592" height="64" rx="13" fill="#121F32" stroke="#2A405E"/>
22
+ <circle cx="58" cy="52" r="21" fill="#213A55" stroke="#D9B86C" stroke-width="2"/>
23
+ <path d="M50 52l6-9 6 9-6 9-6-9z" fill="url(#gold)"/>
24
+ <rect x="88" y="36" width="112" height="11" rx="5.5" fill="#D8E4F2"/>
25
+ <rect x="88" y="54" width="82" height="8" rx="4" fill="#6F87A6"/>
26
+ <rect x="430" y="30" width="76" height="42" rx="10" fill="#1C2D45" stroke="#334A63"/>
27
+ <rect x="442" y="40" width="52" height="7" rx="3.5" fill="#6F87A6"/>
28
+ <rect x="442" y="54" width="44" height="11" rx="5" fill="url(#gold)"/>
29
+ <rect x="516" y="34" width="82" height="20" rx="10" fill="#2A2315" stroke="#D9B86C" stroke-width="1.4"/>
30
+ <rect x="532" y="40" width="50" height="7" rx="3.5" fill="#E8CF96"/>
31
+
32
+ <rect x="24" y="102" width="184" height="150" rx="14" fill="#121F32" stroke="#2A405E"/>
33
+ <rect x="40" y="118" width="152" height="8" rx="4" fill="#6F87A6"/>
34
+ <rect x="40" y="136" width="120" height="6" rx="3" fill="#334A63"/>
35
+ <rect x="40" y="158" width="108" height="24" rx="6" fill="#1C2D45" stroke="#334A63"/>
36
+ <rect x="40" y="190" width="108" height="24" rx="6" fill="#1C2D45" stroke="#334A63"/>
37
+ <rect x="40" y="222" width="70" height="10" rx="5" fill="url(#teal)"/>
38
+
39
+ <rect x="224" y="102" width="184" height="150" rx="14" fill="#182437" stroke="#D9B86C" stroke-width="2"/>
40
+ <circle cx="250" cy="128" r="12" fill="#2A2315" stroke="#D9B86C"/>
41
+ <rect x="272" y="120" width="96" height="9" rx="4.5" fill="#E8EEF8"/>
42
+ <rect x="272" y="135" width="56" height="7" rx="3.5" fill="#D9B86C"/>
43
+ <rect x="240" y="155" width="152" height="6" rx="3" fill="#273A52"/>
44
+ <rect x="240" y="155" width="122" height="6" rx="3" fill="url(#gold)"/>
45
+ <rect x="240" y="174" width="72" height="8" rx="4" fill="#D8E4F2"/>
46
+ <rect x="320" y="174" width="70" height="8" rx="4" fill="#6F87A6"/>
47
+ <rect x="240" y="198" width="49" height="18" rx="5" fill="#2A2315" stroke="#6B5428"/>
48
+ <rect x="296" y="198" width="49" height="18" rx="5" fill="#10281F" stroke="#255B46"/>
49
+ <rect x="352" y="198" width="40" height="18" rx="5" fill="#15243A" stroke="#2C4A72"/>
50
+ <rect x="240" y="230" width="140" height="6" rx="3" fill="#233650"/>
51
+
52
+ <rect x="424" y="102" width="192" height="150" rx="14" fill="#121F32" stroke="#2A405E"/>
53
+ <rect x="440" y="120" width="42" height="6" rx="3" fill="#6F87A6"/>
54
+ <rect x="440" y="136" width="160" height="8" rx="4" fill="#8CA2BF"/>
55
+ <rect x="440" y="154" width="120" height="8" rx="4" fill="#6F87A6"/>
56
+ <rect x="440" y="178" width="160" height="8" rx="4" fill="#8CA2BF"/>
57
+ <rect x="440" y="196" width="96" height="8" rx="4" fill="#6F87A6"/>
58
+ <rect x="440" y="220" width="158" height="6" rx="3" fill="#233650"/>
59
+ <rect x="440" y="220" width="118" height="6" rx="3" fill="url(#violet)"/>
60
+
61
+ <circle cx="566" cy="52" r="6" fill="#67D6C7" opacity="0.8"/>
62
+ <circle cx="540" cy="52" r="3" fill="#67D6C7" opacity="0.4"/>
63
+ </svg>
package/icon.svg CHANGED
@@ -1,23 +1,23 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="ARAM Mayhem assistant">
2
- <defs>
3
- <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
- <stop offset="0" stop-color="#101D2E"/>
5
- <stop offset="1" stop-color="#1C3045"/>
6
- </linearGradient>
7
- <linearGradient id="gold" x1="0" y1="0" x2="1" y2="1">
8
- <stop offset="0" stop-color="#F0D79A"/>
9
- <stop offset="1" stop-color="#B8862F"/>
10
- </linearGradient>
11
- <linearGradient id="teal" x1="0" y1="0" x2="1" y2="0">
12
- <stop offset="0" stop-color="#2F8C8C"/>
13
- <stop offset="1" stop-color="#67D6C7"/>
14
- </linearGradient>
15
- </defs>
16
- <rect x="2" y="2" width="60" height="60" rx="15" fill="url(#bg)" stroke="#334A63" stroke-width="1.5"/>
17
- <path d="M32 8.5l16 9.2v18.6L32 45.5 16 36.3V17.7l16-9.2z" fill="none" stroke="url(#gold)" stroke-width="2.2" stroke-linejoin="round"/>
18
- <path d="M32 16l9.2 5.3v10.8L32 37.4l-9.2-5.3V21.3L32 16z" fill="url(#gold)" opacity="0.9"/>
19
- <path d="M22 47.5c4 2.8 8 4.2 12 4.2s8-1.4 12-4.2" fill="none" stroke="url(#teal)" stroke-width="2.4" stroke-linecap="round"/>
20
- <circle cx="24" cy="50.5" r="2" fill="#67D6C7"/>
21
- <circle cx="32" cy="53.5" r="2" fill="#67D6C7" opacity="0.7"/>
22
- <circle cx="40" cy="50.5" r="2" fill="#67D6C7" opacity="0.45"/>
23
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="ARAM Mayhem assistant">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#101D2E"/>
5
+ <stop offset="1" stop-color="#1C3045"/>
6
+ </linearGradient>
7
+ <linearGradient id="gold" x1="0" y1="0" x2="1" y2="1">
8
+ <stop offset="0" stop-color="#F0D79A"/>
9
+ <stop offset="1" stop-color="#B8862F"/>
10
+ </linearGradient>
11
+ <linearGradient id="teal" x1="0" y1="0" x2="1" y2="0">
12
+ <stop offset="0" stop-color="#2F8C8C"/>
13
+ <stop offset="1" stop-color="#67D6C7"/>
14
+ </linearGradient>
15
+ </defs>
16
+ <rect x="2" y="2" width="60" height="60" rx="15" fill="url(#bg)" stroke="#334A63" stroke-width="1.5"/>
17
+ <path d="M32 8.5l16 9.2v18.6L32 45.5 16 36.3V17.7l16-9.2z" fill="none" stroke="url(#gold)" stroke-width="2.2" stroke-linejoin="round"/>
18
+ <path d="M32 16l9.2 5.3v10.8L32 37.4l-9.2-5.3V21.3L32 16z" fill="url(#gold)" opacity="0.9"/>
19
+ <path d="M22 47.5c4 2.8 8 4.2 12 4.2s8-1.4 12-4.2" fill="none" stroke="url(#teal)" stroke-width="2.4" stroke-linecap="round"/>
20
+ <circle cx="24" cy="50.5" r="2" fill="#67D6C7"/>
21
+ <circle cx="32" cy="53.5" r="2" fill="#67D6C7" opacity="0.7"/>
22
+ <circle cx="40" cy="50.5" r="2" fill="#67D6C7" opacity="0.45"/>
23
+ </svg>