MCPcopy
hub / github.com/codeaashu/claude-code / executeTeammateIdleHooks

Function executeTeammateIdleHooks

src/utils/hooks.ts:3709–3729  ·  view source on GitHub ↗
(
  teammateName: string,
  teamName: string,
  permissionMode?: string,
  signal?: AbortSignal,
  timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
)

Source from the content-addressed store, hash-verified

3707 * @returns Async generator that yields progress messages and blocking errors
3708 */
3709export async function* executeTeammateIdleHooks(
3710 teammateName: string,
3711 teamName: string,
3712 permissionMode?: string,
3713 signal?: AbortSignal,
3714 timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
3715): AsyncGenerator<AggregatedHookResult> {
3716 const hookInput: TeammateIdleHookInput = {
3717 ...createBaseHookInput(permissionMode),
3718 hook_event_name: 'TeammateIdle',
3719 teammate_name: teammateName,
3720 team_name: teamName,
3721 }
3722
3723 yield* executeHooks({
3724 hookInput,
3725 toolUseID: randomUUID(),
3726 signal,
3727 timeoutMs,
3728 })
3729}
3730
3731/**
3732 * Execute TaskCreated hooks when a task is being created.

Callers 1

handleStopHooksFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeHooksFunction · 0.85

Tested by

no test coverage detected