mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-29 06:32:42 +00:00
13 lines
351 B
TypeScript
13 lines
351 B
TypeScript
import { Task } from "../task/Task"
|
|
|
|
export interface MiddlewareResult {
|
|
allow: boolean
|
|
error?: string
|
|
modifiedParams?: any
|
|
}
|
|
|
|
export interface ToolMiddleware {
|
|
name: string
|
|
beforeExecute?(params: any, task: Task, toolName: string): Promise<MiddlewareResult>
|
|
afterExecute?(result: any, task: Task, toolName: string): Promise<MiddlewareResult>
|
|
}
|