MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / writeTeamFileAsync

Function writeTeamFileAsync

source code/utils/swarm/teamHelpers.ts:177–184  ·  view source on GitHub ↗
(
  teamName: string,
  teamFile: TeamFile,
)

Source from the content-addressed store, hash-verified

175 * Writes a team file (async — for tool handlers)
176 */
177export async function writeTeamFileAsync(
178 teamName: string,
179 teamFile: TeamFile,
180): Promise<void> {
181 const teamDir = getTeamDir(teamName)
182 await mkdir(teamDir, { recursive: true })
183 await writeFile(getTeamFilePath(teamName), jsonStringify(teamFile, null, 2))
184}
185
186/**
187 * Removes a teammate from the team file by agent ID or name.

Callers 5

handleSpawnSplitPaneFunction · 0.85
handleSpawnInProcessFunction · 0.85
callFunction · 0.85
setMemberActiveFunction · 0.85

Calls 4

getTeamDirFunction · 0.85
mkdirFunction · 0.85
getTeamFilePathFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected