@luban-code/luban-code 1.152.1 → 1.155.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/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/acp.js +395 -394
- package/dist/cli-config.js +24 -24
- package/dist/cli-plugin.js +3 -3
- package/dist/cli.js +412 -411
- package/dist/extension.js +615 -614
- package/package.json +31 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
- **Plan first, execute after you approve** — Plan mode is read-only by construction (write tools are not registered, commands are checked). The plan is saved as a Markdown file you can edit; executing it re-reads that file. You can also pick a Cursor plan (`~/.cursor/plans/*.plan.md`) from the command palette and execute it with Luban.
|
|
18
18
|
- **Review in the editor, not in chat** — pending writes show as a summary card; open the real diff from “View diff” (or turn on `luban.review.autoOpenDiff`) and accept or reject hunk by hunk from CodeLens or the diff title bar.
|
|
19
|
-
- **Context without ceremony** — `@file`, `@folder/`, `#selection`, or right-click a file or folder in the Explorer → **Add File / Folder to Luban Chat** (drops the token into the current chat) or **Add File / Folder to Luban New Chat** (opens a fresh session first, then inserts the token and focuses the input); select code in the editor and it shows **Add to Chat / Add to New Chat** right above the selection (CodeLens), or right-click **Add Selection to Luban Chat** (or `Cmd/Ctrl+Alt+A`) to drop a `#selection path:start-end` token that carries its own position, so several selections can stack, or **Add Selection to Luban New Chat** to open a fresh session first, then insert the token and focus the input; plus automatic context from the editor around your cursor; a local BM25 index backs `search_code`, with `glob` for filenames and `grep` for regex.
|
|
19
|
+
- **Context without ceremony** — `@file`, `@folder/`, `#selection`, or right-click a file or folder in the Explorer → **Add File / Folder to Luban Chat** (drops the token into the current chat) or **Add File / Folder to Luban New Chat** (opens a fresh session first, then inserts the token and focuses the input); the same right-click menu is available on changed files and folders in the Source Control view (Changes / Staged); select code in the editor and it shows **Add to Chat / Add to New Chat** right above the selection (CodeLens), or right-click **Add Selection to Luban Chat** (or `Cmd/Ctrl+Alt+A`) to drop a `#selection path:start-end` token that carries its own position, so several selections can stack, or **Add Selection to Luban New Chat** to open a fresh session first, then insert the token and focus the input; plus automatic context from the editor around your cursor; a local BM25 index backs `search_code`, with `glob` for filenames and `grep` for regex.
|
|
20
20
|
- **Live context, not just files** — `@problems` inlines the current language-server errors/warnings (paths relative to the workspace), `@git` inlines the branch and uncommitted changes (`@git staged` for the index), and `@terminal` inlines the last few integrated-terminal commands and their output. All three appear in the `@` popup, expand at most once per message, and say plainly “nothing here” instead of inventing content.
|
|
21
21
|
- **Real edits, reversible** — `write_file` / `replace_in_file` / `apply_patch` (multi-file add/update/delete), plus `delete_file` / `move_file`; every change lands in REVIEW with per-hunk accept/undo, and `read_lints` lets the agent see type/syntax errors right after writing.
|
|
22
22
|
- **Any OpenAI-compatible provider** — DeepSeek, Ollama, llama.cpp, vLLM and friends via `~/.luban/providers.json`. API keys go to SecretStorage, never to disk.
|
package/README.zh.md
CHANGED
|
@@ -36,7 +36,7 @@ VSCodium / VS Code 里的**侧边栏 AI 编码助手**:说人话 → 它改文
|
|
|
36
36
|
- 多轮记忆:同一会话里的追问会带上前几轮的提问与回答(只带正文,按轮数 / 字符预算自动裁剪)
|
|
37
37
|
- 历史查询:会话弹层顶部有搜索框 —— 标题即时过滤,输入 2 个字以上连正文一起查(回答、工具结果、`@` 引用路径都能搜到),命中词高亮、命中行带一段摘要
|
|
38
38
|
- 改历史:已发出的提问点气泡上的 `✎` 就能就地改,点「发送」自动截掉这条之后的记录并用改后的内容重新开跑一轮
|
|
39
|
-
- 代码引用:`@` 选文件、`@` 选文件夹、`#` 引用编辑器选区;在编辑器里选中代码后,选区首行上方会直接浮出「加入聊天 / 加入新聊天」两枚 CodeLens(点一下即引用),也可右键「Add Selection to Luban Chat」(或 `Cmd/Ctrl+Alt+A`)插入带位置与行号的 `#selection 路径:起始-结束`,多次选区、跨文件都能叠加,发送时各自展开成一份引用,「Add Selection to Luban **New** Chat」则先开一个全新会话再插入并聚焦输入框,方便直接发第一条消息;资源管理器里右键文件 / 文件夹 →「Add File / Folder to Luban Chat」把 `@路径` / `@目录/` 插进当前会话,「Add File / Folder to Luban **New** Chat
|
|
39
|
+
- 代码引用:`@` 选文件、`@` 选文件夹、`#` 引用编辑器选区;在编辑器里选中代码后,选区首行上方会直接浮出「加入聊天 / 加入新聊天」两枚 CodeLens(点一下即引用),也可右键「Add Selection to Luban Chat」(或 `Cmd/Ctrl+Alt+A`)插入带位置与行号的 `#selection 路径:起始-结束`,多次选区、跨文件都能叠加,发送时各自展开成一份引用,「Add Selection to Luban **New** Chat」则先开一个全新会话再插入并聚焦输入框,方便直接发第一条消息;资源管理器里右键文件 / 文件夹 →「Add File / Folder to Luban Chat」把 `@路径` / `@目录/` 插进当前会话,「Add File / Folder to Luban **New** Chat」则先开一个全新会话再插入并聚焦输入框,方便直接发第一条消息;源码管理视图(Changes / Staged)里右键变更文件 / 文件夹同样可用
|
|
40
40
|
- 现场引用:`@problems` 带上当前语言服务器诊断(error / warning,路径转成工作区相对),`@git` 带上当前分支与未提交改动(`@git staged` 换成暂存区口径),`@terminal` 带上最近几条集成终端命令与输出 —— 不用手动复制粘贴;三类都在 `@` 浮层里可选,同一条消息里只展开一次,取不到数据时明确说「没有」而不是编一段
|
|
41
41
|
- 自动上下文:不写 `@` 也会把**本会话用过的文件**(`@` 引用过 / 带选区带过)的代码附在消息末尾(有选区给选区,否则光标附近约 200 行);别的会话正在看的文件不会被带进来,新会话首轮要带文件请用 `@` 或选中一段
|
|
42
42
|
- 代码检索:`search_code` 本地词法索引 + BM25,返回「路径:行号: 命中行」,大仓库不用再 `list_files` 全量扫
|