fix(hooks): add bash-file-read-guard to warn agents against cat/head/tail (fixes #2096)

This commit is contained in:
MoerAI
2026-03-23 20:15:20 +09:00
parent 331f7ec52b
commit 2f801f6c28
5 changed files with 54 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ export { createPreemptiveCompactionHook } from "./preemptive-compaction";
export { createTasksTodowriteDisablerHook } from "./tasks-todowrite-disabler";
export { createRuntimeFallbackHook, type RuntimeFallbackHook, type RuntimeFallbackOptions } from "./runtime-fallback";
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
export { createBashFileReadGuardHook } from "./bash-file-read-guard";
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
export { createJsonErrorRecoveryHook, JSON_ERROR_TOOL_EXCLUDE_LIST, JSON_ERROR_PATTERNS, JSON_ERROR_REMINDER } from "./json-error-recovery";
export { createReadImageResizerHook } from "./read-image-resizer"