MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getInboxPath

Function getInboxPath

src/utils/teammateMailbox.ts:56–66  ·  view source on GitHub ↗
(agentName: string, teamName?: string)

Source from the content-addressed store, hash-verified

54 * Structure: ~/.claude/teams/{team_name}/inboxes/{agent_name}.json
55 */
56export function getInboxPath(agentName: string, teamName?: string): string {
57 const team = teamName || getTeamName() || 'default'
58 const safeTeam = sanitizePathComponent(team)
59 const safeAgentName = sanitizePathComponent(agentName)
60 const inboxDir = join(getTeamsDir(), safeTeam, 'inboxes')
61 const fullPath = join(inboxDir, `${safeAgentName}.json`)
62 logForDebugging(
63 `[TeammateMailbox] getInboxPath: agent=${agentName}, team=${team}, fullPath=${fullPath}`,
64 )
65 return fullPath
66}
67
68/**
69 * Ensure the inbox directory exists for a team

Callers 6

readMailboxFunction · 0.85
writeToMailboxFunction · 0.85
markMessageAsReadByIndexFunction · 0.85
markMessagesAsReadFunction · 0.85
clearMailboxFunction · 0.85

Calls 4

getTeamNameFunction · 0.85
sanitizePathComponentFunction · 0.85
getTeamsDirFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected