Jarvis-Brain 0.1.9.9__py3-none-any.whl → 0.1.9.11__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.
- {jarvis_brain-0.1.9.9.dist-info → jarvis_brain-0.1.9.11.dist-info}/METADATA +1 -1
- jarvis_brain-0.1.9.11.dist-info/RECORD +11 -0
- tools/browser_proxy.py +1 -1
- tools/tools.py +9 -0
- jarvis_brain-0.1.9.9.dist-info/RECORD +0 -11
- {jarvis_brain-0.1.9.9.dist-info → jarvis_brain-0.1.9.11.dist-info}/WHEEL +0 -0
- {jarvis_brain-0.1.9.9.dist-info → jarvis_brain-0.1.9.11.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
mcp_tools/__init__.py,sha256=_ZzedxbxmVkdRH00ONOjQR31pZW-B8WPn5P2qE6T-Iw,3012
|
|
2
|
+
mcp_tools/dp_tools.py,sha256=AtUO8XMCBkXB0aS0QZDWLTYW9oUBr2ECjSL1YbjVY5w,17009
|
|
3
|
+
mcp_tools/main.py,sha256=84sv39oOw9vqr2MPxKy9pFVrevJ9nQJWFffpfg0s6iA,1098
|
|
4
|
+
tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
tools/browser_manager.py,sha256=zeYcWuzxoohMdnYUoZbRH7axFC_VtV8MsncfN8y0yw0,2023
|
|
6
|
+
tools/browser_proxy.py,sha256=nOnjTpZlHfA-rACEioKWvSHNnSI8l1pd7uCKGI1ypNk,7651
|
|
7
|
+
tools/tools.py,sha256=zYJCvwy7OUmYWKOhHbItSfttAmJLbC-ixXv9oW-TNTA,5033
|
|
8
|
+
jarvis_brain-0.1.9.11.dist-info/METADATA,sha256=ZmS8p7cvhEdrYmq_ZlECzmWknpqzV48cgq1EZW3XhV4,242
|
|
9
|
+
jarvis_brain-0.1.9.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
10
|
+
jarvis_brain-0.1.9.11.dist-info/entry_points.txt,sha256=YFQT4xpkUqt5dM5wlKPQQOqcjMuFrT9iuRAzIpAyH7U,51
|
|
11
|
+
jarvis_brain-0.1.9.11.dist-info/RECORD,,
|
tools/browser_proxy.py
CHANGED
tools/tools.py
CHANGED
|
@@ -53,6 +53,15 @@ def compress_html(content, only_text=False):
|
|
|
53
53
|
for meta in doc.xpath('//meta'):
|
|
54
54
|
meta.getparent().remove(meta)
|
|
55
55
|
|
|
56
|
+
for svg in doc.xpath('//svg'):
|
|
57
|
+
# 获取 SVG 内的文本内容
|
|
58
|
+
text_content = svg.text_content()
|
|
59
|
+
# 创建一个新的文本节点替换 SVG
|
|
60
|
+
parent = svg.getparent()
|
|
61
|
+
if parent is not None:
|
|
62
|
+
parent.text = (parent.text or '') + text_content
|
|
63
|
+
parent.remove(svg)
|
|
64
|
+
|
|
56
65
|
# 删除 style 属性
|
|
57
66
|
for element in doc.xpath('//*[@style]'):
|
|
58
67
|
element.attrib.pop('style')
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
mcp_tools/__init__.py,sha256=_ZzedxbxmVkdRH00ONOjQR31pZW-B8WPn5P2qE6T-Iw,3012
|
|
2
|
-
mcp_tools/dp_tools.py,sha256=AtUO8XMCBkXB0aS0QZDWLTYW9oUBr2ECjSL1YbjVY5w,17009
|
|
3
|
-
mcp_tools/main.py,sha256=84sv39oOw9vqr2MPxKy9pFVrevJ9nQJWFffpfg0s6iA,1098
|
|
4
|
-
tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
tools/browser_manager.py,sha256=zeYcWuzxoohMdnYUoZbRH7axFC_VtV8MsncfN8y0yw0,2023
|
|
6
|
-
tools/browser_proxy.py,sha256=p-RAjpLltXb4r8dO69H-AOFQRvTf3y7hNNjHIxlZ4UY,7651
|
|
7
|
-
tools/tools.py,sha256=TaWs-CNXy-py9BFmCnJrQ09ke938xXpImf-N2Qo_Rvc,4708
|
|
8
|
-
jarvis_brain-0.1.9.9.dist-info/METADATA,sha256=UtovfT3s8UsVeIOCujqg_o4Wo7MtaiQOBqkzpyeehnw,241
|
|
9
|
-
jarvis_brain-0.1.9.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
10
|
-
jarvis_brain-0.1.9.9.dist-info/entry_points.txt,sha256=YFQT4xpkUqt5dM5wlKPQQOqcjMuFrT9iuRAzIpAyH7U,51
|
|
11
|
-
jarvis_brain-0.1.9.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|