We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b23a868 commit 90a06b5Copy full SHA for 90a06b5
2 files changed
codebase_rag/tool_errors.py
@@ -49,6 +49,9 @@
49
CODE_ENTITY_NOT_FOUND = "Entity not found in graph."
50
CODE_MISSING_LOCATION = "Graph entry is missing location data."
51
52
+# (H) Tool operation errors
53
+WRITE_QUERY_MODE_BLOCKED = "Write operations are not allowed in query mode"
54
+
55
# (H) File writer errors
56
FILE_WRITER_SECURITY = (
57
"Security risk: Attempted to create file outside of project root: {path}"
codebase_rag/tools/file_writer.py
@@ -33,7 +33,7 @@ async def _create_validated(
33
return FileCreationResult(
34
file_path=str(file_path),
35
success=False,
36
- error_message="Write operations are not allowed in query mode",
+ error_message=te.WRITE_QUERY_MODE_BLOCKED,
37
)
38
39
try:
0 commit comments