summaryrefslogtreecommitdiff
path: root/packages/cli/src/tools/grep.tool.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/tools/grep.tool.ts')
-rw-r--r--packages/cli/src/tools/grep.tool.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/tools/grep.tool.ts b/packages/cli/src/tools/grep.tool.ts
index 72e28d01..788fc76d 100644
--- a/packages/cli/src/tools/grep.tool.ts
+++ b/packages/cli/src/tools/grep.tool.ts
@@ -351,7 +351,7 @@ export class GrepTool extends BaseTool<GrepToolParams, GrepToolResult> {
results.push({
// Use relative path, or just the filename if it's in the base path itself
filePath: relativeFilePath || path.basename(absoluteFilePath),
- lineNumber: lineNumber,
+ lineNumber,
line: lineContent, // Use the full extracted line content
});
}
@@ -555,7 +555,7 @@ export class GrepTool extends BaseTool<GrepToolParams, GrepToolResult> {
path.relative(absolutePath, fileAbsolutePath) ||
path.basename(fileAbsolutePath),
lineNumber: index + 1,
- line: line,
+ line,
});
}
});