@legna-lnc/legnacode 2.1.6 → 2.1.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 CHANGED
@@ -4,6 +4,33 @@
4
4
 
5
5
  All notable changes to LegnaCode CLI will be documented in this file.
6
6
 
7
+ ## [2.1.7] - 2026-05-24
8
+
9
+ ### Features
10
+
11
+ - **Config Federation Discovery Wired** — The 7-provider discovery module (`cursor`, `windsurf`, `vscode`, `github`, `gemini`, `codex`, `cline`) is now integrated into startup. Discovered MCP servers merge into `mcp/config.ts` at lowest priority; discovered rules merge into `claudemd.ts` memory files. Gated by `CONFIG_DISCOVERY` flag. Non-blocking, try/catch wrapped.
12
+ - **Feature Flags Declared** — Added `CONFIG_DISCOVERY`, `HASHLINE_EDIT`, `MULTI_PROVIDER`, `OML_BUILTIN`, `OUTPUT_MINIMIZER`, `PERSISTENT_SHELL`, `REAL_BROWSER` to `bun-bundle.d.ts` type declarations. All flags now recognized at compile time.
13
+ - **WebUI Preset Switching** — Changing `apiFormat` now clears provider-specific fields that don't belong to the new format (Azure keys when switching away from Azure, Bedrock keys when switching away from Bedrock, etc.). Also resets `kiroGateway` when switching to non-Anthropic formats.
14
+
15
+ ### Fixes
16
+
17
+ - **MiniMax 6 Tools Type Errors** — All 6 MiniMax tools (Image, Music, Speech, Video, Vision, WebSearch) fixed to match `buildTool` API: getter `inputSchema`, 3-param `renderToolResultMessage`, `async description()`, correct `satisfies ToolDef<InputSchema, Output>`.
18
+ - **REPLTool buildTool Signature** — Adapted to current API: async description, proper call signature, `{ data }` return format, checkPermissions.
19
+ - **WebBrowserTool Engine API** — Fixed `openTab`/`screenshotTab`/`clickElement`/`typeInElement`/`getAccessibilityTree` to pass string IDs (not object handles). Replaced non-existent `scrollPage` with direct `page.evaluate` scroll.
20
+
21
+ ## [2.1.6] - 2026-05-24
22
+
23
+ ### Features
24
+
25
+ - **Hashline Edit Integration** — When `HASHLINE_EDIT` feature flag is enabled, `addLineNumbers()` outputs hash-anchored format (`42sr|code`) instead of plain tab-separated format. `stripLineNumberPrefix()` updated to parse both formats.
26
+ - **System Prompt Tool Routing** — Added guidance sections for WebBrowser (page navigation, screenshots, interaction), MiniMax (image/video/music/speech/search generation), REPL (Python execution, data analysis), and HashlineEdit (large file editing preference).
27
+ - **FileEditTool Prompt Update** — When HASHLINE_EDIT is enabled, informs the model about the `42sr|` line prefix format and guides it to prefer HashlineEdit for large edits.
28
+
29
+ ### Fixes
30
+
31
+ - **HashlineEditTool Type Errors** — Adapted to current `buildTool` API requirements: added `description()`, `maxResultSizeChars`, `renderToolUseMessage`, `mapToolResultToToolResultBlockParam`, and correct `call` signature.
32
+ - **Missing Import in prompts.ts** — Added missing `getAntModelOverrideConfig` import from `../utils/model/antModels.js`.
33
+
7
34
  ## [2.1.5] - 2026-05-23
8
35
 
