diff --git a/Agent.md b/Agent.md index a85a25c2..a31649bd 100644 --- a/Agent.md +++ b/Agent.md @@ -64,7 +64,7 @@ EMRG is a self-evolving AI agent architecture experiment. Python implementation, - Streaming chat with delta rendering (16ms batching), markdown on done (marked + DOMPurify + local highlight.js subset), tool call status cards (2000-char truncation + expand) - Session list/switch/new/delete + right-click rename (context menu, #423) synced with daemon; own-stream busy lock (G65); broadcast streams from other clients tagged "来自其他客户端" - Disconnect/reconnect: red status dot, auto daemon respawn (stale-port detection), session resume, input bar restored on disconnect (no 30s fake-timeout) - - Unit tests `npm test` (34: 22 daemon_client + 7 integration + 5 renderer smoke); RESPONSE_TYPES mirror daemon protocol verified against `daemon.py` + - Unit tests `npm test` (35: 22 daemon_client + 7 integration + 6 renderer smoke); RESPONSE_TYPES mirror daemon protocol verified against `daemon.py` - **Auto project tracking** — Automatically detects and records working directories; project-scoped sessions - **Rant-driven evolution** — User feedback via `/rant` drives automatic self-improvement cycles - **Headless GitHub auth** — Non-interactive evolution auto-extracts `GH_TOKEN` from git credential store (osxkeychain / credential helper); PR comment/LGTM queries fall back to REST API (GraphQL needs `read:org` scope) @@ -92,7 +92,7 @@ pkill -f "emrg.server"; rm -f ~/.emrg/emrgd.port; python -m emrg ``` Python: `uv run pytest tests/ -v` (472) — import check: `uv run python -c "from emrg.client.app import run_client"` -GUI: `cd emrg/gui && npm test` (34: 22 daemon_client + 7 integration + 5 renderer smoke) — syntax: `node --check main.js preload.js daemon_client.js renderer/js/*.js` +GUI: `cd emrg/gui && npm test` (35: 22 daemon_client + 7 integration + 6 renderer smoke) — syntax: `node --check main.js preload.js daemon_client.js renderer/js/*.js` ## Configuration diff --git a/README.en.md b/README.en.md index 51d4d579..2e415fe5 100644 --- a/README.en.md +++ b/README.en.md @@ -270,7 +270,7 @@ uv run python -m emrg # launch TUI cd emrg/gui npm ci # install deps (production: --omit=dev) npm start # launch GUI (auto-starts daemon) -npm test # run Node tests (34: 22 daemon_client + 7 integration + 5 renderer smoke; integration runs in CI, local: npm run test:integration) +npm test # run Node tests (35: 22 daemon_client + 7 integration + 6 renderer smoke; integration runs in CI, local: npm run test:integration) ``` CI runs tests and checks for conflict markers automatically via GitHub Actions (`.github/workflows/test.yml`). diff --git a/README.md b/README.md index 568b39af..b7a2a46f 100644 --- a/README.md +++ b/README.md @@ -286,7 +286,7 @@ uv run python -m emrg # 启动 TUI cd emrg/gui npm ci # 安装依赖(生产模式可 --omit=dev) npm start # 启动 GUI(自动拉起 daemon) -npm test # 运行 Node 测试(34 项:22 daemon_client + 7 integration + 5 renderer smoke;集成测试在 CI 跑,本地可 npm run test:integration) +npm test # 运行 Node 测试(35 项:22 daemon_client + 7 integration + 6 renderer smoke;集成测试在 CI 跑,本地可 npm run test:integration) ``` CI 通过 GitHub Actions 自动运行测试并检查冲突标记(`.github/workflows/test.yml`)。