MCPcopy Create free account
hub / github.com/Noumena-Network/code / removeExtraFields

Function removeExtraFields

src/utils/sessionStorage.ts:1972–1979  ·  view source on GitHub ↗
(
  transcript: TranscriptMessage[],
)

Source from the content-addressed store, hash-verified

1970}
1971
1972export function removeExtraFields(
1973 transcript: TranscriptMessage[],
1974): SerializedMessage[] {
1975 return transcript.map(m => {
1976 const { isSidechain, parentUuid, ...serializedMessage } = m
1977 return serializedMessage
1978 })
1979}
1980
1981/**
1982 * Splice the preserved segment back into the chain after compaction.

Callers 4

convertToLogOptionFunction · 0.85
loadFullLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected