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

Function isLargeOutputs

source code/utils/notebook.ts:24–34  ·  view source on GitHub ↗
(
  outputs: (NotebookCellSourceOutput | undefined)[],
)

Source from the content-addressed store, hash-verified

22const LARGE_OUTPUT_THRESHOLD = 10000
23
24function isLargeOutputs(
25 outputs: (NotebookCellSourceOutput | undefined)[],
26): boolean {
27 let size = 0
28 for (const o of outputs) {
29 if (!o) continue
30 size += (o.text?.length ?? 0) + (o.image?.image_data.length ?? 0)
31 if (size > LARGE_OUTPUT_THRESHOLD) return true
32 }
33 return false
34}
35
36function processOutputText(text: string | string[] | undefined): string {
37 if (!text) return ''

Callers 1

processCellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected