MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / loadRawTranscriptJsonl

Function loadRawTranscriptJsonl

source code/components/Feedback.tsx:139–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 });
138}
139async function loadRawTranscriptJsonl(): Promise<string | null> {
140 try {
141 const transcriptPath = getTranscriptPath();
142 const {
143 size
144 } = await stat(transcriptPath);
145 if (size > MAX_TRANSCRIPT_READ_BYTES) {
146 logForDebugging(`Skipping raw transcript read: file too large (${size} bytes)`, {
147 level: 'warn'
148 });
149 return null;
150 }
151 return await readFile(transcriptPath, 'utf-8');
152 } catch {
153 return null;
154 }
155}
156export function Feedback({
157 abortSignal,
158 messages,

Callers 1

FeedbackFunction · 0.85

Calls 4

getTranscriptPathFunction · 0.85
statFunction · 0.85
logForDebuggingFunction · 0.85
readFileFunction · 0.85

Tested by

no test coverage detected