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

Method constructor

source code/utils/task/TaskOutput.ts:60–77  ·  view source on GitHub ↗
(
    taskId: string,
    onProgress: ProgressCallback | null,
    stdoutToFile = false,
    maxMemory: number = DEFAULT_MAX_MEMORY,
  )

Source from the content-addressed store, hash-verified

58 static #pollInterval: ReturnType<typeof setInterval> | null = null
59
60 constructor(
61 taskId: string,
62 onProgress: ProgressCallback | null,
63 stdoutToFile = false,
64 maxMemory: number = DEFAULT_MAX_MEMORY,
65 ) {
66 this.taskId = taskId
67 this.path = getTaskOutputPath(taskId)
68 this.stdoutToFile = stdoutToFile
69 this.#maxMemory = maxMemory
70 this.#onProgress = onProgress
71
72 // Register for polling when stdout goes to a file and progress is needed.
73 // Actual polling is started/stopped by React via startPolling/stopPolling.
74 if (stdoutToFile && onProgress) {
75 TaskOutput.#registry.set(taskId, this)
76 }
77 }
78
79 /**
80 * Begin polling the output file for progress. Called from React

Callers

nothing calls this directly

Calls 2

getTaskOutputPathFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected