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

Function readTeamFile

source code/utils/swarm/teamHelpers.ts:133–144  ·  view source on GitHub ↗
(teamName: string)

Source from the content-addressed store, hash-verified

131 */
132// sync IO: called from sync context
133export function readTeamFile(teamName: string): TeamFile | null {
134 try {
135 const content = readFileSync(getTeamFilePath(teamName), 'utf-8')
136 return jsonParse(content) as TeamFile
137 } catch (e) {
138 if (getErrnoCode(e) === 'ENOENT') return null
139 logForDebugging(
140 `[TeammateTool] Failed to read team file for ${teamName}: ${errorMessage(e)}`,
141 )
142 return null
143 }
144}
145
146/**
147 * Reads a team file by name (asyncfor tool handlers and other async contexts)

Callers 15

callFunction · 0.85
generateUniqueTeamNameFunction · 0.85
getTeammateStatusesFunction · 0.85
initializeTeammateHooksFunction · 0.85
addHiddenPaneIdFunction · 0.85
removeHiddenPaneIdFunction · 0.85
removeMemberFromTeamFunction · 0.85
removeMemberByAgentIdFunction · 0.85
setMemberModeFunction · 0.85
setMultipleMemberModesFunction · 0.85

Calls 6

readFileSyncFunction · 0.90
getTeamFilePathFunction · 0.85
jsonParseFunction · 0.85
getErrnoCodeFunction · 0.85
logForDebuggingFunction · 0.85
errorMessageFunction · 0.50

Tested by

no test coverage detected