From 0215fc883db36abf900e552d0b44e385d76d22e6 Mon Sep 17 00:00:00 2001 From: EMRG Evolution Date: Thu, 6 Aug 2026 07:51:39 +0800 Subject: [PATCH] =?UTF-8?q?emrg:=20docs=20=E2=80=94=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=20GUI=20=E6=B5=8B=E8=AF=95=E6=95=B0=2034=E2=86=9235=EF=BC=88#4?= =?UTF-8?q?23=20=E6=96=B0=E5=A2=9E=20renderer=20=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=86=92=E7=83=9F=E6=B5=8B=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #423(右键菜单重命名)新增 1 个 renderer smoke 测试,npm test 从 34 增至 35(22 daemon_client + 7 integration + 6 renderer smoke)。 README.md / README.en.md / Agent.md(2 处)同步更新。 --- Agent.md | 4 ++-- README.en.md | 2 +- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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`)。