chore: Fix types in tests 36/N.

This commit is contained in:
cpojer
2026-02-17 15:46:48 +09:00
parent 2a4ca7671e
commit 7b31e8fc59
14 changed files with 86 additions and 42 deletions

View File

@@ -16,7 +16,7 @@ import type {
PluginHookBeforeModelResolveResult,
PluginHookBeforePromptBuildEvent,
PluginHookBeforePromptBuildResult,
TypedPluginHookRegistration,
PluginHookRegistration,
} from "./types.js";
function addBeforeModelResolveHook(
@@ -34,7 +34,7 @@ function addBeforeModelResolveHook(
handler,
priority,
source: "test",
} as TypedPluginHookRegistration);
} as PluginHookRegistration);
}
function addBeforePromptBuildHook(
@@ -52,7 +52,7 @@ function addBeforePromptBuildHook(
handler,
priority,
source: "test",
} as TypedPluginHookRegistration);
} as PluginHookRegistration);
}
function addLegacyBeforeAgentStartHook(
@@ -67,7 +67,7 @@ function addLegacyBeforeAgentStartHook(
handler,
priority,
source: "test",
} as TypedPluginHookRegistration);
} as PluginHookRegistration);
}
const stubCtx: PluginHookAgentContext = {