@luban-code/luban-code 1.137.8 → 1.138.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 +3 -2
- package/README.zh.md +2 -1
- package/dist/acp.js +340 -338
- package/dist/cli-plugin.js +144 -142
- package/dist/cli.js +374 -370
- package/dist/extension.js +420 -418
- package/package.json +4 -1
- package/registry/registry.json +57 -24
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
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
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.
|
|
29
29
|
- **Optional tab completion** — DeepSeek FIM completion, off by default.
|
|
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. It reuses the same renderer as the chat panel and the same highlighter as the CLI terminal — one set of rules, three surfaces.
|
|
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`.
|
|
32
32
|
|
|
33
33
|
## CLI
|
|
@@ -44,7 +44,7 @@ luban # interactive multi-turn (TTY
|
|
|
44
44
|
|
|
45
45
|
After a CLI-only install, run `luban config` (`luban init` is an alias) to write `~/.luban/providers.json`. Also: `luban config show` / `path` / `validate`. The CLI does **not** read keys from the extension's SecretStorage — use `apiKeyEnv` + env vars (or a plaintext `apiKey`). See [configuration](docs/configuration.md).
|
|
46
46
|
|
|
47
|
-
In agent mode, every write shows a unified diff and asks before touching disk (`--yes` skips the prompt). The old `--apply` flag is a deprecated alias kept for old scripts — `--agent` alone already enables writes, and `--apply` on its own no longer switches modes. In interactive mode, `Enter` sends, `Ctrl-J` / `Alt+Enter` inserts a newline, `/` completes commands, `@` completes workspace paths, and `Esc` cancels the running turn. Run `luban --help` for all flags (`--model`, `--root`, `--json`, `--max-rounds`, …).
|
|
47
|
+
In agent mode, every write shows a unified diff and asks before touching disk (`--yes` skips the prompt). The old `--apply` flag is a deprecated alias kept for old scripts — `--agent` alone already enables writes, and `--apply` on its own no longer switches modes. `--yolo` is an alias for `--agent --yes` (enables writes **and** skips every confirm), for third-party hosts like Orca / Crush that pre-fill a permission-bypass flag; it is ignored when you explicitly ask for `--plan` / `--explore`. In interactive mode, `Enter` sends, `Ctrl-J` / `Alt+Enter` inserts a newline, `/` completes commands, `@` completes workspace paths, and `Esc` cancels the running turn. Run `luban --help` for all flags (`--model`, `--root`, `--json`, `--max-rounds`, …).
|
|
48
48
|
|
|
49
49
|
Upgrade the CLI itself (reads npm `dist-tags`, then runs `npm i -g`):
|
|
50
50
|
|
|
@@ -181,6 +181,7 @@ The Marketplace only renders this page, so the details live on GitHub:
|
|
|
181
181
|
|---|---|
|
|
182
182
|
| [Usage and features](https://github.com/eppen/luban/blob/main/docs/usage.md) | Shortcuts, three modes, plan files, `@` `#` references, web search |
|
|
183
183
|
| [Tools, MCP and skills](https://github.com/eppen/luban/blob/main/docs/tools.md) | Every built-in tool, stdio MCP servers, `SKILL.md` |
|
|
184
|
+
| [Orca integration](https://github.com/eppen/luban/blob/main/docs/orca.md) | Borrow a built-in agent slot, argument choices, known gaps |
|
|
184
185
|
| [Reviewing changes](https://github.com/eppen/luban/blob/main/docs/review.md) | Editor diff, per-hunk accept / reject |
|
|
185
186
|
| [Sessions and memory](https://github.com/eppen/luban/blob/main/docs/sessions.md) | History layout, tabs, multi-turn memory, message queue |
|
|
186
187
|
| [How it works](https://github.com/eppen/luban/blob/main/docs/internals.md) | Request flow, tool-loop budgets, prefix caching, usage, dashboard |
|
package/README.zh.md
CHANGED
|
@@ -69,7 +69,7 @@ luban # 交互多轮(需要 TTY
|
|
|
69
69
|
|
|
70
70
|
纯 CLI 安装后先跑 `luban config`(`luban init` 同义)写 `~/.luban/providers.json`;也可用 `luban config show` / `path` / `validate`。CLI **不读**扩展面板的 SecretStorage,key 请用 `apiKeyEnv` + 环境变量(或明文 `apiKey`)。详见 [配置](docs/configuration.md)。
|
|
71
71
|
|
|
72
|
-
agent 模式下每次落盘前会显示 unified diff 并逐次确认(`--yes` 可跳过确认)。旧的 `--apply` 已废弃,只是为兼容旧脚本保留的别名:`--agent` 本身就放开写,单独用 `--apply`
|
|
72
|
+
agent 模式下每次落盘前会显示 unified diff 并逐次确认(`--yes` 可跳过确认)。旧的 `--apply` 已废弃,只是为兼容旧脚本保留的别名:`--agent` 本身就放开写,单独用 `--apply` 不再切模式(仍是只读)。`--yolo` 是 `--agent --yes` 的别名(放开写**且**不再逐次确认),供 Orca / Crush 这类会预填权限绕过 flag 的第三方宿主使用;若同时显式给了 `--plan` / `--explore`,它会被忽略(取保守一方)。交互模式里 `Enter` 发送、`Ctrl-J` / `Alt+Enter` 换行,输入 `/` 补全命令、`@` 补全文件,跑动中按 `Esc` 取消本轮。全量参数见 `luban --help`(`--model` / `--root` / `--json` / `--max-rounds` 等)。
|
|
73
73
|
|
|
74
74
|
CLI 自己也能升级(查 npm `dist-tags` → `npm i -g`):
|
|
75
75
|
|
|
@@ -229,6 +229,7 @@ cd ~/luban
|
|
|
229
229
|
|---|---|
|
|
230
230
|
| [用法与能力](docs/usage.md) | 快捷键、三档模式、Plan 计划文件、`@` `#` 引用、联网搜索 |
|
|
231
231
|
| [工具集、MCP 与技能](docs/tools.md) | 每个内置工具的参数与限制、stdio MCP、`SKILL.md` |
|
|
232
|
+
| [在 Orca 里用](docs/orca.md) | Orca 的 agent 目录编译期固定:借内置槽位怎么填(含「权限下拉必须选自身,否则被自动补 `--yolo`」)、`CI=1` 让 REPL 起不来等十一条已知坑、纯 CLI 复现路径、shim 何时才需要 |
|
|
232
233
|
| [审阅变更](docs/review.md) | 编辑器内 diff、逐块保留 / 撤销 |
|
|
233
234
|
| [会话、多轮记忆与消息队列](docs/sessions.md) | 会话落盘、多标签、记忆派生、排队接力 |
|
|
234
235
|
| [工作原理与内部机制](docs/internals.md) | 请求链路、工具循环闸门、前缀缓存、usage、用量看板 |
|