Skip to content

v0.4.1 — 全量审计加固 · 规则模板与 PS 5.1 修复 · 进程树与交叉审查解析修复

Choose a tag to compare

@github-actions github-actions released this 03 Dec 03:08
· 18 commits to main since this release

🐛 关键缺陷修复与跨平台加固 / Critical Bug Fixes & Hardening

规则模板与派单脚本(P0 / P1)

  • Antigravity / Cursor 规则模板修复:为 examples/delegation-rule.md 与 examples/delegation-rule.en.md 补齐 Antigravity 必需的 trigger: always_on YAML frontmatter(修复复制到 ~/.gemini/config/rules/ 时被静默丢弃的问题),补充 Cursor .mdc 指引,修正 acceptance_summary / acceptance_history 字段名,并移除示例中硬编码的模型名 Hydrogen。
  • PowerShell 5.1 崩溃修复:examples/dispatch-delegate.ps1 改用 UTF-8 System.Diagnostics.Process 捕获子进程输出(修复 PS 5.1 下 $ErrorActionPreference = 'Stop' + 2> 遇任意 stderr 即抛 NativeCommandError 崩溃的问题),为 Invoke-WebRequest fallback 补加 -Proxy $null。
  • 派单脚本行为对齐:examples/dispatch-delegate.ps1 与 examples/dispatch-delegate.sh 移除默认强锁 Hydrogen(改为按 CLI 默认不强制),并在 -BatchFile / --batch-file 批量模式下补齐自动热切工作区(gemlatch workspace set)。

Rust 运行时、验收门与交叉审查(P1 / P2)

  • src/exec.rs:AllowlistExecutor 剥离 Windows \\?\ verbatim 工作目录前缀,并改为复用 process::run_with_capture 进程树监管(Windows Job Object / Unix 进程组),防止超时或 /abort 残留孙进程。
  • src/tools.rs:report_task_done 的 ExecutionGuard 总超时上限随验收命令数放大至最高 3600s;修复 --unrestricted-fs 下 code_search 对工作区外目录/单文件传相对 glob 失效的问题。
  • src/gemini_dom.rs:--web-model 菜单匹配改为 Unicode 分词(/[^\p{L}\p{N}]+/u)与两轮精确优先匹配;parse_sentinel 跳过围栏代码块并补充 risk_points 透传。
  • src/delegate.rs:parse_review_findings 支持剥离 Markdown 修饰(如 **VERDICT: APPROVE**)、防否定句误判,并修复把 "No [BLOCKER] or [WARNING] issues found." 误计成 blocker_count=1 导致误返回退出码 14 的缺陷。
  • src/main.rs:本地控制面 local_headers 补拦 via、x-forwarded-host、true-client-ip。

运维脚本、打包与文档同步

  • scripts/stop.ps1 补齐便携版根目录 gemlatch.exe 匹配;scripts/start.bat 安全剥离尾随反斜杠;examples/allowlist.node.toml 补充 Windows node 入口示例;.gitattributes 补齐 *.sh text eol=lf。
  • 同步修正 README.md、README.zh-CN.md、docs/delegate-guide.md 与 docs/cdp-findings.md 的退出码(0–7, 10–14)、紧凑 JSON 上限(<= 3 KiB)、--no-nudge 与临时 allowlist 路径;新增 README 实时演示 GIF,并精简三平台 Release 压缩包体积。

📦 预编译发行包 / Prebuilt Archives

  • Windows (x86_64): gemlatch-v0.4.1-windows-x86_64.zip
  • Linux (x86_64, static musl): gemlatch-v0.4.1-linux-x86_64.tar.gz
  • macOS (Apple Silicon aarch64): gemlatch-v0.4.1-macos-aarch64.tar.gz
  • Checksums: SHA256SUMS.txt