Refactor code structure for improved readability and maintainability
This commit is contained in:
22
README.md
22
README.md
@ -104,13 +104,18 @@ uv sync
|
||||
|
||||
```bash
|
||||
cd /Users/tom/projects/memory-gateway
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -U pip
|
||||
pip install -e ".[dev]"
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
uv sync
|
||||
```
|
||||
|
||||
也可以用 `uv`:
|
||||
如果已经安装过 `uv`,只需要运行:
|
||||
|
||||
```bash
|
||||
uv sync
|
||||
```
|
||||
|
||||
如果需要在服务器上跑测试或开发检查,再安装开发依赖:
|
||||
|
||||
```bash
|
||||
uv sync --extra dev
|
||||
@ -227,8 +232,7 @@ uv run python src/run.py --port 1995
|
||||
|
||||
```bash
|
||||
cd /Users/tom/projects/memory-gateway
|
||||
source .venv/bin/activate
|
||||
python -m memory_system_api.server --config config.yaml --host 0.0.0.0 --port 1934
|
||||
uv run memory-gateway --config config.yaml --host 0.0.0.0 --port 1934
|
||||
```
|
||||
|
||||
健康检查:
|
||||
@ -769,8 +773,8 @@ curl -sS -X POST "$API/openviking/tasks/<task_id>" \
|
||||
## 开发检查
|
||||
|
||||
```bash
|
||||
PYTHONPATH=/home/tom/memory-gateway pytest -q
|
||||
python -m compileall -q memory_system_api plugins eval tests
|
||||
uv run pytest -q
|
||||
uv run python -m compileall -q memory_system_api plugins eval tests
|
||||
```
|
||||
|
||||
## Hermes Plugin 状态
|
||||
|
||||
Reference in New Issue
Block a user