@luban-code/luban-code 1.146.1 → 1.147.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/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
  - **Plugins without a protocol** — drop a `plugin.json` + `index.js` into `~/.luban/plugins` or `<workspace>/.luban/plugins` and its tools show up as `pl__<plugin>__<tool>` (off by default via `luban.plugins.enabled`; they run in-process, so the first load and any content change ask for confirmation).
26
26
  - **Cloud backup over WebDAV** — its own **☁ Backup** tab in the settings panel (next to General / Settings / Usage) takes a server URL, username and app password (the password lives in SecretStorage, never on disk) and uploads sessions, image attachments, plans, provider config and `mcp.json` to your own WebDAV server. You can inspect the remote manifest and restore by sha1 diff; files about to be overwritten are snapshotted into `~/.luban/backups/` first, and `providers.json` is merged rather than replaced (API keys never come back from the remote side).
27
27
  - **Optional real-browser view** — `browser` drives a local headless Chrome/Edge over CDP (open, accessibility snapshot, screenshot, console, failed requests; plus `click` / `type` / `scroll` to drive the page in Agent mode — not available in Plan mode, first use asks for confirmation). Off by default via `luban.browser.enabled`; screenshots are only visible to models with `vision` enabled.
28
- - **Optional desktop control (macOS and Windows)** — `computer` screenshots the real screen, reads on-screen text via OCR (macOS; on Windows it falls back to viewing the screenshot), lists windows, and can click / double-click / drag / scroll / type / send key combos. Off by default via `luban.computer.enabled`; the first action that touches mouse or keyboard asks for confirmation; unavailable in Plan mode; models without `vision` automatically fall back to OCR text.
28
+ - **Optional desktop control (macOS and Windows)** — `computer` screenshots the real screen, reads on-screen text via OCR (macOS uses the local Vision engine; Windows has no local OCR, so it goes through the provider's server-side OCR when `serverTools.capabilities.ocr.enabled` is on and otherwise falls back to viewing the screenshot), lists windows, and can click / double-click / drag / scroll / type / send key combos. Off by default via `luban.computer.enabled`; the first action that touches mouse or keyboard asks for confirmation; unavailable in Plan mode; models without `vision` automatically fall back to OCR text.
29
29
  - **Optional tab completion** — DeepSeek FIM completion, off by default.
30
30
  - **A Markdown preview you can live with** — the built-in VSCodium preview is awkward, so Luban ships its own: **Luban: Markdown preview** (or the M↓ markdown icon in the editor title bar — icons only there, the title bar has no room for words) opens a side-by-side panel with syntax-highlighted code blocks, local images resolved relative to the file, and one-way scroll sync from the editor. Math (`$…$`, `$$…$$`, `\(…\)`, `\[…\]`) is typeset with a locally vendored KaTeX — no CDN, no network — and the CLI terminal degrades the same formulas to readable plain text. It reuses the same renderer as the chat panel and the same highlighter as the CLI terminal — one set of rules, three surfaces.
31
31
  - **Status-bar light** — one line in the status bar: `(o.o) run_command npm test`. The little carpenter's ASCII face plus what the agent is doing right now (thinking / writing / running a tool / waiting / done / error) — the same face you see in the terminal. Hover for the full picture of this turn, click to open the panel, and it falls asleep (`-_-`) when idle for a while. Turn it off with `luban.statusBar.enabled`.
package/README.zh.md CHANGED
@@ -42,7 +42,7 @@ VSCodium / VS Code 里的**侧边栏 AI 编码助手**:说人话 → 它改文
42
42
  - Tab 补全:DeepSeek FIM 续写光标处代码,`Tab` 接受(默认关闭,命令面板一键开)
43
43
  - 联网搜索:`@web` 先搜再答并列出来源;Agent / Plan 也能自己调 `web_search` / `web_fetch`
44
44
  - 看真实页面:`browser` 用本机 Chrome / Edge 的无头实例打开地址、取可访问性大纲、截图、看 console 与失败请求;Agent 模式下还能 `click` / `type` / `scroll` 驱动页面交互(Plan 模式不可用,首次需确认)(默认关闭,设置 `luban.browser.enabled=true`;截图只在开了 `vision` 的模型下才会被看到)
45
- - 操作本机桌面(macOS / Windows / Linux):`computer` 截屏 / 识别屏幕文字 / 列窗口 / 点击 / 双击 / 拖动 / 滚动 / 输入 / 组合键(默认关闭,设置 `luban.computer.enabled=true`;首次动键鼠要确认一次;Plan 模式不可用;macOS 上没开 `vision` 的模型会自动改走 OCR 文字,Windows 暂未实现 OCR、只能看图。Linux 需要 `xdotool` + `ffmpeg`/`imagemagick`,OCR 用 `tesseract-ocr`;Wayland 会话下 xdotool 只能操作 XWayland 应用,无头环境要先起 Xvfb)
45
+ - 操作本机桌面(macOS / Windows / Linux):`computer` 截屏 / 识别屏幕文字 / 列窗口 / 点击 / 双击 / 拖动 / 滚动 / 输入 / 组合键(默认关闭,设置 `luban.computer.enabled=true`;首次动键鼠要确认一次;Plan 模式不可用;macOS 上没开 `vision` 的模型会自动改走 OCR 文字;Windows 没有本地 OCR,provider 开了 `serverTools.capabilities.ocr.enabled` 时改走服务端 OCR,否则只能看图。Linux 需要 `xdotool` + `ffmpeg`/`imagemagick`,OCR 用 `tesseract-ocr`;Wayland 会话下 xdotool 只能操作 XWayland 应用,无头环境要先起 Xvfb)
46
46
  - 工具循环按预算收敛:主约束是上下文窗口(工具结果占位压缩)+ 墙钟 + 死循环检测,轮数上限只作安全阀(默认 200,可配,0 = 不限)
47
47
  - 每轮 usage:回答下方一行显示输入 / 输出 / 缓存命中 / 上下文占用 / 请求数,header 常驻上下文占用条(按模型窗口算百分比)
48
48
  - 外部工具:本地 stdio MCP server 的工具并入同一个工具循环(`mcp__<server>__<tool>`),Plan 模式只放行声明只读的工具;设置面板里**独立一个「🔌 MCP」分区**,直接看每个 server 的状态 / 工具清单,点开关就能启停(先选写全局还是项目 `mcp.json`),不用手改 JSON