@legna-lnc/legnacode 1.9.5 → 1.9.7
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 +16 -0
- package/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to LegnaCode CLI will be documented in this file.
|
|
6
6
|
|
|
7
|
+
## [1.9.7] - 2026-04-26
|
|
8
|
+
|
|
9
|
+
### Fixes
|
|
10
|
+
|
|
11
|
+
- **Sandbox .node Addon Now Ships in npm** — The `.node` file was in `.gitignore`, so npm publish used the stale pre-compiled addon with `(deny default)`. Fixed by having `compile-all.ts` copy from `native/sandbox/` (napi build output) which takes precedence over `src/native/`.
|
|
12
|
+
- **compile-all.ts Dual Source** — Now checks both `src/native/` and `native/*/` for `.node` addons. Fresh napi build output overwrites stale committed files.
|
|
13
|
+
|
|
14
|
+
## [1.9.6] - 2026-04-26
|
|
15
|
+
|
|
16
|
+
### Fixes
|
|
17
|
+
|
|
18
|
+
- **Sandbox Native Addon Rebuilt with napi-rs** — Properly rebuilt `sandbox.darwin-arm64.node` using `napi build` (not raw dylib rename). The addon now ships the correct `(allow default)` Seatbelt profile that only denies writes to `/System`, `/usr`, `/bin`, `/sbin`.
|
|
19
|
+
- **compile-all.ts Auto-Copy Addons** — Build script now auto-copies matching `.node` native addons from `src/native/` into each platform's `bin/` directory. No more stale addon files.
|
|
20
|
+
- **Restored shouldUseSandbox Logic** — Re-enabled sandbox with proper allow-by-default native addon. Only `rm -rf` style destructive commands are warned about.
|
|
21
|
+
- **Native Sandbox Path Restored** — `sandbox-adapter.ts` native sandbox path re-enabled with `networkPolicy: 'full'` (was 'blocked').
|
|
22
|
+
|
|
7
23
|
## [1.9.5] - 2026-04-26
|
|
8
24
|
|
|
9
25
|
### Features
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**An AI-powered terminal programming assistant, supercharged.**
|
|
6
6
|
|
|
7
|
-
[](./CHANGELOG.md)
|
|
8
8
|
[](#platform-support)
|
|
9
9
|
[](./LICENSE)
|
|
10
10
|
[](https://github.com/anthropics/claude-code)
|
|
@@ -34,6 +34,8 @@ LegnaCode is built on top of [Claude Code CLI](https://github.com/anthropics/cla
|
|
|
34
34
|
|
|
35
35
|
| Version | Summary |
|
|
36
36
|
|---------|---------|
|
|
37
|
+
| **1.9.7** | Fixed sandbox .node addon not shipping in npm packages; compile-all copies from napi build output |
|
|
38
|
+
| **1.9.6** | Sandbox native addon rebuilt with napi-rs; allow-by-default Seatbelt actually shipped; compile-all auto-copies .node |
|
|
37
39
|
| **1.9.5** | Admin preset profile templates (7 providers); ANTHROPIC_MODEL field; migration auto-fill |
|
|
38
40
|
| **1.9.4** | macOS Seatbelt sandbox rewrite (allow-by-default); Shell.ts sandbox return path fix |
|
|
39
41
|
| **1.9.3** | OpenAI-compatible API routing; deep adapter alignment for all 7 CN providers; admin profile clone; Bash sandbox fix |
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**AI 驱动的终端编程助手,全面增强。**
|
|
6
6
|
|
|
7
|
-
[](./CHANGELOG.zh-CN.md)
|
|
8
8
|
[](#平台支持)
|
|
9
9
|
[](./LICENSE)
|
|
10
10
|
[](https://github.com/anthropics/claude-code)
|
|
@@ -34,6 +34,8 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
|
|
|
34
34
|
|
|
35
35
|
| 版本 | 摘要 |
|
|
36
36
|
|------|------|
|
|
37
|
+
| **1.9.7** | 修复 sandbox .node addon 未打包进 npm 的问题;compile-all 从 napi build 产物复制 |
|
|
38
|
+
| **1.9.6** | 沙盒 native addon 用 napi-rs 正确重编译;allow-by-default 策略实际生效;compile-all 自动复制 .node |
|
|
37
39
|
| **1.9.5** | Admin 预设配置模板(7 家 Provider);ANTHROPIC_MODEL 字段;迁移自动补全 |
|
|
38
40
|
| **1.9.4** | macOS Seatbelt 沙盒重写(默认允许策略);Shell.ts sandbox 返回路径修复 |
|
|
39
41
|
| **1.9.3** | OpenAI 兼容 API 路由;7 家国产模型适配器深度对齐;admin 配置复制;Bash sandbox 修复 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legna-lnc/legnacode",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
4
4
|
"description": "LegnaCode — legna.lnc's official CLI for coding assistance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -142,13 +142,13 @@
|
|
|
142
142
|
"bun": ">=1.2.0"
|
|
143
143
|
},
|
|
144
144
|
"optionalDependencies": {
|
|
145
|
-
"@legna-lnc/legnacode-darwin-arm64": "1.9.
|
|
146
|
-
"@legna-lnc/legnacode-darwin-x64": "1.9.
|
|
147
|
-
"@legna-lnc/legnacode-darwin-x64-baseline": "1.9.
|
|
148
|
-
"@legna-lnc/legnacode-linux-x64": "1.9.
|
|
149
|
-
"@legna-lnc/legnacode-linux-x64-baseline": "1.9.
|
|
150
|
-
"@legna-lnc/legnacode-linux-arm64": "1.9.
|
|
151
|
-
"@legna-lnc/legnacode-win32-x64": "1.9.
|
|
152
|
-
"@legna-lnc/legnacode-win32-ia32": "1.9.
|
|
145
|
+
"@legna-lnc/legnacode-darwin-arm64": "1.9.7",
|
|
146
|
+
"@legna-lnc/legnacode-darwin-x64": "1.9.7",
|
|
147
|
+
"@legna-lnc/legnacode-darwin-x64-baseline": "1.9.7",
|
|
148
|
+
"@legna-lnc/legnacode-linux-x64": "1.9.7",
|
|
149
|
+
"@legna-lnc/legnacode-linux-x64-baseline": "1.9.7",
|
|
150
|
+
"@legna-lnc/legnacode-linux-arm64": "1.9.7",
|
|
151
|
+
"@legna-lnc/legnacode-win32-x64": "1.9.7",
|
|
152
|
+
"@legna-lnc/legnacode-win32-ia32": "1.9.7"
|
|
153
153
|
}
|
|
154
154
|
}
|