Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
440 B · 21 lines
TypeScript
at main
12345678910111213141516171819202122type CommandLifecycleState = 'started' | 'completed'
type CommandLifecycleListener = ( uuid: string, state: CommandLifecycleState,) => void
let listener: CommandLifecycleListener | null = null
export function setCommandLifecycleListener( cb: CommandLifecycleListener | null,): void { listener = cb}
export function notifyCommandLifecycle( uuid: string, state: CommandLifecycleState,): void { listener?.(uuid, state)}