mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-02 12:03:15 +00:00
26 lines
541 B
TypeScript
26 lines
541 B
TypeScript
|
|
/**
|
||
|
|
* Both of these constants are used in the approval system in the post model hook.
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* File operation commands that require approval in the approval system
|
||
|
|
*/
|
||
|
|
export const FILE_EDIT_COMMANDS = new Set([
|
||
|
|
"write_file",
|
||
|
|
"str_replace_based_edit_tool",
|
||
|
|
"edit_file",
|
||
|
|
]);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* All commands that require approval (includes file operations plus other system operations)
|
||
|
|
*/
|
||
|
|
export const WRITE_COMMANDS = new Set([
|
||
|
|
"write_file",
|
||
|
|
"execute_bash",
|
||
|
|
"str_replace_based_edit_tool",
|
||
|
|
"ls",
|
||
|
|
"edit_file",
|
||
|
|
"glob",
|
||
|
|
"grep",
|
||
|
|
]);
|