droid-patch 0.8.0 → 0.8.1

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
@@ -72,7 +72,7 @@ npx droid-patch --skip-login -o /path/to/dir my-droid
72
72
  | `--skip-login` | Bypass login by injecting a fake `FACTORY_API_KEY` into the binary |
73
73
  | `--api-base <url>` | Replace API URL (standalone: binary patch, max 22 chars; with `--websearch`: proxy forward target, no limit) |
74
74
  | `--websearch` | Inject local WebSearch proxy with multiple search providers |
75
- | `--statusline` | Enable Claude-style terminal statusline (shows model, context, git info) |
75
+ | `--statusline` | Enable Claude-style terminal statusline (Bun-based wrapper; requires Bun >= 1.3.5) |
76
76
  | `--sessions` | Enable interactive sessions browser (use with `--statusline`, browse and resume past sessions) |
77
77
  | `--standalone` | Standalone mode: mock non-LLM Factory APIs (use with `--websearch`) |
78
78
  | `--reasoning-effort` | Enable reasoning effort UI selector for custom models (set to high) |
@@ -348,7 +348,7 @@ Enables a Claude-style statusline at the bottom of the terminal, displaying real
348
348
 
349
349
  **How it works**:
350
350
 
351
- 1. A Python PTY wrapper intercepts terminal I/O and reserves bottom row(s)
351
+ 1. A Bun PTY wrapper intercepts terminal I/O and reserves bottom row(s)
352
352
  2. A Node.js monitor script tails the Factory log file (`~/.factory/logs/droid-log-single.log`)
353
353
  3. The monitor parses streaming token usage and emits statusline frames
354
354
  4. The wrapper renders the latest frame on the reserved rows
@@ -372,7 +372,7 @@ npx droid-patch --is-custom --skip-login --websearch --statusline droid-ultimate
372
372
  Model: claude-sonnet-4-20250514 Prov: anthropic Ctx: 12345 (c8000+n4345) In:33 Out:1273 Cre:33.9k Read:25.9k Think:212 LastOut:130 ⎇ main (+10,-5) cwd: my-project
373
373
  ```
374
374
 
375
- **Note**: The statusline requires Python 3 for the PTY wrapper. It works best in modern terminal emulators (iTerm2, Alacritty, Kitty, etc.). Apple Terminal is supported but uses a longer render interval to reduce flicker.
375
+ **Note**: The statusline uses a Bun-based PTY wrapper and requires Bun >= 1.3.5. It works best in modern terminal emulators (iTerm2, Alacritty, Kitty, etc.). Apple Terminal is supported but uses a longer render interval to reduce flicker.
376
376
 
377
377
  ### `--sessions`
378
378
 
package/README.zh-CN.md CHANGED
@@ -72,7 +72,7 @@ npx droid-patch --skip-login -o /path/to/dir my-droid
72
72
  | `--skip-login` | 通过注入假的 `FACTORY_API_KEY` 跳过登录验证 |
73
73
  | `--api-base <url>` | 替换 API URL(单独使用:二进制补丁,最多 22 字符;与 `--websearch` 配合:代理转发目标,无限制) |
74
74
  | `--websearch` | 注入本地 WebSearch 代理,支持多个搜索提供商 |
75
- | `--statusline` | 启用 Claude 风格的终端状态栏(显示模型、上下文、git 信息) |
75
+ | `--statusline` | 启用 Claude 风格的终端状态栏(Bun 版本 wrapper;需要 Bun >= 1.3.5) |
76
76
  | `--sessions` | 启用交互式会话浏览器(需配合 `--statusline`,可浏览和恢复历史会话) |
77
77
  | `--standalone` | 独立模式:mock 非 LLM 的 Factory API(与 `--websearch` 配合使用) |
78
78
  | `--reasoning-effort` | 为自定义模型启用推理强度 UI 选择器(设置为 high) |
@@ -348,7 +348,7 @@ npx droid-patch --is-custom --skip-login --disable-telemetry droid-private
348
348
 
349
349
  **工作原理**:
350
350
 
351
- 1. Python PTY 包装器拦截终端 I/O 并预留底部行
351
+ 1. Bun PTY 包装器拦截终端 I/O 并预留底部行
352
352
  2. Node.js 监控脚本跟踪 Factory 日志文件(`~/.factory/logs/droid-log-single.log`)
353
353
  3. 监控器解析流式 token 使用并输出状态栏帧
354
354
  4. 包装器在预留行上渲染最新帧
@@ -372,7 +372,7 @@ npx droid-patch --is-custom --skip-login --websearch --statusline droid-ultimate
372
372
  Model: claude-sonnet-4-20250514 Prov: anthropic Ctx: 12345 (c8000+n4345) In:33 Out:1273 Cre:33.9k Read:25.9k Think:212 LastOut:130 ⎇ main (+10,-5) cwd: my-project
373
373
  ```
374
374
 
375
- **注意**:状态栏需要 Python 3 来运行 PTY 包装器。在现代终端模拟器(iTerm2、Alacritty、Kitty 等)中效果最佳。支持 Apple Terminal,但使用较长的渲染间隔以减少闪烁。
375
+ **注意**:状态栏使用 Bun 版本的 PTY 包装器,需要 Bun >= 1.3.5。在现代终端模拟器(iTerm2、Alacritty、Kitty 等)中效果最佳。支持 Apple Terminal,但使用较长的渲染间隔以减少闪烁。
376
376
 
377
377
  ### `--sessions`
378
378