Jarvis-Brain 0.1.13.9__tar.gz → 0.1.13.10__tar.gz

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.13.9
3
+ Version: 0.1.13.10
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Jarvis_Brain" # 别人下载时用的名字,必须在 PyPI 上唯一
3
- version = "0.1.13.9"
3
+ version = "0.1.13.10"
4
4
  description = "Jarvis brain mcp"
5
5
  dependencies = [
6
6
  "fastmcp",
@@ -102,11 +102,11 @@ function getSimplifiedDOM(node) {
102
102
  return getSimplifiedDOM(document.body);
103
103
  """
104
104
 
105
- # 我自己优化后的版本,逻辑为:删除不可见元素、标签的任何属性value的长度大于20时直接删除这个属性、id和class采用简写方式:id=>#,class=>.
105
+ # 我自己优化后的版本,逻辑为:删除不可见元素、标签的任何属性value的长度大于30时直接删除这个属性、id和class采用简写方式:id=>#,class=>.
106
106
  compress_html_js="""
107
107
  function getSimplifiedDOM(node) {
108
108
  // 全局配置:最大属性值长度
109
- const MAX_ATTR_LEN = 40;
109
+ const MAX_ATTR_LEN = 30;
110
110
 
111
111
  // 1. 处理文本节点
112
112
  if (node.nodeType === Node.TEXT_NODE) {