@legna-lnc/legnacode 2.0.2 → 2.0.4
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 +21 -5
- package/README.md +3 -2
- package/README.zh-CN.md +3 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,17 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to LegnaCode CLI will be documented in this file.
|
|
6
6
|
|
|
7
|
-
## [2.0.
|
|
7
|
+
## [2.0.4] - 2026-04-27
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
- **
|
|
12
|
-
- **Admin
|
|
13
|
-
- **
|
|
11
|
+
- **OpenAI Responses API Bridge** — New `apiFormat: "responses"` setting enables Codex-compatible providers (`/v1/responses` wire format). Full streaming + non-streaming support with Anthropic event translation.
|
|
12
|
+
- **Admin Config Hot-Reload** — Saving an active profile via inline editor now syncs to `settings.json`, triggering CLI hot-reload without profile switch.
|
|
13
|
+
- **Admin UI Auto-Refresh** — Profile list refreshes automatically after save, showing updated endpoint/model info immediately.
|
|
14
14
|
|
|
15
15
|
### Fixes
|
|
16
16
|
|
|
17
|
-
- **
|
|
17
|
+
- **getGlobalSettings Dead Code** — All 3 call sites (`claude.ts`, `adapters/index.ts`, `gates.ts`) referenced a non-existent function. Fixed to use `getInitialSettings()` from settings.ts. This makes `kiroGateway` toggle actually work.
|
|
18
|
+
|
|
19
|
+
## [2.0.3] - 2026-04-27
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
- **Kiro Gateway Client-Side History Optimization** — New `kiroGateway` setting enables client-side history compression aligned with Gateway's converter.py (thinking/tool_result truncation, schema normalization).
|
|
24
|
+
- **Admin Profile Inline Editing** — Each profile card has an "编辑" button for inline settings editing. Profile-specific API: `GET/PUT /api/:scope/profiles/:filename`.
|
|
25
|
+
- **Admin Preset Templates** — 7 provider presets (DeepSeek, Kimi, GLM, Qwen, MiniMax, MiMo, Anthropic).
|
|
26
|
+
- **ANTHROPIC_MODEL Settings Field** — Highest-priority model override in admin settings panel.
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
|
|
30
|
+
- **Model Allowlist Removed** — `isModelAllowed()` always returns true. Third-party providers use arbitrary model names that would never pass a Claude-centric allowlist.
|
|
31
|
+
- **count_tokens API Disabled** — Both `countMessagesTokensWithAPI` and `countTokensViaHaikuFallback` return null unconditionally. The `/v1/messages/count_tokens` endpoint is not supported by third-party providers and causes 403 errors.
|
|
32
|
+
- **Bash Sandbox Removed** — Disabled native sandbox addon, Seatbelt fallback, and sandbox-adapter native path.
|
|
33
|
+
- **Migration Auto-Fill ANTHROPIC_MODEL** — Auto-fills from OPUS value when migrating Claude Code configs.
|
|
18
34
|
|
|
19
35
|
## [1.9.9] - 2026-04-26
|
|
20
36
|
|
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,7 +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
|
-
| **2.0.
|
|
37
|
+
| **2.0.4** | OpenAI Responses API bridge (Codex providers); admin config hot-reload + UI auto-refresh; getGlobalSettings dead code fix |
|
|
38
|
+
| **2.0.3** | Kiro Gateway optimization; admin profile inline editing; model allowlist removed; count_tokens disabled; sandbox removed |
|
|
38
39
|
| **1.9.9** | Bash exit code 65 彻底修复;Admin 预设配置模板;ANTHROPIC_MODEL 字段 |
|
|
39
40
|
| **1.9.5** | Admin preset profile templates (7 providers); ANTHROPIC_MODEL field; migration auto-fill |
|
|
40
41
|
| **1.9.4** | macOS Seatbelt sandbox rewrite (allow-by-default); Shell.ts sandbox return path 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,7 +34,8 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
|
|
|
34
34
|
|
|
35
35
|
| 版本 | 摘要 |
|
|
36
36
|
|------|------|
|
|
37
|
-
| **2.0.
|
|
37
|
+
| **2.0.4** | OpenAI Responses API 桥接(Codex 中转站);Admin 配置热加载 + UI 自动刷新;getGlobalSettings 死代码修复 |
|
|
38
|
+
| **2.0.3** | Kiro Gateway 优化;Admin 配置内联编辑;模型白名单移除;count_tokens 禁用;sandbox 移除 |
|
|
38
39
|
| **1.9.9** | Bash exit code 65 彻底修复;Admin 预设配置模板;ANTHROPIC_MODEL 字段 |
|
|
39
40
|
| **1.9.5** | Admin 预设配置模板(7 家 Provider);ANTHROPIC_MODEL 字段;迁移自动补全 |
|
|
40
41
|
| **1.9.4** | macOS Seatbelt 沙盒重写(默认允许策略);Shell.ts sandbox 返回路径修复 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legna-lnc/legnacode",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
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": "2.0.
|
|
146
|
-
"@legna-lnc/legnacode-darwin-x64": "2.0.
|
|
147
|
-
"@legna-lnc/legnacode-darwin-x64-baseline": "2.0.
|
|
148
|
-
"@legna-lnc/legnacode-linux-x64": "2.0.
|
|
149
|
-
"@legna-lnc/legnacode-linux-x64-baseline": "2.0.
|
|
150
|
-
"@legna-lnc/legnacode-linux-arm64": "2.0.
|
|
151
|
-
"@legna-lnc/legnacode-win32-x64": "2.0.
|
|
152
|
-
"@legna-lnc/legnacode-win32-ia32": "2.0.
|
|
145
|
+
"@legna-lnc/legnacode-darwin-arm64": "2.0.4",
|
|
146
|
+
"@legna-lnc/legnacode-darwin-x64": "2.0.4",
|
|
147
|
+
"@legna-lnc/legnacode-darwin-x64-baseline": "2.0.4",
|
|
148
|
+
"@legna-lnc/legnacode-linux-x64": "2.0.4",
|
|
149
|
+
"@legna-lnc/legnacode-linux-x64-baseline": "2.0.4",
|
|
150
|
+
"@legna-lnc/legnacode-linux-arm64": "2.0.4",
|
|
151
|
+
"@legna-lnc/legnacode-win32-x64": "2.0.4",
|
|
152
|
+
"@legna-lnc/legnacode-win32-ia32": "2.0.4"
|
|
153
153
|
}
|
|
154
154
|
}
|