Skip to content

Commit cfb1e27

Browse files
committed
Fix tsc error
1 parent a07d67c commit cfb1e27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/core/tools/attemptCompletionTool.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "../../shared/tools"
1414
import { formatResponse } from "../prompts/responses"
1515
import { telemetryService } from "../../services/telemetry/TelemetryService"
16-
import { executeCommand } from "./executeCommandTool"
16+
import { type ExecuteCommandOptions, executeCommand } from "./executeCommandTool"
1717

1818
export async function attemptCompletionTool(
1919
cline: Cline,
@@ -82,7 +82,9 @@ export async function attemptCompletionTool(
8282
return
8383
}
8484

85-
const [userRejected, execCommandResult] = await executeCommand(cline, command!)
85+
const options: ExecuteCommandOptions = { command }
86+
87+
const [userRejected, execCommandResult] = await executeCommand(cline, options)
8688

8789
if (userRejected) {
8890
cline.didRejectTool = true

src/core/tools/executeCommandTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function executeCommandTool(
103103
}
104104
}
105105

106-
type ExecuteCommandOptions = {
106+
export type ExecuteCommandOptions = {
107107
command: string
108108
customCwd?: string
109109
terminalShellIntegrationDisabled?: boolean

0 commit comments

Comments
 (0)