MCPcopy
hub / github.com/claude-code-best/claude-code / writeTeamFileAsync

Function writeTeamFileAsync

src/utils/swarm/teamHelpers.ts:175–182  ·  view source on GitHub ↗
(
  teamName: string,
  teamFile: TeamFile,
)

Source from the content-addressed store, hash-verified

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

Callers 4

appendTeamMemberFunction · 0.85
callFunction · 0.85
setMemberActiveFunction · 0.85
initializeAssistantTeamFunction · 0.85

Calls 4

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

Tested by

no test coverage detected