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

Function getTranscriptPath

src/commands/debug-tool-call/index.ts:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function getTranscriptPath(): string {
34 const sessionId = getSessionId()
35 const projectDir = getSessionProjectDir()
36 if (projectDir) return join(projectDir, `${sessionId}.jsonl`)
37 return join(
38 getClaudeConfigHomeDir(),
39 'projects',
40 sanitizePath(getOriginalCwd()),
41 `${sessionId}.jsonl`,
42 )
43}
44
45function truncate(s: string, maxLen: number): string {
46 return s.length > maxLen ? `${s.slice(0, maxLen)}…` : s

Callers 1

index.tsFile · 0.70

Calls 4

getSessionIdFunction · 0.85
getSessionProjectDirFunction · 0.85
getOriginalCwdFunction · 0.85
sanitizePathFunction · 0.50

Tested by

no test coverage detected