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

Function getTeamName

src/utils/teammate.ts:111–118  ·  view source on GitHub ↗
(teamContext?: {
  teamName: string
})

Source from the content-addressed store, hash-verified

109 * @param teamContext - Optional team context from AppState (for leaders)
110 */
111export 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.

Callers 15

callFunction · 0.85
callFunction · 0.85
handleMessageFunction · 0.85
handleBroadcastFunction · 0.85
handleShutdownRequestFunction · 0.85
handleShutdownApprovalFunction · 0.85
handleShutdownRejectionFunction · 0.85
callFunction · 0.85
WorkerPendingPermissionFunction · 0.85
useSwarmBannerFunction · 0.85
getTeamContextAttachmentFunction · 0.85

Calls 1

getTeammateContextFunction · 0.85

Tested by

no test coverage detected