Commit Graph

14 Commits

Author SHA1 Message Date
Alezander9
76569995fd Improve OSS-to-cloud conversion: UTM tracking, better error messages, and cloud nudges
- Add UTM params to all cloud-bound links across README, CLI, and error messages
- Rewrite README Open Source vs Cloud section: position cloud browsers as
  recommended pairing for OSS users, remove separate Use Both section
- Rewrite error messages for use_cloud=True and ChatBrowserUse() to clearly
  state what is wrong and what to do next
- Add missing URLs: invalid API key now links to key page, insufficient
  credits now links to billing page
- Add cloud browser nudge on captcha detection (logger.warning)
- Add cloud browser nudge on local browser launch failure
2026-04-08 22:05:50 -07:00
ShawnPana
bdb02ddc6a Fix lint: avoid private import usage for InquirerPy.fuzzy
- Use getattr(inquirer, 'fuzzy') to avoid pyright reportPrivateImportUsage error
- Apply ruff format to fix code formatting
2025-11-12 20:51:16 -08:00
ShawnPana
fe56d27424 Add fuzzy search TUI for template selection
- Replace ListPrompt with FuzzyPrompt for real-time search
- Add responsive layout based on terminal width
- Display author names for non-default templates
- Organize templates: defaults, featured, others
- Sort by last modified date within sections
- Remove default pre-selection for cleaner UX

Enhances template discovery with intuitive search and better organization.
2025-11-12 20:43:36 -08:00
ShawnPana
24ec8e6696 address cubic 2025-10-30 20:05:32 -07:00
ShawnPana
c5a31c5ed4 Fix type errors: add Any import, INIT_TEMPLATES export, and update return types 2025-10-30 19:53:27 -07:00
ShawnPana
fd67e3b4dd Replace hardcoded template logic with manifest-driven system from template-library 2025-10-30 19:36:54 -07:00
ShawnPana
2431180fb5 Remove FALLBACK_TEMPLATES and make template system fully GitHub-dependent with graceful offline error handling 2025-10-30 19:27:03 -07:00
ShawnPana
944905554e Implement GitHub-based template system
- Remove local template files (advanced, default, tools)
- Fetch templates dynamically from template-library repo
- Add templates.json for dynamic template discovery
- Fetch both template list and content at runtime from GitHub
- Fall back to hardcoded FALLBACK_TEMPLATES for offline use
- Add binary file fetching support for PDFs and assets
- Enable instant template updates without code changes

Templates now managed in: https://github.com/browser-use/template-library

Benefits:
- Add new templates by editing template-library only
- Users get instant access without PyPI releases
- Cleaner separation of concerns
- No template files in main codebase
2025-10-30 19:15:51 -07:00
Reagan Hsu
536600678f added listing functionality if no template is provided 2025-10-28 11:30:57 -07:00
Reagan Hsu
47b92ca715 fixed instant selection 2025-10-28 11:30:57 -07:00
Reagan Hsu
7e2d4f5dbd add instant selection with numbers 2025-10-28 11:30:57 -07:00
Reagan Hsu
4de1439f81 change wording; will test now 2025-10-28 11:30:57 -07:00
Reagan Hsu
c653d21284 Make init command work without [cli] extras by adding core dependencies
Add click, rich, and InquirerPy to core dependencies to enable
'uvx browser-use init' to work out of the box with beautiful styling
and arrow-key template selection.

Dependencies added to core (all permissive licenses):
- click>=8.1.8 (BSD-3-Clause, 756KB, zero deps)
- rich>=14.0.0 (MIT, 1.8MB, 2 deps: markdown-it-py, pygments)
- InquirerPy>=0.3.4 (MIT, 483KB, 2 deps: prompt-toolkit, pfzy)

Total impact: ~3MB + 4 transitive dependencies
All licenses are compatible with browser-use's MIT license.

Benefits:
- uvx browser-use init works without [cli] extras
- Beautiful terminal output with colors and panels
- Arrow-key navigation for template selection
- Consistent UX across all init methods

[cli] extras now only contain textual for the full TUI application.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 11:30:57 -07:00
Reagan Hsu
dd1fca43d7 Make init command work without browser-use[cli] extras
- Add click to core dependencies (moved from [cli] optional deps)
- Create standalone browser_use/init_cmd.py with template generation logic
- Add early check in cli.py to redirect 'init' subcommand to init_cmd.py
- This allows 'uvx browser-use init' to work without installing textual/rich

Users can now run template generation with minimal dependencies:
  uvx browser-use init              # Interactive template selection
  uvx browser-use init -t default   # Generate default template
  uvx browser-use init --list       # List available templates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 11:30:52 -07:00