Jarvis-Brain 0.1.9.9__py3-none-any.whl → 0.1.9.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Jarvis_Brain
3
- Version: 0.1.9.9
3
+ Version: 0.1.9.10
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -4,8 +4,8 @@ mcp_tools/main.py,sha256=84sv39oOw9vqr2MPxKy9pFVrevJ9nQJWFffpfg0s6iA,1098
4
4
  tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  tools/browser_manager.py,sha256=zeYcWuzxoohMdnYUoZbRH7axFC_VtV8MsncfN8y0yw0,2023
6
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,,
7
+ tools/tools.py,sha256=zYJCvwy7OUmYWKOhHbItSfttAmJLbC-ixXv9oW-TNTA,5033
8
+ jarvis_brain-0.1.9.10.dist-info/METADATA,sha256=fNuw-T7uiMGN7Fjxc29zs-ynQseNXkTuVEPVvkvWWik,242
9
+ jarvis_brain-0.1.9.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ jarvis_brain-0.1.9.10.dist-info/entry_points.txt,sha256=YFQT4xpkUqt5dM5wlKPQQOqcjMuFrT9iuRAzIpAyH7U,51
11
+ jarvis_brain-0.1.9.10.dist-info/RECORD,,
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')