refactor(cleanup): remove legacy CLI and complete EvoAgent migration cleanup
- Delete backend/cli.py and all CLI-specific tests (test_cli.py, test_openclaw_cli_service.py, test_skills_cli.py) - Remove evotraders console script from pyproject.toml - Update README/CLAUDE.md to reference python backend/main.py instead of CLI - Add pytest-asyncio to dev dependencies - Enhance EvoAgent with reload_runtime_assets and backward-compat attrs - Align tests with updated API semantics and gateway process models Constraint: CLI is deprecated in favor of split-service runtime model Confidence: high Scope-risk: moderate
This commit is contained in:
35
README.md
35
README.md
@@ -12,7 +12,7 @@
|
||||
|
||||
大时代 is an open-source financial trading agent framework that combines multi-agent collaboration, run-scoped workspaces, and memory to support both backtests and live trading workflows.
|
||||
|
||||
The repository name and CLI entrypoints still use `evotraders` for compatibility, but the product-facing branding now follows the 大时代 naming used by the reference branch.
|
||||
The repository name still uses `evotraders`, but the product-facing branding now follows the 大时代 naming used by the reference branch.
|
||||
|
||||
---
|
||||
|
||||
@@ -218,7 +218,7 @@ This starts:
|
||||
Then start the frontend in another terminal:
|
||||
|
||||
```bash
|
||||
evotraders frontend
|
||||
cd frontend && npm run dev
|
||||
```
|
||||
|
||||
Open `http://localhost:5173`.
|
||||
@@ -233,35 +233,29 @@ python -m uvicorn backend.apps.runtime_service:app --host 0.0.0.0 --port 8003 --
|
||||
# compatibility gateway path, not the recommended primary dev entrypoint
|
||||
python -m backend.main --mode live --host 0.0.0.0 --port 8765
|
||||
```
|
||||
|
||||
### 4. Run backtest or live mode from CLI
|
||||
### 4. Run backtest or live mode
|
||||
|
||||
Backtest:
|
||||
|
||||
```bash
|
||||
evotraders backtest --start 2025-11-01 --end 2025-12-01
|
||||
evotraders backtest --start 2025-11-01 --end 2025-12-01 --enable-memory
|
||||
evotraders backtest --config-name smoke_fullstack --start 2025-11-01 --end 2025-12-01
|
||||
python backend/main.py --mode backtest --config-name smoke_fullstack --start-date 2025-11-01 --end-date 2025-12-01
|
||||
python backend/main.py --mode backtest --config-name smoke_fullstack --start-date 2025-11-01 --end-date 2025-12-01 --enable-memory
|
||||
```
|
||||
|
||||
Live:
|
||||
|
||||
```bash
|
||||
evotraders live
|
||||
evotraders live --enable-memory
|
||||
evotraders live --schedule-mode intraday --interval-minutes 60
|
||||
evotraders live --trigger-time 22:30
|
||||
python backend/main.py --mode live --config-name live
|
||||
python backend/main.py --mode live --config-name live --enable-memory
|
||||
python backend/main.py --mode live --config-name live --interval-minutes 60
|
||||
python backend/main.py --mode live --config-name live --trigger-time 22:30
|
||||
```
|
||||
|
||||
Help:
|
||||
|
||||
```bash
|
||||
evotraders --help
|
||||
evotraders backtest --help
|
||||
evotraders live --help
|
||||
evotraders frontend --help
|
||||
python backend/main.py --help
|
||||
```
|
||||
|
||||
### Offline backtest data
|
||||
|
||||
If you want a quick backtest demo without external market APIs, download the offline bundle and unzip it into `backend/data`:
|
||||
@@ -381,11 +375,7 @@ trigger_time: "09:30"
|
||||
enable_memory: false
|
||||
```
|
||||
|
||||
Initialize run-scoped assets with:
|
||||
|
||||
```bash
|
||||
evotraders init-workspace --config-name my_run
|
||||
```
|
||||
Run-scoped workspaces are created automatically at runtime. No manual initialization is required.
|
||||
|
||||
---
|
||||
|
||||
@@ -399,8 +389,7 @@ evotraders/
|
||||
│ ├── apps/ # split service surfaces
|
||||
│ ├── core/ # pipeline, scheduler, state sync
|
||||
│ ├── runtime/ # runtime manager and agent runtime state
|
||||
│ ├── services/ # gateway, market/storage/db services
|
||||
│ └── cli.py # Typer CLI entrypoint
|
||||
│ └── services/ # gateway, market/storage/db services
|
||||
├── frontend/ # React + Vite UI
|
||||
├── shared/ # shared clients and schemas for split services
|
||||
├── runs/ # run-scoped state and dashboards
|
||||
|
||||
Reference in New Issue
Block a user