Jarvis-Brain 0.1.5.2__tar.gz → 0.1.5.3__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.2
3
+ Version: 0.1.5.3
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -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
  # 页面管理
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Jarvis_Brain" # 别人下载时用的名字,必须在 PyPI 上唯一
3
- version = "0.1.5.2"
3
+ version = "0.1.5.3"
4
4
  description = "Jarvis brain mcp"
5
5
  dependencies = [
6
6
  "fastmcp",
@@ -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
 
File without changes
File without changes