constants.ts
tools/FileEditTool/constants.ts
12
Lines
538
Bytes
4
Exports
0
Imports
10
Keywords
What this is
This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.
Beginner explanation
This file is part of the tool layer, which means it describes actions the system can perform for the user or model.
How it is used
Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.
Expert explanation
Architecturally, this file intersects with tool-system, file-tools. It contains 12 lines, 0 detected imports, and 4 detected exports.
Important relationships
- tools/FileEditTool/FileEditTool.ts
- tools/FileEditTool/UI.tsx
- tools/FileEditTool/prompt.ts
- tools/FileEditTool/types.ts
- tools/FileEditTool/utils.ts
- ink/constants.ts
- tools/AgentTool/constants.ts
- tools/ConfigTool/constants.ts
- tools/EnterPlanModeTool/constants.ts
- tools/EnterWorktreeTool/constants.ts
- tools/ExitPlanModeTool/constants.ts
- tools/ExitWorktreeTool/constants.ts
Detected exports
FILE_EDIT_TOOL_NAMECLAUDE_FOLDER_PERMISSION_PATTERNGLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERNFILE_UNEXPECTEDLY_MODIFIED_ERROR
Keywords
claudefilepermissionpatterngrantingsession-levelaccessfolderavoidcircular
Detected imports
- No import paths detected.
Source notes
This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.
Full source
// 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.'