mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 18:30:22 +00:00
Agents: reuse shared subagent hook runner type
This commit is contained in:
@@ -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"
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user