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

Function getAgentTranscriptPath

src/utils/sessionStorage.ts:247–258  ·  view source on GitHub ↗
(agentId: AgentId)

Source from the content-addressed store, hash-verified

245}
246
247export function getAgentTranscriptPath(agentId: AgentId): string {
248 // Same sessionProjectDir consistency as getTranscriptPathForSession —
249 // subagent transcripts live under the session dir, so if the session
250 // transcript is at sessionProjectDir, subagent transcripts are too.
251 const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd())
252 const sessionId = getSessionId()
253 const subdir = agentTranscriptSubdirs.get(agentId)
254 const base = subdir
255 ? join(projectDir, sessionId, 'subagents', subdir)
256 : join(projectDir, sessionId, 'subagents')
257 return join(base, `agent-${agentId}.jsonl`)
258}
259
260function getAgentMetadataPath(agentId: AgentId): string {
261 return getAgentTranscriptPath(agentId).replace(/\.jsonl$/, '.meta.json')

Callers 10

getAgentMetadataPathFunction · 0.85
appendEntryMethod · 0.85
getAgentTranscriptFunction · 0.85
executeStopHooksFunction · 0.85
execAgentHookFunction · 0.85
clearConversationFunction · 0.85
registerMainSessionTaskFunction · 0.85
registerAsyncAgentFunction · 0.85
registerAgentForegroundFunction · 0.85

Calls 5

getSessionProjectDirFunction · 0.85
getOriginalCwdFunction · 0.85
getSessionIdFunction · 0.85
getProjectDirFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected