mirror of
https://gitverse.ru/anarchic/claude-code
synced 2026-05-05 16:02:38 +00:00
new initial commit (history rewritten)
This commit is contained in:
commit
c1996f2e3b
1907 changed files with 514172 additions and 0 deletions
21
utils/commandLifecycle.ts
Normal file
21
utils/commandLifecycle.ts
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue