(teamContext?: {
teamName: string
})
| 109 | * @param teamContext - Optional team context from AppState (for leaders) |
| 110 | */ |
| 111 | export function getTeamName(teamContext?: { |
| 112 | teamName: string |
| 113 | }): string | undefined { |
| 114 | const inProcessCtx = getTeammateContext() |
| 115 | if (inProcessCtx) return inProcessCtx.teamName |
| 116 | if (dynamicTeamContext?.teamName) return dynamicTeamContext.teamName |
| 117 | return teamContext?.teamName |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Returns true if this session is running as a teammate in a swarm. |
no test coverage detected