Jarvis-Brain 0.1.5.2__py3-none-any.whl → 0.1.5.3__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.5.2
3
+ Version: 0.1.5.3
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -0,0 +1,10 @@
1
+ mcp_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mcp_tools/dp_tools.py,sha256=TsktupVxzQkDRH4w-niEqJba3LkeWxIeyyx24ehpqAs,8411
3
+ mcp_tools/main.py,sha256=SiLF-tcEdApkzMjTZJEpVYX5d-LPW7aqy6A6lCBA7YQ,829
4
+ tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ tools/browser_manager.py,sha256=tUK9aKCmUcVWf7ok5ZSuHuARlyOXwiQfsFBJYqdGEgY,1742
6
+ tools/tools.py,sha256=qPa80xzQWCD8mSdg8isCgyei0XN8a7guGtR2J_MbQDU,4481
7
+ jarvis_brain-0.1.5.3.dist-info/METADATA,sha256=t1FGy-0xSy4WjQDKC7NwXiTrGAQVmBBaS8ovhD6u3po,241
8
+ jarvis_brain-0.1.5.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9
+ jarvis_brain-0.1.5.3.dist-info/entry_points.txt,sha256=YFQT4xpkUqt5dM5wlKPQQOqcjMuFrT9iuRAzIpAyH7U,51
10
+ jarvis_brain-0.1.5.3.dist-info/RECORD,,
mcp_tools/main.py CHANGED
@@ -7,7 +7,7 @@ mcp = FastMCP("Jarvis Brain Mcp Tools")
7
7
 
8
8
  # 根据环境变量加载模块
9
9
  enabled_modules = os.getenv("MCP_MODULES", "TeamNode-Dp").split(",")
10
- base_cwd = os.getenv("BASE_CWD", os.environ.get("PWD"))
10
+ base_cwd = os.getenv("BASE_CWD", os.path.expanduser('~'))
11
11
 
12
12
  if "TeamNode-Dp" in enabled_modules:
13
13
  # 页面管理
tools/browser_manager.py CHANGED
@@ -23,10 +23,9 @@ class BrowserManager:
23
23
 
24
24
  co = ChromiumOptions().set_local_port(random_port)
25
25
  custom_data_dir = os.path.join(os.path.expanduser('~'), 'DrissionPage', "userData", f"{random_port}")
26
-
27
- # 2. 配置浏览器选项,指定该目录
28
- # co = ChromiumOptions()
29
26
  co.set_user_data_path(custom_data_dir) # 设置用户数据路径
27
+ if not os.path.exists(custom_data_dir):
28
+ os.makedirs(custom_data_dir)
30
29
  self.browser_pool[random_port] = ChromiumPage(co)
31
30
  return random_port, self.browser_pool[random_port]
32
31
 
@@ -1,10 +0,0 @@
1
- mcp_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mcp_tools/dp_tools.py,sha256=TsktupVxzQkDRH4w-niEqJba3LkeWxIeyyx24ehpqAs,8411
3
- mcp_tools/main.py,sha256=ockDfiMWaNroXf6sJ9dk-jU-_SvoGgP-0t-TbW2XWyw,827
4
- tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- tools/browser_manager.py,sha256=G0nUQSmMVWzS08IjO87reEyMCpy-IiM3BxwdNUvcmdI,1740
6
- tools/tools.py,sha256=qPa80xzQWCD8mSdg8isCgyei0XN8a7guGtR2J_MbQDU,4481
7
- jarvis_brain-0.1.5.2.dist-info/METADATA,sha256=s5BNa9hKn38Tk0_S8iGPpDxwZ7h-x2NO1iXLtV8kRzM,241
8
- jarvis_brain-0.1.5.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9
- jarvis_brain-0.1.5.2.dist-info/entry_points.txt,sha256=YFQT4xpkUqt5dM5wlKPQQOqcjMuFrT9iuRAzIpAyH7U,51
10
- jarvis_brain-0.1.5.2.dist-info/RECORD,,