summaryrefslogtreecommitdiff
path: root/packages/cli/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/tools')
-rw-r--r--packages/cli/src/tools/grep.tool.ts4
-rw-r--r--packages/cli/src/tools/read-file.tool.ts2
-rw-r--r--packages/cli/src/tools/terminal.tool.ts4
-rw-r--r--packages/cli/src/tools/tools.ts8
-rw-r--r--packages/cli/src/tools/write-file.tool.ts2
5 files changed, 10 insertions, 10 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,
});
}
});
diff --git a/packages/cli/src/tools/read-file.tool.ts b/packages/cli/src/tools/read-file.tool.ts
index fc4dc977..98df7c12 100644
--- a/packages/cli/src/tools/read-file.tool.ts
+++ b/packages/cli/src/tools/read-file.tool.ts
@@ -36,7 +36,7 @@ export class ReadFileTool extends BaseTool<
ReadFileToolParams,
ReadFileToolResult
> {
- public static readonly Name: string = 'read_file';
+ static readonly Name: string = 'read_file';
// Maximum number of lines to read by default
private static readonly DEFAULT_MAX_LINES = 2000;
diff --git a/packages/cli/src/tools/terminal.tool.ts b/packages/cli/src/tools/terminal.tool.ts
index 3e2d7bf8..73f4af7d 100644
--- a/packages/cli/src/tools/terminal.tool.ts
+++ b/packages/cli/src/tools/terminal.tool.ts
@@ -127,7 +127,7 @@ export class TerminalTool extends BaseTool<
TerminalToolParams,
TerminalToolResult
> {
- public static Name: string = 'execute_bash_command';
+ static Name: string = 'execute_bash_command';
private readonly rootDirectory: string;
private readonly outputLimit: number;
@@ -387,7 +387,7 @@ Use this tool for running build steps (\`npm install\`, \`make\`), linters (\`es
const confirmationDetails: ToolExecuteConfirmationDetails = {
title: 'Confirm Shell Command',
command: params.command,
- rootCommand: rootCommand,
+ rootCommand,
description: `Execute in '${this.currentCwd}':\n${description}`,
onConfirm: async (outcome: ToolConfirmationOutcome) => {
if (outcome === ToolConfirmationOutcome.ProceedAlways) {
diff --git a/packages/cli/src/tools/tools.ts b/packages/cli/src/tools/tools.ts
index 74acb919..9df90261 100644
--- a/packages/cli/src/tools/tools.ts
+++ b/packages/cli/src/tools/tools.ts
@@ -76,10 +76,10 @@ export abstract class BaseTool<
* @param parameterSchema JSON Schema defining the parameters
*/
constructor(
- public readonly name: string,
- public readonly displayName: string,
- public readonly description: string,
- public readonly parameterSchema: Record<string, unknown>,
+ readonly name: string,
+ readonly displayName: string,
+ readonly description: string,
+ readonly parameterSchema: Record<string, unknown>,
) {}
/**
diff --git a/packages/cli/src/tools/write-file.tool.ts b/packages/cli/src/tools/write-file.tool.ts
index 8cf0a422..1939bca0 100644
--- a/packages/cli/src/tools/write-file.tool.ts
+++ b/packages/cli/src/tools/write-file.tool.ts
@@ -37,7 +37,7 @@ export class WriteFileTool extends BaseTool<
WriteFileToolParams,
WriteFileToolResult
> {
- public static readonly Name: string = 'write_file';
+ static readonly Name: string = 'write_file';
private shouldAlwaysWrite = false;
/**