Skip to content

Commit ebcae2e

Browse files
committed
change handleWriteFile to function
1 parent 62e4c28 commit ebcae2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/src/tools/handlers/tool/write-file.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function getFileProcessingValues(
6363
return fileProcessingValues
6464
}
6565

66-
export const handleWriteFile = ((
66+
export function handleWriteFile(
6767
params: {
6868
previousToolCallFinished: Promise<void>
6969
toolCall: CodebuffToolCall<'write_file'>
@@ -103,7 +103,7 @@ export const handleWriteFile = ((
103103
): {
104104
result: Promise<CodebuffToolOutput<'write_file'>>
105105
state: FileProcessingState
106-
} => {
106+
} {
107107
const {
108108
previousToolCallFinished,
109109
toolCall,
@@ -201,7 +201,8 @@ export const handleWriteFile = ((
201201
})(),
202202
state: fileProcessingState,
203203
}
204-
}) satisfies CodebuffToolHandlerFunction<'write_file'>
204+
}
205+
handleWriteFile satisfies CodebuffToolHandlerFunction<'write_file'>
205206

206207
export async function postStreamProcessing<T extends FileProcessingTools>(
207208
toolCall: FileProcessing<T>,

0 commit comments

Comments
 (0)