pi-mono/packages/coding-agent/src/core/tools
Petr Houška 523b5a4917
fix(coding-agent): normalize find root results (#7569)
Relativize absolute find results with path.relative() instead of slicing
at searchPath.length + 1. path.resolve() keeps the trailing separator for
root paths (POSIX / and Windows bare drive roots like I:\), so the slice
dropped the first character of the first path segment. Preserve directory
markers using platform-aware separators so Windows paths do not gain "//"
and valid POSIX backslashes remain unchanged.

This also avoids treating sibling paths with a shared prefix as children.
Relative results returned by custom glob operations now pass through
unchanged instead of being resolved against process.cwd(), which produced
invalid paths whenever cwd differed from the search path.

Fixes #6104
2026-08-04 00:05:48 +02:00
..
bash.ts feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
edit-diff.ts fix(coding-agent): preserve untouched lines in fuzzy edit 2026-06-19 20:16:47 +02:00
edit.ts fix(coding-agent): allow extra edit replacement fields 2026-07-04 01:52:17 +02:00
file-mutation-queue.ts fix(coding-agent): use async operations in tools 2026-05-23 09:50:03 +02:00
find.ts fix(coding-agent): normalize find root results (#7569) 2026-08-04 00:05:48 +02:00
grep.ts Fix tool expand hint punctuation styling 2026-06-04 23:44:25 +02:00
index.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
ls.ts Fix tool expand hint punctuation styling 2026-06-04 23:44:25 +02:00
output-accumulator.ts fix(coding-agent): correct bash truncation line count 2026-05-21 16:55:22 +02:00
path-utils.ts Finish async tool cleanup 2026-05-23 11:36:41 +02:00
read.ts fix(coding-agent): do not highlight read errors (#6731) 2026-07-17 09:02:50 +02:00
render-utils.ts feat(coding-agent): hyperlink file paths in tool titles 2026-05-29 22:02:25 +10:00
tool-definition-wrapper.ts feat(ai): support constrained sampling (#6341) 2026-07-23 23:48:40 +02:00
truncate.ts fix(coding-agent): correct bash truncation line count 2026-05-21 16:55:22 +02:00
write.ts Fix tool expand hint punctuation styling 2026-06-04 23:44:25 +02:00