diff --git a/src/plugin/event.ts b/src/plugin/event.ts index 248f207a..110c3b97 100644 --- a/src/plugin/event.ts +++ b/src/plugin/event.ts @@ -130,7 +130,6 @@ export function createEventHandler(args: { await Promise.resolve(hooks.ralphLoop?.event?.(input)) await Promise.resolve(hooks.stopContinuationGuard?.event?.(input)) await Promise.resolve(hooks.compactionTodoPreserver?.event?.(input)) - await Promise.resolve(hooks.writeExistingFileGuard?.event?.(input)) await Promise.resolve(hooks.atlasHook?.handler?.(input)) } diff --git a/src/plugin/hooks/create-session-hooks.ts b/src/plugin/hooks/create-session-hooks.ts index 0ae0bca1..6057bf65 100644 --- a/src/plugin/hooks/create-session-hooks.ts +++ b/src/plugin/hooks/create-session-hooks.ts @@ -15,7 +15,6 @@ import { createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, - createJsonErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, @@ -51,7 +50,6 @@ export type SessionHooks = { interactiveBashSession: ReturnType | null ralphLoop: ReturnType | null editErrorRecovery: ReturnType | null - jsonErrorRecovery: ReturnType | null delegateTaskRetry: ReturnType | null startWork: ReturnType | null prometheusMdOnly: ReturnType | null @@ -212,10 +210,6 @@ export function createSessionHooks(args: { ? safeHook("edit-error-recovery", () => createEditErrorRecoveryHook(ctx)) : null - const jsonErrorRecovery = isHookEnabled("json-error-recovery") - ? safeHook("json-error-recovery", () => createJsonErrorRecoveryHook(ctx)) - : null - const delegateTaskRetry = isHookEnabled("delegate-task-retry") ? safeHook("delegate-task-retry", () => createDelegateTaskRetryHook(ctx)) : null @@ -268,7 +262,6 @@ export function createSessionHooks(args: { interactiveBashSession, ralphLoop, editErrorRecovery, - jsonErrorRecovery, delegateTaskRetry, startWork, prometheusMdOnly, diff --git a/src/plugin/hooks/create-tool-guard-hooks.ts b/src/plugin/hooks/create-tool-guard-hooks.ts index 521e3675..3cc4d517 100644 --- a/src/plugin/hooks/create-tool-guard-hooks.ts +++ b/src/plugin/hooks/create-tool-guard-hooks.ts @@ -12,7 +12,6 @@ import { createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, - createHashlineEditDiffEnhancerHook, } from "../../hooks" import { getOpenCodeVersion, @@ -32,7 +31,6 @@ export type ToolGuardHooks = { tasksTodowriteDisabler: ReturnType | null writeExistingFileGuard: ReturnType | null hashlineReadEnhancer: ReturnType | null - hashlineEditDiffEnhancer: ReturnType | null } export function createToolGuardHooks(args: { @@ -101,10 +99,6 @@ export function createToolGuardHooks(args: { ? safeHook("hashline-read-enhancer", () => createHashlineReadEnhancerHook(ctx, { hashline_edit: { enabled: pluginConfig.hashline_edit ?? true } })) : null - const hashlineEditDiffEnhancer = isHookEnabled("hashline-edit-diff-enhancer") - ? safeHook("hashline-edit-diff-enhancer", () => createHashlineEditDiffEnhancerHook({ hashline_edit: { enabled: pluginConfig.hashline_edit ?? true } })) - : null - return { commentChecker, toolOutputTruncator, @@ -115,6 +109,5 @@ export function createToolGuardHooks(args: { tasksTodowriteDisabler, writeExistingFileGuard, hashlineReadEnhancer, - hashlineEditDiffEnhancer, } } diff --git a/src/plugin/tool-execute-after.ts b/src/plugin/tool-execute-after.ts index a6b6fae2..31f20f59 100644 --- a/src/plugin/tool-execute-after.ts +++ b/src/plugin/tool-execute-after.ts @@ -40,11 +40,9 @@ export function createToolExecuteAfterHandler(args: { await hooks.categorySkillReminder?.["tool.execute.after"]?.(input, output) await hooks.interactiveBashSession?.["tool.execute.after"]?.(input, output) await hooks.editErrorRecovery?.["tool.execute.after"]?.(input, output) - await hooks.jsonErrorRecovery?.["tool.execute.after"]?.(input, output) await hooks.delegateTaskRetry?.["tool.execute.after"]?.(input, output) await hooks.atlasHook?.["tool.execute.after"]?.(input, output) await hooks.taskResumeInfo?.["tool.execute.after"]?.(input, output) await hooks.hashlineReadEnhancer?.["tool.execute.after"]?.(input, output) - await hooks.hashlineEditDiffEnhancer?.["tool.execute.after"]?.(input, output) } } diff --git a/src/plugin/tool-execute-before.ts b/src/plugin/tool-execute-before.ts index d9a06c70..09ae1681 100644 --- a/src/plugin/tool-execute-before.ts +++ b/src/plugin/tool-execute-before.ts @@ -29,7 +29,6 @@ export function createToolExecuteBeforeHandler(args: { await hooks.prometheusMdOnly?.["tool.execute.before"]?.(input, output) await hooks.sisyphusJuniorNotepad?.["tool.execute.before"]?.(input, output) await hooks.atlasHook?.["tool.execute.before"]?.(input, output) - await hooks.hashlineEditDiffEnhancer?.["tool.execute.before"]?.(input, output) if (input.tool === "task") { const argsObject = output.args const category = typeof argsObject.category === "string" ? argsObject.category : undefined