feat: implement permission denial tracking for tool calls

This commit is contained in:
Mingholy
2025-11-05 22:09:27 +08:00
parent 49b1018337
commit 95cf53f3bc
3 changed files with 56 additions and 7 deletions

View File

@@ -14,6 +14,8 @@ export enum ToolErrorType {
UNHANDLED_EXCEPTION = 'unhandled_exception',
TOOL_NOT_REGISTERED = 'tool_not_registered',
EXECUTION_FAILED = 'execution_failed',
// Try to execute a tool that is excluded due to the approval mode
EXECUTION_DENIED = 'execution_denied',
// File System Errors
FILE_NOT_FOUND = 'file_not_found',