@luban-code/luban-code 1.137.3 → 1.137.8

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
@@ -38,13 +38,13 @@ This package also ships the `luban` command — a headless entry point that reus
38
38
  npm i -g @luban-code/luban-code
39
39
  luban config # interactive wizard: provider / model / API key
40
40
  luban --plan "调研 src/ 的目录结构并给出重构建议" # read-only plan (default)
41
- luban --agent --apply "新建 utils.js 并写测试" # full agent with writes
41
+ luban --agent "新建 utils.js 并写测试" # full agent with writes
42
42
  luban # interactive multi-turn (TTY)
43
43
  ```
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
- With `--apply`, every write shows a unified diff and asks before touching disk (`--yes` skips the prompt). 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. 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
 
package/README.zh.md CHANGED
@@ -63,13 +63,13 @@ VSCodium / VS Code 里的**侧边栏 AI 编码助手**:说人话 → 它改文
63
63
  npm i -g @luban-code/luban-code
64
64
  luban config # 交互向导:配 provider / 模型 / API key
65
65
  luban --plan "调研 src/ 的目录结构并给出重构建议" # 只读计划(默认)
66
- luban --agent --apply "新建 utils.js 并写测试" # 完整 agent,放开写
66
+ luban --agent "新建 utils.js 并写测试" # 完整 agent,放开写
67
67
  luban # 交互多轮(需要 TTY)
68
68
  ```
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
- 配合 `--apply` 时,每次落盘前会显示 unified diff 并逐次确认(`--yes` 可跳过确认)。交互模式里 `Enter` 发送、`Ctrl-J` / `Alt+Enter` 换行,输入 `/` 补全命令、`@` 补全文件,跑动中按 `Esc` 取消本轮。全量参数见 `luban --help`(`--model` / `--root` / `--json` / `--max-rounds` 等)。
72
+ agent 模式下每次落盘前会显示 unified diff 并逐次确认(`--yes` 可跳过确认)。旧的 `--apply` 已废弃,只是为兼容旧脚本保留的别名:`--agent` 本身就放开写,单独用 `--apply` 不再切模式(仍是只读)。交互模式里 `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