update shell output at an interval to reduce flicker (#614)

This commit is contained in:
Olcan 2025-05-30 00:02:30 -07:00 committed by GitHub
parent 2582c20e2a
commit b0aeeb53b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 22 deletions

View file

@ -68,7 +68,7 @@ export interface Tool<
execute(
params: TParams,
signal: AbortSignal,
onOutputChunk?: (chunk: string) => void,
updateOutput?: (output: string) => void,
): Promise<TResult>;
}
@ -154,7 +154,7 @@ export abstract class BaseTool<
abstract execute(
params: TParams,
signal: AbortSignal,
onOutputChunk?: (chunk: string) => void,
updateOutput?: (output: string) => void,
): Promise<TResult>;
}