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

Function findInProcessTeammateTaskId

src/utils/inProcessTeammateHelpers.ts:33–46  ·  view source on GitHub ↗
(
  agentName: string,
  appState: AppState,
)

Source from the content-addressed store, hash-verified

31 * @returns Task ID if found, undefined otherwise
32 */
33export function findInProcessTeammateTaskId(
34 agentName: string,
35 appState: AppState,
36): string | undefined {
37 for (const task of Object.values(appState.tasks)) {
38 if (
39 isInProcessTeammateTask(task) &&
40 task.identity.agentName === agentName
41 ) {
42 return task.id
43 }
44 }
45 return undefined
46}
47
48/**
49 * Set awaitingPlanApproval state for an in-process teammate.

Callers 2

callFunction · 0.85
useInboxPollerFunction · 0.85

Calls 2

isInProcessTeammateTaskFunction · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected