mobile-mcp-ai 2.5.1__py3-none-any.whl → 2.5.2__py3-none-any.whl
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.
- mobile_mcp/core/template_matcher.py +14 -3
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/METADATA +1 -1
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/RECORD +13 -13
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_151217.png +0 -0
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_152037.png +0 -0
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_152840.png +0 -0
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_153256.png +0 -0
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_154847.png +0 -0
- {mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/gray_x_stock_ad.png +0 -0
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/WHEEL +0 -0
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/entry_points.txt +0 -0
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/licenses/LICENSE +0 -0
- {mobile_mcp_ai-2.5.1.dist-info → mobile_mcp_ai-2.5.2.dist-info}/top_level.txt +0 -0
|
@@ -24,9 +24,20 @@ class TemplateMatcher:
|
|
|
24
24
|
template_dir: 模板目录路径,默认为 templates/close_buttons/
|
|
25
25
|
"""
|
|
26
26
|
if template_dir is None:
|
|
27
|
-
#
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
# 默认模板目录:优先使用包内目录,其次使用项目根目录
|
|
28
|
+
core_dir = Path(__file__).parent
|
|
29
|
+
# 1. 包内目录 (pip 安装后)
|
|
30
|
+
pkg_template_dir = core_dir / "templates" / "close_buttons"
|
|
31
|
+
# 2. 项目根目录 (开发时)
|
|
32
|
+
root_template_dir = core_dir.parent / "templates" / "close_buttons"
|
|
33
|
+
|
|
34
|
+
if pkg_template_dir.exists():
|
|
35
|
+
self.template_dir = pkg_template_dir
|
|
36
|
+
elif root_template_dir.exists():
|
|
37
|
+
self.template_dir = root_template_dir
|
|
38
|
+
else:
|
|
39
|
+
# 默认创建包内目录
|
|
40
|
+
self.template_dir = pkg_template_dir
|
|
30
41
|
else:
|
|
31
42
|
self.template_dir = Path(template_dir)
|
|
32
43
|
|
|
@@ -7,7 +7,13 @@ mobile_mcp/core/dynamic_config.py,sha256=Ja1n1pfb0HspGByqk2_A472mYVniKmGtNEWyjUj
|
|
|
7
7
|
mobile_mcp/core/ios_client_wda.py,sha256=Nq9WxevhTWpVpolM-Ymp-b0nUQV3tXLFszmJHbDC4wA,18770
|
|
8
8
|
mobile_mcp/core/ios_device_manager_wda.py,sha256=A44glqI-24un7qST-E3w6BQD8mV92YVUbxy4rLlTScY,11264
|
|
9
9
|
mobile_mcp/core/mobile_client.py,sha256=bno3HvU-QSAC3G4TnoFngTxqXeu-ZP5rGlEWdWh8jOo,62570
|
|
10
|
-
mobile_mcp/core/template_matcher.py,sha256=
|
|
10
|
+
mobile_mcp/core/template_matcher.py,sha256=tv8RU6zdeDobqphaP4Y8sicb1esg3gcQlZae1tNyitM,14559
|
|
11
|
+
mobile_mcp/core/templates/close_buttons/auto_x_0112_151217.png,sha256=s7tBVaYLBApNSEXjwi5kX8GXwUqgbNyNVEhXYjN9nd4,27373
|
|
12
|
+
mobile_mcp/core/templates/close_buttons/auto_x_0112_152037.png,sha256=s7tBVaYLBApNSEXjwi5kX8GXwUqgbNyNVEhXYjN9nd4,27373
|
|
13
|
+
mobile_mcp/core/templates/close_buttons/auto_x_0112_152840.png,sha256=s7tBVaYLBApNSEXjwi5kX8GXwUqgbNyNVEhXYjN9nd4,27373
|
|
14
|
+
mobile_mcp/core/templates/close_buttons/auto_x_0112_153256.png,sha256=s7tBVaYLBApNSEXjwi5kX8GXwUqgbNyNVEhXYjN9nd4,27373
|
|
15
|
+
mobile_mcp/core/templates/close_buttons/auto_x_0112_154847.png,sha256=apPPFft1LLP_4KppbRGd2zOl3nfSGYFqzYeyzncaduk,27679
|
|
16
|
+
mobile_mcp/core/templates/close_buttons/gray_x_stock_ad.png,sha256=5D3pOa74Zj21v7I-zpYo2Pe4ZC8PB-N3_yo_LFNnlLw,4504
|
|
11
17
|
mobile_mcp/core/utils/__init__.py,sha256=RhMMsPszmEn8Q8GoNufypVSHJxyM9lio9U6jjpnuoPI,378
|
|
12
18
|
mobile_mcp/core/utils/logger.py,sha256=XXQAHUwT1jc70pq_tYFmL6f_nKrFlYm3hcgl-5RYRg0,3402
|
|
13
19
|
mobile_mcp/core/utils/operation_history_manager.py,sha256=gi8S8HJAMqvkUrY7_-kVbko3Xt7c4GAUziEujRd-N-Y,4792
|
|
@@ -18,15 +24,9 @@ mobile_mcp/utils/__init__.py,sha256=8EH0i7UGtx1y_j_GEgdN-cZdWn2sRtZSEOLlNF9HRnY,
|
|
|
18
24
|
mobile_mcp/utils/logger.py,sha256=Sqq2Nr0Y4p03erqcrbYKVPCGiFaNGHMcE_JwCkeOfU4,3626
|
|
19
25
|
mobile_mcp/utils/xml_formatter.py,sha256=uwTRb3vLbqhT8O-udzWT7s7LsV-DyDUz2DkofD3hXOE,4556
|
|
20
26
|
mobile_mcp/utils/xml_parser.py,sha256=QhL8CWbdmNDzmBLjtx6mEnjHgMFZzJeHpCL15qfXSpI,3926
|
|
21
|
-
mobile_mcp_ai-2.5.
|
|
22
|
-
mobile_mcp_ai-2.5.
|
|
23
|
-
mobile_mcp_ai-2.5.
|
|
24
|
-
mobile_mcp_ai-2.5.
|
|
25
|
-
mobile_mcp_ai-2.5.
|
|
26
|
-
mobile_mcp_ai-2.5.
|
|
27
|
-
mobile_mcp_ai-2.5.1.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
28
|
-
mobile_mcp_ai-2.5.1.dist-info/METADATA,sha256=c05gAJCx4YX8HoHvfQr_mvBMye6xePKNBwPQ8RU4iT0,9745
|
|
29
|
-
mobile_mcp_ai-2.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
-
mobile_mcp_ai-2.5.1.dist-info/entry_points.txt,sha256=KB_FglozgPHBprSM1vFbIzGyheFuHFmGanscRdMJ_8A,68
|
|
31
|
-
mobile_mcp_ai-2.5.1.dist-info/top_level.txt,sha256=lLm6YpbTv855Lbh8BIA0rPxhybIrvYUzMEk9OErHT94,11
|
|
32
|
-
mobile_mcp_ai-2.5.1.dist-info/RECORD,,
|
|
27
|
+
mobile_mcp_ai-2.5.2.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
28
|
+
mobile_mcp_ai-2.5.2.dist-info/METADATA,sha256=fqKamhjV66KFBFvcfGrfHYFKb-zB75P8-mqEVuhDlSI,9745
|
|
29
|
+
mobile_mcp_ai-2.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
mobile_mcp_ai-2.5.2.dist-info/entry_points.txt,sha256=KB_FglozgPHBprSM1vFbIzGyheFuHFmGanscRdMJ_8A,68
|
|
31
|
+
mobile_mcp_ai-2.5.2.dist-info/top_level.txt,sha256=lLm6YpbTv855Lbh8BIA0rPxhybIrvYUzMEk9OErHT94,11
|
|
32
|
+
mobile_mcp_ai-2.5.2.dist-info/RECORD,,
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_151217.png
RENAMED
|
File without changes
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_152037.png
RENAMED
|
File without changes
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_152840.png
RENAMED
|
File without changes
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_153256.png
RENAMED
|
File without changes
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/auto_x_0112_154847.png
RENAMED
|
File without changes
|
{mobile_mcp_ai-2.5.1.data/data → mobile_mcp/core}/templates/close_buttons/gray_x_stock_ad.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|