Skip to content

ClawGod v1.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Jul 09:09

Changes

  • feat(patcher): restore Glob/Grep tools by un-inlining EMBEDDED_SEARCH_TOOLS (Closes #120)

Glob/Grep 工具恢复

Bun 编译时将 process.env.EMBEDDED_SEARCH_TOOLS 内联为字面量 "true",导致 bC() 始终认为处于 bundled mode,Glob 和 Grep 工具从用户界面消失——Claude 只能用命令行 find/grep 搜索文件。

Patch 将 ct("true") 还原为 ct(process.env.EMBEDDED_SEARCH_TOOLS),同时注入 bfs/ugrep 二进制可用性检查:

  • env 未设置 → Glob/Grep 工具恢复可用
  • env 已设置但系统无 bfs/ugrep → 自动 fallback 到工具模式
  • 兼容 Windows(where)和 Unix(which

感谢 CometixSpace/claude-code 的参考实现。

Install

macOS / Linux:

curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash

Windows (PowerShell):

irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex

Full changelog: v1.3.1...v1.4.0