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

Function isLocalAgent

src/state/teammateViewHelpers.ts:14–21  ·  view source on GitHub ↗
(task: unknown)

Source from the content-addressed store, hash-verified

12// teammateViewHelpers → LocalAgentTask runtime edge that creates a cycle
13// through BackgroundTasksDialog.
14function isLocalAgent(task: unknown): task is LocalAgentTaskState {
15 return (
16 typeof task === 'object' &&
17 task !== null &&
18 'type' in task &&
19 task.type === 'local_agent'
20 )
21}
22
23/**
24 * Return the task released back to stub form: retain dropped, messages

Callers 3

enterTeammateViewFunction · 0.85
exitTeammateViewFunction · 0.85
stopOrDismissAgentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected