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

Function writeTeamFile

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

Source from the content-addressed store, hash-verified

164 */
165// sync IO: called from sync context
166function writeTeamFile(teamName: string, teamFile: TeamFile): void {
167 const teamDir = getTeamDir(teamName)
168 mkdirSync(teamDir, { recursive: true })
169 writeFileSync(getTeamFilePath(teamName), jsonStringify(teamFile, null, 2))
170}
171
172/**
173 * Writes a team file (asyncfor tool handlers)

Callers 7

addHiddenPaneIdFunction · 0.85
removeHiddenPaneIdFunction · 0.85
removeMemberFromTeamFunction · 0.85
removeMemberByAgentIdFunction · 0.85
setMemberModeFunction · 0.85
setMultipleMemberModesFunction · 0.85

Calls 4

mkdirSyncFunction · 0.90
getTeamDirFunction · 0.85
getTeamFilePathFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected