Agents: reuse shared subagent hook runner type

This commit is contained in:
Gustavo Madeira Santana
2026-03-29 20:04:55 -04:00
parent 6e1f00dc86
commit cc04153d01
4 changed files with 9 additions and 10 deletions

View File

@@ -1080,3 +1080,8 @@ export function createHookRunner(registry: PluginRegistry, options: HookRunnerOp
}
export type HookRunner = ReturnType<typeof createHookRunner>;
export type SubagentLifecycleHookRunner = Pick<
HookRunner,
"hasHooks" | "runSubagentSpawning" | "runSubagentSpawned" | "runSubagentEnded"
>;