mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-16 23:41:06 +00:00
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import type { ClineSayTool } from "@roo-code/types"
|
|
|
|
export function isWriteToolAction(tool: ClineSayTool): boolean {
|
|
return ["editedExistingFile", "appliedDiff", "newFileCreated", "generateImage"].includes(tool.tool)
|
|
}
|
|
|
|
export function isReadOnlyToolAction(tool: ClineSayTool): boolean {
|
|
return [
|
|
"readFile",
|
|
"listFiles",
|
|
"listFilesTopLevel",
|
|
"listFilesRecursive",
|
|
"searchFiles",
|
|
"codebaseSearch",
|
|
"runSlashCommand",
|
|
].includes(tool.tool)
|
|
}
|