@legna-lnc/legnacode 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to LegnaCode CLI will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.6] - 2026-04-09
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **Windows Edit 工具路径分隔符误报** — 修复 [#7935](https://github.com/anthropics/claude-code/issues/7935):在 Windows 上使用正斜杠(`D:/path`)读取文件后,Edit/MultiEdit 工具报 "File has been unexpectedly modified" 错误。根因是 `path.normalize()` 在某些运行时(Bun 编译二进制 + Git Bash/MINGW 环境)不一定将 `/` 转换为 `\`,导致 FileStateCache 缓存键不匹配
|
|
10
|
+
- `FileStateCache` 新增 `normalizeKey()` — 在 `path.normalize()` 之后显式将 `/` 替换为原生分隔符(Windows 上为 `\`),确保 `D:/foo` 和 `D:\foo` 始终命中同一缓存条目
|
|
11
|
+
- `expandPath()` 新增 `ensureNativeSeparators()` — 所有返回路径在 Windows 上强制使用反斜杠,防御性修复
|
|
12
|
+
|
|
13
|
+
### Architecture
|
|
14
|
+
|
|
15
|
+
- `src/utils/fileStateCache.ts` — `normalizeKey()` 替代裸 `normalize()`,导入 `sep`
|
|
16
|
+
- `src/utils/path.ts` — `ensureNativeSeparators()` 包裹所有 `normalize()`/`resolve()`/`join()` 返回值
|
|
17
|
+
|
|
5
18
|
## [1.3.5] - 2026-04-07
|
|
6
19
|
|
|
7
20
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ LegnaCode 是一个基于 Anthropic Claude 的智能终端编程助手,让你
|
|
|
12
12
|
|
|
13
13
|
| 版本 | 日期 | 摘要 |
|
|
14
14
|
|------|------|------|
|
|
15
|
+
| [1.3.6](./CHANGELOG.md#136---2026-04-09) | 2026-04-09 | 修复 Windows 路径分隔符导致 Edit 工具 "File has been unexpectedly modified" 误报 |
|
|
15
16
|
| [1.3.5](./CHANGELOG.md#135---2026-04-07) | 2026-04-07 | 修复 SessionStart hook 报错,Windows alt-screen 渲染深度修复(消除 fullReset 闪烁) |
|
|
16
17
|
| [1.3.4](./CHANGELOG.md#134---2026-04-07) | 2026-04-07 | OML Superpowers 工程纪律(/verify /tdd /debug /brainstorm 等 11 个 skill),SessionStart 技能引导 |
|
|
17
18
|
| [1.3.3](./CHANGELOG.md#133---2026-04-07) | 2026-04-07 | OML 智能编排层内置(magic keywords + 19 agent skills),Windows Terminal fullscreen 修复 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legna-lnc/legnacode",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "LegnaCode — legna.lnc's official CLI for coding assistance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
"bun": ">=1.2.0"
|
|
143
143
|
},
|
|
144
144
|
"optionalDependencies": {
|
|
145
|
-
"@legna-lnc/legnacode-darwin-arm64": "1.3.
|
|
146
|
-
"@legna-lnc/legnacode-darwin-x64": "1.3.
|
|
147
|
-
"@legna-lnc/legnacode-linux-x64": "1.3.
|
|
148
|
-
"@legna-lnc/legnacode-linux-arm64": "1.3.
|
|
149
|
-
"@legna-lnc/legnacode-win32-x64": "1.3.
|
|
145
|
+
"@legna-lnc/legnacode-darwin-arm64": "1.3.6",
|
|
146
|
+
"@legna-lnc/legnacode-darwin-x64": "1.3.6",
|
|
147
|
+
"@legna-lnc/legnacode-linux-x64": "1.3.6",
|
|
148
|
+
"@legna-lnc/legnacode-linux-arm64": "1.3.6",
|
|
149
|
+
"@legna-lnc/legnacode-win32-x64": "1.3.6"
|
|
150
150
|
}
|
|
151
151
|
}
|