/
GreyCat
/
better-clawd
Обзор
Документация
Войти
/
GreyCat
/
better-clawd
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/utils/commandLifecycle.ts
21 строка
440 B
x1xhlol
initial commit
01 апр 2026, 15:19
01 апр 2026, 15:19
420d415
Код
Авторство
О чём код?
type 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) }