@legna-lnc/legnacode 2.0.4 → 2.1.0
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 +56 -0
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,62 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to LegnaCode CLI will be documented in this file.
|
|
6
6
|
|
|
7
|
+
## [2.1.0] - 2026-04-30
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **Platform-aware publish** — `scripts/publish.ts` now detects `process.platform` to skip cross-platform packages. Mac publishes darwin + linux; Windows publishes win32. Main package always manual.
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
- **ShellProgressMessage crash** — Guard `fullOutput` and `output` against `undefined`.
|
|
16
|
+
- **DeepSeek reasoning_content Multi-Turn 400** — Removed `stripReasoningContent()` from DeepSeek adapter; preserve `reasoning_content` on string-content messages; empty thinking blocks produce `reasoning_content: ""`.
|
|
17
|
+
|
|
18
|
+
## [2.0.9] - 2026-04-30
|
|
19
|
+
|
|
20
|
+
### Fixes
|
|
21
|
+
|
|
22
|
+
- **Publish script policy** — `scripts/publish.ts` now skips `win32-ia32` and main package `@legna-lnc/legnacode` automatically. Only 7 platform binaries are published.
|
|
23
|
+
|
|
24
|
+
## [2.0.8] - 2026-04-30
|
|
25
|
+
|
|
26
|
+
### Fixes
|
|
27
|
+
|
|
28
|
+
- **ShellProgressMessage crash** — Guard `fullOutput` and `output` against `undefined` to prevent `TypeError: undefined is not an object (evaluating 'fullOutput.trim')`.
|
|
29
|
+
- **DeepSeek reasoning_content Multi-Turn 400 Fix** — DeepSeek's OpenAI-compatible endpoint requires `reasoning_content` to be passed back in multi-turn conversations. Three fixes:
|
|
30
|
+
1. Removed `stripReasoningContent()` from DeepSeek adapter — the field must survive for the OpenAI bridge to reconstruct it; Anthropic SDK ignores unknown fields so both paths are safe.
|
|
31
|
+
2. `convertAnthropicToOpenAI()` now preserves `reasoning_content` on string-content assistant messages (session resume, prefill scenarios).
|
|
32
|
+
3. Empty thinking blocks now correctly produce `reasoning_content: ""` instead of being silently dropped.
|
|
33
|
+
|
|
34
|
+
## [2.0.7] - 2026-04-30
|
|
35
|
+
|
|
36
|
+
### Fixes
|
|
37
|
+
|
|
38
|
+
- **DeepSeek reasoning_content Multi-Turn 400 Fix** — DeepSeek's OpenAI-compatible endpoint requires `reasoning_content` to be passed back in multi-turn conversations. Three fixes:
|
|
39
|
+
1. Removed `stripReasoningContent()` from DeepSeek adapter — the field must survive for the OpenAI bridge to reconstruct it; Anthropic SDK ignores unknown fields so both paths are safe.
|
|
40
|
+
2. `convertAnthropicToOpenAI()` now preserves `reasoning_content` on string-content assistant messages (session resume, prefill scenarios).
|
|
41
|
+
3. Empty thinking blocks now correctly produce `reasoning_content: ""` instead of being silently dropped.
|
|
42
|
+
|
|
43
|
+
## [2.0.5] - 2026-04-27
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
- **LegnaCode Office Phase 2-4** — Pixel office visualization system complete:
|
|
48
|
+
- **Conversation Sidebar** — Collapsible sidebar showing real-time conversation flow per agent (user/assistant/tool messages with timestamps)
|
|
49
|
+
- **Status Bubble** — Canvas 2D rendered bubble above characters showing current tool name + i18n state label
|
|
50
|
+
- **WebSocket Broadcast** — RFC 6455 server pushes snapshot-on-connect + incremental updates to all clients
|
|
51
|
+
- **Admin Panel** — `office-panel.tsx` embedded in admin WebUI with auto-reconnect (5s timer)
|
|
52
|
+
- **Join-Key Auth** — 8-char shareable key for remote CLI instances; local connections bypass auth
|
|
53
|
+
- **Layout Persistence** — `GET/POST /api/layout` saves office layout to `~/.legna-office/layout.json`
|
|
54
|
+
- **Notification Sounds** — Web Audio API oscillator tones for tool start, turn end, error, permission request
|
|
55
|
+
- **Demo Mode** — Standalone mock data with cycling agent states when no CLI connected
|
|
56
|
+
- **i18n** — Full zh/en support: webview hooks, server-side labels, status bubble
|
|
57
|
+
- **Settings** — `legnaOffice.enabled` / `legnaOffice.autoConnect` in settings schema
|
|
58
|
+
|
|
59
|
+
### Fixes
|
|
60
|
+
|
|
61
|
+
- **DeepSeek reasoning_content Passback** — OpenAI bridge non-streaming path completely dropped `message.reasoning_content`, causing 400 errors on subsequent turns ("reasoning_content must be passed back"). Now converts to thinking block in Anthropic format. Also fixed streaming delta to use parsed `thinkingText` for MiniMax `reasoning_details` compatibility.
|
|
62
|
+
|
|
7
63
|
## [2.0.4] - 2026-04-27
|
|
8
64
|
|
|
9
65
|
### 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,7 @@ 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.5** | LegnaCode Office pixel visualization (conversation sidebar, status bubble, WebSocket, join-key auth, layout persistence, notification sounds, demo mode, i18n); DeepSeek reasoning_content passback fix |
|
|
37
38
|
| **2.0.4** | OpenAI Responses API bridge (Codex providers); admin config hot-reload + UI auto-refresh; getGlobalSettings dead code fix |
|
|
38
39
|
| **2.0.3** | Kiro Gateway optimization; admin profile inline editing; model allowlist removed; count_tokens disabled; sandbox removed |
|
|
39
40
|
| **1.9.9** | Bash exit code 65 彻底修复;Admin 预设配置模板;ANTHROPIC_MODEL 字段 |
|
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,7 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
|
|
|
34
34
|
|
|
35
35
|
| 版本 | 摘要 |
|
|
36
36
|
|------|------|
|
|
37
|
+
| **2.0.5** | LegnaCode Office 像素办公室可视化(对话侧边栏、状态气泡、WebSocket、join-key 认证、布局持久化、通知音效、演示模式、i18n);DeepSeek reasoning_content 回传修复 |
|
|
37
38
|
| **2.0.4** | OpenAI Responses API 桥接(Codex 中转站);Admin 配置热加载 + UI 自动刷新;getGlobalSettings 死代码修复 |
|
|
38
39
|
| **2.0.3** | Kiro Gateway 优化;Admin 配置内联编辑;模型白名单移除;count_tokens 禁用;sandbox 移除 |
|
|
39
40
|
| **1.9.9** | Bash exit code 65 彻底修复;Admin 预设配置模板;ANTHROPIC_MODEL 字段 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legna-lnc/legnacode",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
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.1.0",
|
|
146
|
+
"@legna-lnc/legnacode-darwin-x64": "2.1.0",
|
|
147
|
+
"@legna-lnc/legnacode-darwin-x64-baseline": "2.1.0",
|
|
148
|
+
"@legna-lnc/legnacode-linux-x64": "2.1.0",
|
|
149
|
+
"@legna-lnc/legnacode-linux-x64-baseline": "2.1.0",
|
|
150
|
+
"@legna-lnc/legnacode-linux-arm64": "2.1.0",
|
|
151
|
+
"@legna-lnc/legnacode-win32-x64": "2.1.0",
|
|
152
|
+
"@legna-lnc/legnacode-win32-ia32": "2.1.0"
|
|
153
153
|
}
|
|
154
154
|
}
|