mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 23:31:07 +00:00
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
export type ToolErrorSummary = {
|
|
toolName: string;
|
|
meta?: string;
|
|
error?: string;
|
|
timedOut?: boolean;
|
|
mutatingAction?: boolean;
|
|
actionFingerprint?: string;
|
|
};
|
|
|
|
const EXEC_LIKE_TOOL_NAMES = new Set(["exec", "bash"]);
|
|
|
|
export function isExecLikeToolName(toolName: string): boolean {
|
|
return EXEC_LIKE_TOOL_NAMES.has(toolName.trim().toLowerCase());
|
|
}
|