open-swe/apps/open-swe-v2/src/constants.ts
Palash Shah 46d795c41b
feat: open swe v2 in js! (#797)
* 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>
2025-08-27 09:49:54 -04:00

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",
]);