feat(claude-code-hooks): add PreCompact hook support for experimental.session.compacting event (#139)

This commit is contained in:
YeonGyu-Kim
2025-12-25 14:29:27 +09:00
committed by GitHub
parent 43d9702439
commit b02aee6e90
5 changed files with 166 additions and 0 deletions
@@ -9,6 +9,7 @@ export interface DisabledHooksConfig {
PreToolUse?: string[]
PostToolUse?: string[]
UserPromptSubmit?: string[]
PreCompact?: string[]
}
export interface PluginExtendedConfig {
@@ -47,6 +48,7 @@ function mergeDisabledHooks(
PreToolUse: override.PreToolUse ?? base.PreToolUse,
PostToolUse: override.PostToolUse ?? base.PostToolUse,
UserPromptSubmit: override.UserPromptSubmit ?? base.UserPromptSubmit,
PreCompact: override.PreCompact ?? base.PreCompact,
}
}