MCPcopy Index your code
hub / github.com/codeaashu/claude-code / syncTeammateMode

Function syncTeammateMode

src/utils/swarm/teamHelpers.ts:397–407  ·  view source on GitHub ↗
(
  mode: PermissionMode,
  teamNameOverride?: string,
)

Source from the content-addressed store, hash-verified

395 * @param teamNameOverride - Optional team name override (uses env var if not provided)
396 */
397export function syncTeammateMode(
398 mode: PermissionMode,
399 teamNameOverride?: string,
400): void {
401 if (!isTeammate()) return
402 const teamName = teamNameOverride ?? getTeamName()
403 const agentName = getAgentName()
404 if (teamName && agentName) {
405 setMemberMode(teamName, agentName, mode)
406 }
407}
408
409/**
410 * Sets multiple team members' permission modes in a single atomic operation.

Callers 1

PromptInputFunction · 0.85

Calls 4

isTeammateFunction · 0.85
getTeamNameFunction · 0.85
getAgentNameFunction · 0.85
setMemberModeFunction · 0.85

Tested by

no test coverage detected