- Update COVERAGE.md to reflect completed features (now ~60%) - Update main README with features and tools list - Update CLI README with streaming options - Expand API tests from 5 to 11 (add stream endpoint tests) - Add 14 security tests for path traversal, command injection - Total tests: 109 (up from 88) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
66 lines
1.4 KiB
Markdown
66 lines
1.4 KiB
Markdown
# Webber CLI
|
|
|
|
Command-line client for the Webber API.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
# Create virtual environment
|
|
python3.12 -m venv .venv
|
|
source .venv/bin/activate
|
|
|
|
# Install dependencies
|
|
pip install -r requirements.txt
|
|
|
|
# Install package in editable mode
|
|
pip install -e .
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
# Check API connection
|
|
webber-cli status
|
|
|
|
# Explore a codebase (streams by default)
|
|
webber-cli explore "find all python files" -d /path/to/project
|
|
|
|
# Batch mode (wait for full response)
|
|
webber-cli explore "find bugs" -d /path/to/project --no-stream
|
|
|
|
# Interactive chat mode
|
|
webber-cli chat -d /path/to/project
|
|
|
|
# Chat without streaming
|
|
webber-cli chat -d /path/to/project --no-stream
|
|
```
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `status` | Check API connection and list available agents |
|
|
| `explore QUERY` | One-shot codebase exploration |
|
|
| `chat` | Interactive chat session |
|
|
|
|
## Options
|
|
|
|
| Option | Short | Description |
|
|
|--------|-------|-------------|
|
|
| `--directory` | `-d` | Working directory for exploration |
|
|
| `--api` | `-a` | API URL (default: `$WEBBER_API_URL` or `http://localhost:8095`) |
|
|
| `--stream/--no-stream` | `-s` | Enable/disable streaming (default: enabled) |
|
|
| `--agent` | | Agent to use (default: `explore`) |
|
|
|
|
## Configuration
|
|
|
|
Set the API URL via environment variable:
|
|
```bash
|
|
export WEBBER_API_URL=http://localhost:8095
|
|
```
|
|
|
|
## Requirements
|
|
|
|
- Python 3.12+
|
|
- Webber API running (see `../webber-api/`)
|