MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isTeamLeader

Function isTeamLeader

src/utils/swarm/permissionSync.ts:581–591  ·  view source on GitHub ↗
(teamName?: string)

Source from the content-addressed store, hash-verified

579 * Check if the current agent is a team leader
580 */
581export function isTeamLeader(teamName?: string): boolean {
582 const team = teamName || getTeamName()
583 if (!team) {
584 return false
585 }
586
587 // Team leaders don't have an agent ID set, or their ID is 'team-lead'
588 const agentId = getAgentId()
589
590 return !agentId || agentId === 'team-lead'
591}
592
593/**
594 * Check if the current agent is a worker in a swarm

Callers 1

isSwarmWorkerFunction · 0.85

Calls 2

getTeamNameFunction · 0.85
getAgentIdFunction · 0.85

Tested by

no test coverage detected