(teamName?: string)
| 579 | * Check if the current agent is a team leader |
| 580 | */ |
| 581 | export 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 |
no test coverage detected