修复说明
文件: electron/harness/tools/built-in/code-search.ts
修复: ripgrep 参数中在 pattern 前插入 -- 终止选项解析,防止以 - 开头的 pattern 被解释为 ripgrep 选项(如…
修复说明
文件: electron/harness/tools/built-in/filesystem.ts
修复: walkDir 新增 depth/maxDepth(默认 20)/visited 参数。深度超限立即返回防止栈溢出;realpathSync 去重防止符号…
修复说明
文件: electron/harness/tools/built-in/filesystem.ts
修复: DeleteFileTool.execute 添加 TOCTOU 防护:删除前 realpathSync 记录 realBefore 并校验工作空间内,stat 后再次…
修复说明
文件: electron/harness/tools/built-in/git.ts
修复: GitDiffTool.execute 中对 pathspec 做 resolve + isPathWithinWorkspace 校验,越界时返回错误,防止 `../../../other-re…
修复说明
文件: electron/harness/hooks/confirmation-hook.ts
修复: 采用 settled 标志 + safeResolve 包装:超时分支与确认分支互斥,先到者赢,另一分支直接 return。解决超时回调已入队时…
修复说明
文件: electron/harness/hooks/post-tool.ts
修复: AuditLogHook.afterExecute 添加 try-catch。工单描述的文件 audit-log-hook.ts 不存在,AuditLogHook 实际定义在 post-tool.ts…
修复说明
文件: electron/harness/security/prompt-injection-defense.ts
修复: 新增 normalizeForDetection 方法(NFKC 归一化 + 移除零宽字符 U+200B/C/D/U+00AD/U+FEFF),detect/`detectS…
修复说明
文件: electron/harness/security/prompt-injection-defense.ts
修复: 为所有英文关键词注入模式添加 \b 单词边界(如 \bignore\s+...\binstructions?\b),防止 `Xignore previous…
修复说明
文件: electron/harness/sandbox/permissions.ts
修复: 新增 deepScanStrings 私有方法递归提取对象所有字符串字段值。checkAuthorization 中 deniedPatterns/allowedPatterns…
修复说明
文件: electron/harness/sandbox/sandbox.ts
修复: 新增 6 个危险模式检测:require('fs')、动态 `import('fs'