fix: update setup/config UI for local browser mode
- tools_config.py: Add 'Local Browser' as first provider option (no API keys needed, same npm install for agent-browser) - setup.py: Show 'Browser Automation (local)' when agent-browser CLI is found but no Browserbase key is set - config.py: Mark BROWSERBASE_* descriptions as optional - status.py: Note that local browser works without Browserbase
This commit is contained in:
@@ -306,11 +306,15 @@ def _print_setup_summary(config: dict, hermes_home):
|
||||
else:
|
||||
tool_status.append(("Web Search & Extract", False, "FIRECRAWL_API_KEY"))
|
||||
|
||||
# Browserbase (browser tools)
|
||||
# Browser tools (local Chromium or Browserbase cloud)
|
||||
import shutil
|
||||
_ab_found = shutil.which("agent-browser") or (Path(__file__).parent.parent / "node_modules" / ".bin" / "agent-browser").exists()
|
||||
if get_env_value('BROWSERBASE_API_KEY'):
|
||||
tool_status.append(("Browser Automation", True, None))
|
||||
tool_status.append(("Browser Automation (Browserbase)", True, None))
|
||||
elif _ab_found:
|
||||
tool_status.append(("Browser Automation (local)", True, None))
|
||||
else:
|
||||
tool_status.append(("Browser Automation", False, "BROWSERBASE_API_KEY"))
|
||||
tool_status.append(("Browser Automation", False, "npm install -g agent-browser"))
|
||||
|
||||
# FAL (image generation)
|
||||
if get_env_value('FAL_KEY'):
|
||||
|
||||
Reference in New Issue
Block a user