feat(hooks): add ultrawork-model-override hook for per-agent model swap

This commit is contained in:
YeonGyu-Kim
2026-02-18 17:33:44 +09:00
parent aad938a21f
commit e863fe2013
9 changed files with 317 additions and 1 deletions

View File

@@ -30,7 +30,11 @@ export function createPluginInterface(args: {
return {
tool: tools,
"chat.params": createChatParamsHandler({ anthropicEffort: hooks.anthropicEffort }),
"chat.params": async (input, output) => {
await hooks.ultraworkModelOverride?.["chat.params"]?.(input, output)
const handler = createChatParamsHandler({ anthropicEffort: hooks.anthropicEffort })
await handler(input, output)
},
"chat.message": createChatMessageHandler({
ctx,