mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
* feat: show aggregated +/− line counts in FileChangesPanel header * feat(FileChangesPanel): show merged diff relative to final file state * fix(webview): restrict readFileContent to paths inside the workspace * fix: add workspace-boundary validation to readFileContent to prevent path traversal * fix(tests): mock isPathOutsideWorkspace in readFileContent spec * fix(tests): mock isPathOutsideWorkspace in readFileContent spec * fix: use path.resolve/path.sep in readFileContent test mock for cross-platform compatibility The isPathOutsideWorkspace mock used hardcoded Unix-style path comparisons (/mock/workspace with forward slashes), which fails on Windows where path.resolve() produces paths with drive letters (C:\mock\workspace\...). Replace manual string normalization with path.resolve() and path.sep so the mock behaves correctly on both Windows and Unix. --------- Co-authored-by: Roo Code <roomote@roocode.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| apply-patch | ||
| helpers | ||
| accessMcpResourceTool.ts | ||
| ApplyDiffTool.ts | ||
| ApplyPatchTool.ts | ||
| AskFollowupQuestionTool.ts | ||
| AttemptCompletionTool.ts | ||
| BaseTool.ts | ||
| CodebaseSearchTool.ts | ||
| EditFileTool.ts | ||
| EditTool.ts | ||
| ExecuteCommandTool.ts | ||
| GenerateImageTool.ts | ||
| ListFilesTool.ts | ||
| NewTaskTool.ts | ||
| ReadCommandOutputTool.ts | ||
| ReadFileTool.ts | ||
| RunSlashCommandTool.ts | ||
| SearchAndReplaceTool.ts | ||
| SearchFilesTool.ts | ||
| SearchReplaceTool.ts | ||
| SkillTool.ts | ||
| SwitchModeTool.ts | ||
| ToolRepetitionDetector.ts | ||
| UpdateTodoListTool.ts | ||
| UseMcpToolTool.ts | ||
| validateToolUse.ts | ||
| WriteToFileTool.ts | ||