MCPcopy Index your code
hub / github.com/codeaashu/claude-code / normalizedUpperBound

Function normalizedUpperBound

src/utils/exportRenderer.tsx:37–41  ·  view source on GitHub ↗
(m: Message)

Source from the content-addressed store, hash-verified

35// NormalizedMessages — 1:1 with block count. String content = 1 block.
36// AttachmentMessage etc. have no .message and normalize to ≤1.
37function normalizedUpperBound(m: Message): number {
38 if (!('message' in m)) return 1;
39 const c = m.message.content;
40 return Array.isArray(c) ? c.length : 1;
41}
42
43/**
44 * Streams rendered messages in chunks, ANSI codes preserved. Each chunk is a

Callers 1

streamRenderedMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected