π File detail
tools/FileEditTool/constants.ts
π§© .tsπ 12 linesπΎ 538 bytesπ text
β Back to All Filesπ― Use case
This module implements the βFileEditToolβ tool (File Edit) β something the model can call at runtime alongside other agent tools. On the API surface it exposes FILE_EDIT_TOOL_NAME, CLAUDE_FOLDER_PERMISSION_PATTERN, GLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERN, and FILE_UNEXPECTEDLY_MODIFIED_ERROR β mainly types, interfaces, or factory objects.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
// In its own file to avoid circular dependencies export const FILE_EDIT_TOOL_NAME = 'Edit' // Permission pattern for granting session-level access to the project's .claude/ folder export const CLAUDE_FOLDER_PERMISSION_PATTERN = '/.claude/**'
π€ Exports (heuristic)
FILE_EDIT_TOOL_NAMECLAUDE_FOLDER_PERMISSION_PATTERNGLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERNFILE_UNEXPECTEDLY_MODIFIED_ERROR
π₯οΈ Source preview
// In its own file to avoid circular dependencies export const FILE_EDIT_TOOL_NAME = 'Edit' // Permission pattern for granting session-level access to the project's .claude/ folder export const CLAUDE_FOLDER_PERMISSION_PATTERN = '/.claude/**' // Permission pattern for granting session-level access to the global ~/.claude/ folder export const GLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERN = '~/.claude/**' export const FILE_UNEXPECTEDLY_MODIFIED_ERROR = 'File has been unexpectedly modified. Read it again before attempting to write it.'