Roo-Code/src/core/tools
Chiranjeevisantosh Madugundi 5db2062d0c
feat: show aggregated +/− line counts in FileChangesPanel header (#11618)
* 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>
2026-02-19 23:22:20 -07:00
..
__tests__ feat: remove Roomote Control from extension (#11271) 2026-02-19 16:33:39 -08:00
apply-patch feat: add apply_patch native tool (#9663) 2025-11-28 23:07:03 -05:00
helpers Reapply Batch 1: 22 clean non-AI-SDK cherry-picks (#11473) 2026-02-14 13:47:12 -07:00
accessMcpResourceTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
ApplyDiffTool.ts feat: show aggregated +/− line counts in FileChangesPanel header (#11618) 2026-02-19 23:22:20 -07:00
ApplyPatchTool.ts feat: show aggregated +/− line counts in FileChangesPanel header (#11618) 2026-02-19 23:22:20 -07:00
AskFollowupQuestionTool.ts fix: add follow_up param validation in AskFollowupQuestionTool (#11484) 2026-02-16 10:14:37 -07:00
AttemptCompletionTool.ts Revert to pre-AI-SDK state (January 29, 2026) (#11462) 2026-02-13 16:45:18 -05:00
BaseTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
CodebaseSearchTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
EditFileTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
EditTool.ts Add back post-revert bug fixes and features (Step 2) (#11463) 2026-02-13 18:40:28 -05:00
ExecuteCommandTool.ts feat: add timeout parameter to execute_command tool (#11622) 2026-02-19 23:43:09 -05:00
GenerateImageTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
ListFilesTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
NewTaskTool.ts Revert to pre-AI-SDK state (January 29, 2026) (#11462) 2026-02-13 16:45:18 -05:00
ReadCommandOutputTool.ts feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
ReadFileTool.ts Reapply Batch 1: 22 clean non-AI-SDK cherry-picks (#11473) 2026-02-14 13:47:12 -07:00
RunSlashCommandTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
SearchAndReplaceTool.ts Add back post-revert bug fixes and features (Step 2) (#11463) 2026-02-13 18:40:28 -05:00
SearchFilesTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
SearchReplaceTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
SkillTool.ts Revert to pre-AI-SDK state (January 29, 2026) (#11462) 2026-02-13 16:45:18 -05:00
SwitchModeTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
ToolRepetitionDetector.ts Reapply Batches 3-4: Skills, browser removal, provider removals (6 major-conflict cherry-picks) (#11475) 2026-02-14 22:06:24 -07:00
UpdateTodoListTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
UseMcpToolTool.ts Reapply Batch 1: 22 clean non-AI-SDK cherry-picks (#11473) 2026-02-14 13:47:12 -07:00
validateToolUse.ts Add back post-revert bug fixes and features (Step 2) (#11463) 2026-02-13 18:40:28 -05:00
WriteToFileTool.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00