MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getInboxPath

Function getInboxPath

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

Source from the content-addressed store, hash-verified

279 * Structure: ~/.claude/teams/{team_name}/inboxes/{agent_name}.json
280 */
281export function getInboxPath(agentName: string, teamName?: string): string {
282 const team = teamName || getTeamName() || 'default'
283 const safeTeam = sanitizePathComponent(team)
284 const safeAgentName = sanitizePathComponent(agentName)
285 const inboxDir = join(getTeamsDir(), safeTeam, 'inboxes')
286 const fullPath = join(inboxDir, `${safeAgentName}.json`)
287 logForDebugging(
288 `[TeammateMailbox] getInboxPath: agent=${agentName}, team=${team}, fullPath=${fullPath}`,
289 )
290 return fullPath
291}
292
293/**
294 * Ensure the inbox directory exists for a team

Callers 11

readMailboxForMutationFunction · 0.85
readMailboxFunction · 0.85
writeToMailboxFunction · 0.85
markMessageAsReadByIndexFunction · 0.85
markMessagesAsReadFunction · 0.85
clearMailboxFunction · 0.85
seedMailboxFunction · 0.85
readRawMailboxFunction · 0.85

Calls 4

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

Tested by 2

seedMailboxFunction · 0.68
readRawMailboxFunction · 0.68