@legna-lnc/legnacode 1.5.2 → 1.5.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 CHANGED
@@ -4,6 +4,32 @@
4
4
 
5
5
  All notable changes to LegnaCode CLI will be documented in this file.
6
6
 
7
+ ## [1.5.4] - 2026-04-21
8
+
9
+ Republish of 1.5.3 with all platform binaries in sync.
10
+
11
+ ## [1.5.3] - 2026-04-21
12
+
13
+ ### Features
14
+
15
+ - **Hermes Self-Evolution Loop** — Automatic learning closed loop: repeated tool patterns (3x) auto-generate SKILL.md via side-channel LLM; behavior corrections auto-write to `.legna/memory/`; no user confirmation needed. Background Review Agent extracts experience insights after each session.
16
+ - **Qwen Model Adapter** — Dedicated adapter for Qwen full series (qwen-plus, qwen-max, qwen-turbo, qwen-coder-plus, qwq-plus, qwen3-235b). Supports `thinking_budget` mapping, DashScope server-side web search (`enable_search`), `reasoning_content` streaming, and `content_filter` stop reason.
17
+ - **WebUI Chat Viewer** — New "聊天记录" panel in admin WebUI. Browse session history with full message rendering, collapsible thinking blocks, tool call visualization (input/output/error), and auto-scroll. Backend `/api/:scope/sessions/:id/messages` endpoint reads JSONL session files.
18
+ - **WebUI Live Chat** — `legna admin` WebUI now supports live chat via SSE streaming. Send messages, see streaming responses with thinking/tool-use visualization. Note: each message starts a new independent session (no multi-turn conversation); intended for quick API connectivity testing, not as a full chat client.
19
+ - **Skill Auto-Create** — `SkillPatternDetector.record()` was already wired but results were never surfaced. Now auto-creates skills from detected patterns and notifies user after the fact.
20
+ - **Skill Improvement Path B** — `skillImprovement` no longer gated to active skill execution. General conversation learning detects workflow preferences, behavior corrections, and coding style preferences every 10 user messages.
21
+ - **Nudge System** — Counter-driven session learning summary. Reports what was automatically learned (skills created, corrections captured, insights recorded) instead of suggesting the user go learn.
22
+
23
+ ### Improvements
24
+
25
+ - **onPreCompress Enhanced** — Working state extraction added alongside existing exchange pair extraction. Captures current task, key decisions, file paths, and error patterns before context compression. High-priority drawer written to DrawerStore.
26
+ - **Skill Version Backup** — `applySkillImprovement` now backs up current SKILL.md to `.versions/` before overwriting. Changelog with last 20 versions maintained automatically.
27
+ - **`/skillify` Unlocked** — Removed `USER_TYPE === 'ant'` gate. All users can now capture session workflows as reusable skills.
28
+
29
+ ### Bug Fixes
30
+
31
+ - **WebUI inline script crash** — Fixed `Unexpected token '<'` error caused by unescaped `</` sequences in inlined JavaScript. JS and CSS are now served as separate files (`/__admin__/app.js`, `/__admin__/app.css`) instead of being inlined into `<script>` tags.
32
+
7
33
  ## [1.5.2] - 2026-04-20
8
34
 
9
35
  ### Performance
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **An AI-powered terminal programming assistant, supercharged.**
6
6
 
7
- [![version](https://img.shields.io/badge/version-1.5.2-blue)](./CHANGELOG.md)
7
+ [![version](https://img.shields.io/badge/version-1.5.4-blue)](./CHANGELOG.md)
8
8
  [![platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20Windows-brightgreen)](#platform-support)
9
9
  [![license](https://img.shields.io/badge/license-MIT-yellow)](./LICENSE)
10
10
  [![Claude Code](https://img.shields.io/badge/based%20on-Claude%20Code-blueviolet)](https://github.com/anthropics/claude-code)
@@ -33,6 +33,8 @@ LegnaCode is built on top of [Claude Code CLI](https://github.com/anthropics/cla
33
33
 
34
34
  | Version | Summary |
35
35
  |---------|---------|
36
+ | **1.5.4** | Republish with all platform binaries in sync |
37
+ | **1.5.3** | Hermes self-evolution loop; Qwen adapter; WebUI chat viewer & live chat; auto skill creation |
36
38
  | **1.5.2** | Perf audit: async CodeGraph, undoTracker size guard, compacting i18n, TTL caches |
37
39
  | **1.5.1** | Proactive skill invocation (OML 1% rule); auto-inject frontend/design guidelines; enhanced designer agent |
38
40
  | **1.5.0** | Fix REPL startup deadlock; remove /undo static import; all AtomCode features fully wired |
package/README.zh-CN.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **AI 驱动的终端编程助手,全面增强。**
6
6
 
7
- [![version](https://img.shields.io/badge/version-1.5.2-blue)](./CHANGELOG.zh-CN.md)
7
+ [![version](https://img.shields.io/badge/version-1.5.4-blue)](./CHANGELOG.zh-CN.md)
8
8
  [![platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20Windows-brightgreen)](#平台支持)
9
9
  [![license](https://img.shields.io/badge/license-MIT-yellow)](./LICENSE)
10
10
  [![Claude Code](https://img.shields.io/badge/based%20on-Claude%20Code-blueviolet)](https://github.com/anthropics/claude-code)
@@ -33,6 +33,8 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
33
33
 
34
34
  | 版本 | 摘要 |
35
35
  |------|------|
36
+ | **1.5.4** | 全平台二进制同步重发 |
37
+ | **1.5.3** | Hermes 自我进化闭环;Qwen 适配器;WebUI 聊天查看器与实时聊天;自动 Skill 创建 |
36
38
  | **1.5.2** | 性能审计:CodeGraph async 化 + undoTracker 大文件保护 + 状态文案 i18n |
37
39
  | **1.5.1** | Skill 主动调用(OML 1% 规则);前端/设计指令自动注入;增强 designer agent |
38
40
  | **1.5.0** | 修复 REPL 启动死锁;移除 /undo 静态导入;AtomCode 全部特性完整接线 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legna-lnc/legnacode",
3
- "version": "1.5.2",
3
+ "version": "1.5.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": "1.5.2",
146
- "@legna-lnc/legnacode-darwin-x64": "1.5.2",
147
- "@legna-lnc/legnacode-darwin-x64-baseline": "1.5.2",
148
- "@legna-lnc/legnacode-linux-x64": "1.5.2",
149
- "@legna-lnc/legnacode-linux-x64-baseline": "1.5.2",
150
- "@legna-lnc/legnacode-linux-arm64": "1.5.2",
151
- "@legna-lnc/legnacode-win32-x64": "1.5.2",
152
- "@legna-lnc/legnacode-win32-ia32": "1.5.2"
145
+ "@legna-lnc/legnacode-darwin-arm64": "1.5.4",
146
+ "@legna-lnc/legnacode-darwin-x64": "1.5.4",
147
+ "@legna-lnc/legnacode-darwin-x64-baseline": "1.5.4",
148
+ "@legna-lnc/legnacode-linux-x64": "1.5.4",
149
+ "@legna-lnc/legnacode-linux-x64-baseline": "1.5.4",
150
+ "@legna-lnc/legnacode-linux-arm64": "1.5.4",
151
+ "@legna-lnc/legnacode-win32-x64": "1.5.4",
152
+ "@legna-lnc/legnacode-win32-ia32": "1.5.4"
153
153
  }
154
154
  }