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

Function evictTaskOutput

src/utils/task/diskOutput.ts:288–298  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

286 * Call this when a task completes and its output has been consumed.
287 */
288export function evictTaskOutput(taskId: string): Promise<void> {
289 return track(
290 (async () => {
291 const output = outputs.get(taskId)
292 if (output) {
293 await output.flush()
294 outputs.delete(taskId)
295 }
296 })(),
297 )
298}
299
300/**
301 * Get delta (new content) since last read.

Callers 13

killInProcessTeammateFunction · 0.85
runInProcessTeammateFunction · 0.85
clearConversationFunction · 0.85
completeMainSessionTaskFunction · 0.85
pollFunction · 0.85
killFunction · 0.85
killTaskFunction · 0.85
spawnShellTaskFunction · 0.85
backgroundTaskFunction · 0.85
killAsyncAgentFunction · 0.85
completeAgentTaskFunction · 0.85

Calls 4

trackFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected