mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 19:43:15 +00:00
* feat: openswe v2 * feat: yarn lock * update: add eslint * update: working build & lint * chore: update types * chore: format * reorg agent v2 * cleanup * fixes * nits: modifications * feat: updates * nit: update yarn lock * nit: don't add dep to root * chore: update yarn * chore: update langgraph.json * nit: update names * chore: update functions * nit: update --------- Co-authored-by: bracesproul <braceasproul@gmail.com>
25 lines
541 B
TypeScript
25 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",
|
|
]);
|