new initial commit (history rewritten)

This commit is contained in:
kuberwastaken 2026-03-31 16:25:52 +05:30 committed by Oleg Chirukhin
commit c1996f2e3b
1907 changed files with 514172 additions and 0 deletions

21
utils/commandLifecycle.ts Normal file
View file

@ -0,0 +1,21 @@
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)
}