MCPcopy
hub / github.com/codeaashu/claude-code / isLargeOutputs

Function isLargeOutputs

src/utils/notebook.ts:22–32  ·  view source on GitHub ↗
(
  outputs: (NotebookCellSourceOutput | undefined)[],
)

Source from the content-addressed store, hash-verified

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

Callers 1

processCellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected