MCPcopy Create free account
hub / github.com/WJX20/claude-code / cleanMessagesForLogging

Function cleanMessagesForLogging

src/utils/sessionStorage.ts:4451–4462  ·  view source on GitHub ↗
(
  messages: Message[],
  allMessages: readonly Message[] = messages,
)

Source from the content-addressed store, hash-verified

4449}
4450
4451export function cleanMessagesForLogging(
4452 messages: Message[],
4453 allMessages: readonly Message[] = messages,
4454): Transcript {
4455 const filtered = messages.filter(isLoggableMessage) as Transcript
4456 return getUserType() !== 'ant'
4457 ? transformMessagesForExternalTranscript(
4458 filtered,
4459 collectReplIds(allMessages),
4460 )
4461 : filtered
4462}
4463
4464/**
4465 * Gets a log by its index

Callers 3

recordTranscriptFunction · 0.85
useLogMessagesFunction · 0.85

Calls 3

getUserTypeFunction · 0.85
collectReplIdsFunction · 0.85

Tested by

no test coverage detected