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:
2026-04-02 02:06:46 +08:00
parent 3334a41e5a
commit 49d704c363
15 changed files with 117 additions and 2151 deletions

View File

@@ -38,8 +38,13 @@ def test_runtime_service_health_and_status(monkeypatch):
assert health_response.json() == {
"status": "healthy",
"service": "runtime-service",
"gateway_running": False,
"gateway_port": 9876,
"gateway": {
"running": False,
"port": 9876,
"pid": None,
"process_status": "not_running",
"returncode": None,
},
}
assert status_response.status_code == 200
assert status_response.json() == {
@@ -48,6 +53,8 @@ def test_runtime_service_health_and_status(monkeypatch):
"runtime": {
"gateway_running": False,
"gateway_port": 9876,
"gateway_pid": None,
"gateway_process_status": "not_running",
"has_runtime_manager": True,
},
}
@@ -365,6 +372,8 @@ def test_runtime_service_start_stop_lifecycle_contract(monkeypatch, tmp_path):
return self.context
class _DummyProcess:
pid = 12345
def poll(self):
return None
@@ -574,6 +583,8 @@ def test_start_runtime_restore_reuses_historical_run_id(monkeypatch, tmp_path):
return self.context
class _DummyProcess:
pid = 12345
def poll(self):
return None