fix(rebase): restore missing hook export and fix duplicate function in event handler

This commit is contained in:
YeonGyu-Kim
2026-02-21 04:18:20 +09:00
parent 67c2cfddf4
commit 1db26ed114
2 changed files with 3 additions and 4 deletions

View File

@@ -49,4 +49,5 @@ export { createRuntimeFallbackHook, type RuntimeFallbackHook, type RuntimeFallba
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
export { createBeastModeSystemHook, BEAST_MODE_SYSTEM_PROMPT } from "./beast-mode-system";
export { createHashlineEditDiffEnhancerHook } from "./hashline-edit-diff-enhancer";
export { createHashlineEditDiffEnhancerHook } from "./hashline-edit-diff-enhancer"
export { createJsonErrorRecoveryHook, JSON_ERROR_TOOL_EXCLUDE_LIST, JSON_ERROR_PATTERNS, JSON_ERROR_REMINDER } from "./json-error-recovery";

View File

@@ -110,9 +110,7 @@ export function createEventHandler(args: {
const lastHandledRetryStatusKey = new Map<string, string>()
const lastKnownModelBySession = new Map<string, { providerID: string; modelID: string }>()
const dispatchToHooks = async (input: { event: { type: string; properties?: Record<string, unknown> } }): Promise<void> => {
const dispatchToHooks = async (input: EventInput): Promise<void> => {
const dispatchToHooks = async (input: EventInput): Promise<void> => {
await Promise.resolve(hooks.autoUpdateChecker?.event?.(input))
await Promise.resolve(hooks.claudeCodeHooks?.event?.(input))
await Promise.resolve(hooks.backgroundNotificationHook?.event?.(input))