9
36
  ### Features
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-2.1.5-blue)](./CHANGELOG.md)
7
+ [![version](https://img.shields.io/badge/version-2.1.7-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)
@@ -37,6 +37,8 @@ LegnaCode is built on top of [Claude Code CLI](https://github.com/anthropics/cla
37
37
 
38
38
  | Version | Summary |
39
39
  |---------|---------|
40
+ | **2.1.7** | Wire all 6 custom features; config federation discovery startup integration; fix all MiniMax/REPL/WebBrowser tool types; WebUI preset switching clears stale fields; declare all feature flags |
41
+ | **2.1.6** | Hashline Edit integration (hash-anchored Read output); fix HashlineEditTool type errors; fix missing import in prompts.ts; system prompt guidance for tool routing |
40
42
  | **2.1.5** | Multi-provider routing (28 providers, 9 protocols); Hashline edit system; persistent shell + output minimizer; real browser control; persistent Python kernel; config federation discovery; Admin WebUI expanded (21 presets) |
41
43
  | **2.1.3** | Remove GrowthBook dependency from /loop cron gate; fix OpenAI stream bridge silently swallowing empty responses |
42
44
  | **2.1.2** | Fix ctrl+o crash when sandbox is disabled (SandboxViolationStore.subscribe guard) |
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-2.1.5-blue)](./CHANGELOG.zh-CN.md)
7
+ [![version](https://img.shields.io/badge/version-2.1.7-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)
@@ -37,6 +37,8 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
37
37
 
38
38
  | 版本 | 摘要 |
39
39
  |------|------|
40
+ | **2.1.7** | 六大特性全面接线;配置联邦发现接入启动流程;修复全部 MiniMax/REPL/WebBrowser 工具类型;WebUI 预设切换清除旧字段;声明所有 feature flags |
41
+ | **2.1.6** | Hashline Edit 集成(Read 输出加 hash 锚点);修复 HashlineEditTool 类型错误;修复 prompts.ts 缺失 import;系统提示词工具路由引导 |
40
42
  | **2.1.5** | 多提供商路由(28 家提供商,9 种协议);Hashline 编辑系统;持久 Shell + 输出最小化器;真实浏览器控制;持久 Python 环境;配置联邦发现;Admin WebUI 扩展(21 个预设) |
41
43
  | **2.1.3** | 移除 /loop 定时任务对 GrowthBook 的依赖;修复 OpenAI 流式桥接空响应静默吞错误 |
42
44
  | **2.1.2** | 修复 sandbox 未启用时 ctrl+o 崩溃(SandboxViolationStore.subscribe 防御) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legna-lnc/legnacode",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "LegnaCode — legna.lnc's official CLI for coding assistance",
5
5
  "type": "module",
6
6
  "bin": {
@@ -143,13 +143,13 @@
143
143
  "bun": ">=1.2.0"
144
144
  },
145
145
  "optionalDependencies": {
146
- "@legna-lnc/legnacode-darwin-arm64": "2.1.6",
147
- "@legna-lnc/legnacode-darwin-x64": "2.1.6",
148
- "@legna-lnc/legnacode-darwin-x64-baseline": "2.1.6",
149
- "@legna-lnc/legnacode-linux-x64": "2.1.6",
150
- "@legna-lnc/legnacode-linux-x64-baseline": "2.1.6",
151
- "@legna-lnc/legnacode-linux-arm64": "2.1.6",
152
- "@legna-lnc/legnacode-win32-x64": "2.1.6",
153
- "@legna-lnc/legnacode-win32-ia32": "2.1.6"
146
+ "@legna-lnc/legnacode-darwin-arm64": "2.1.7",
147
+ "@legna-lnc/legnacode-darwin-x64": "2.1.7",
148
+ "@legna-lnc/legnacode-darwin-x64-baseline": "2.1.7",
149
+ "@legna-lnc/legnacode-linux-x64": "2.1.7",
150
+ "@legna-lnc/legnacode-linux-x64-baseline": "2.1.7",
151
+ "@legna-lnc/legnacode-linux-arm64": "2.1.7",
152
+ "@legna-lnc/legnacode-win32-x64": "2.1.7",
153
+ "@legna-lnc/legnacode-win32-ia32": "2.1.7"
154
154
  }
155
155
  }