fix(rebase): restore missing hook export and fix duplicate function in event handler
This commit is contained in:
parent
67c2cfddf4
commit
1db26ed114
@ -49,4 +49,5 @@ export { createRuntimeFallbackHook, type RuntimeFallbackHook, type RuntimeFallba
|
|||||||
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
|
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
|
||||||
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
|
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
|
||||||
export { createBeastModeSystemHook, BEAST_MODE_SYSTEM_PROMPT } from "./beast-mode-system";
|
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";
|
||||||
|
|||||||
@ -110,8 +110,6 @@ export function createEventHandler(args: {
|
|||||||
const lastHandledRetryStatusKey = new Map<string, string>()
|
const lastHandledRetryStatusKey = new Map<string, string>()
|
||||||
const lastKnownModelBySession = new Map<string, { providerID: string; modelID: 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.autoUpdateChecker?.event?.(input))
|
||||||
await Promise.resolve(hooks.claudeCodeHooks?.event?.(input))
|
await Promise.resolve(hooks.claudeCodeHooks?.event?.(input))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user