MCPcopy Create free account
hub / github.com/Noumena-Network/code / loadRawTranscriptJsonl

Function loadRawTranscriptJsonl

src/components/Feedback.tsx:138–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

FeedbackFunction · 0.85

Calls 4

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

Tested by

no test coverage detected