MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / listTeamNames

Function listTeamNames

src/utils/autonomyStatus.ts:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53async function listTeamNames(): Promise<string[]> {
54 try {
55 const entries = await readdir(getTeamsDir(), { withFileTypes: true })
56 return entries
57 .filter(e => e.isDirectory())
58 .map(e => e.name)
59 .sort()
60 } catch {
61 return []
62 }
63}
64
65async function formatTeamsSection(): Promise<string> {
66 const teamNames = await listTeamNames()

Callers 1

formatTeamsSectionFunction · 0.85

Calls 2

readdirFunction · 0.85
getTeamsDirFunction · 0.85

Tested by

no test coverage detected