MCPcopy Index your code
hub / github.com/Noumena-Network/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 15

killInProcessTeammateFunction · 0.85
runInProcessTeammateFunction · 0.85
clearConversationFunction · 0.85
completeMainSessionTaskFunction · 0.85
finalizeWorkflowTaskFunction · 0.85
killWorkflowTaskFunction · 0.85
pollFunction · 0.85
killFunction · 0.85
killTaskFunction · 0.85
spawnShellTaskFunction · 0.85
backgroundTaskFunction · 0.85

Calls 4

deleteMethod · 0.80
trackFunction · 0.70
getMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected