( teamName: string, teamFile: TeamFile, )
| 173 | * Writes a team file (async — for tool handlers) |
| 174 | */ |
| 175 | export 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. |
no test coverage detected