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