Jarvis-Brain 0.1.5.10__tar.gz → 0.1.5.11__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.5.10
3
+ Version: 0.1.5.11
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -35,14 +35,14 @@ def register_get_html(mcp: FastMCP, browser_manager):
35
35
  async def get_html(browser_port: int, tab_id: str) -> dict[str, Any]:
36
36
  _browser = browser_manager.get_browser(browser_port)
37
37
  tab = _browser.get_tab(tab_id)
38
- file_name = str(tab.title).replace("/", "_").replace(":", "_")
38
+ file_name_prefix = str(tab.title).replace("/", "_").replace(":", "_")
39
39
  if not os.path.exists(html_source_code_local_save_path):
40
40
  os.makedirs(html_source_code_local_save_path)
41
41
  min_html, compress_rate = compress_html(tab.html)
42
42
  html_str_list = [min_html[i:i + ont_turn_max_token] for i in range(0, len(min_html), ont_turn_max_token)]
43
43
  html_file_list = []
44
44
  for index, html_str in enumerate(html_str_list):
45
- file_name = file_name + f"_{tab_id}_segment{index}.html"
45
+ file_name = file_name_prefix + f"_{tab_id}_segment{index}.html"
46
46
  abs_path = os.path.join(html_source_code_local_save_path, file_name)
47
47
  with open(abs_path, "w", encoding="utf-8") as f:
48
48
  f.write(html_str)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Jarvis_Brain" # 别人下载时用的名字,必须在 PyPI 上唯一
3
- version = "0.1.5.10"
3
+ version = "0.1.5.11"
4
4
  description = "Jarvis brain mcp"
5
5
  dependencies = [
6
6
  "fastmcp",
File without changes