From 14fa7e150ae5717cbc4ae42d0f3d02fcbd186f89 Mon Sep 17 00:00:00 2001 From: iven Date: Fri, 17 Apr 2026 19:38:47 +0800 Subject: [PATCH] =?UTF-8?q?docs(wiki):=20Phase=201=20=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BD=93=E7=B3=BB=E9=87=8D=E6=9E=84=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/log.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wiki/log.md b/wiki/log.md index 05cca36..3ce9e50 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -9,6 +9,14 @@ tags: [log, history] > Append-only 操作记录。格式: `## [日期] 类型 | 描述` +## 2026-04-17 feat | Phase 1 错误体系重构 — ErrorKind + code + Serialize + +- **Rust**: `zclaw-types/error.rs` 新增 `ErrorKind` (17种) + `error_codes` (E4040-E5110) +- ZclawError 新增 `kind()` / `code()` 方法 + `Serialize` impl (零破坏性) +- 12 个新测试: kind 映射 + code 稳定性 + JSON 序列化 +- **前端**: `error-types.ts` 新增 `RustErrorKind` / `RustErrorDetail` / `tryParseRustError()` +- `classifyError()` 优先解析结构化错误 → 17 种中文标题映射 + ## 2026-04-17 fix | Phase 0 阻碍项修复 — 流式事件/CI/中文化 - **BLK-2**: loop_runner.rs 22 处 `let _ = tx.send()` 替换为 `if let Err(e) { tracing::warn!(...) }`,修复流式事件静默丢失