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

Function isCompactBoundaryMessage

src/utils/messages.ts:4708–4712  ·  view source on GitHub ↗
(
  message: Message | NormalizedMessage,
)

Source from the content-addressed store, hash-verified

4706 * Checks if a message is a compact boundary marker
4707 */
4708export function isCompactBoundaryMessage(
4709 message: Message | NormalizedMessage,
4710): message is SystemCompactBoundaryMessage {
4711 return message?.type === 'system' && message.subtype === 'compact_boundary'
4712}
4713
4714/**
4715 * Finds the index of the last compact boundary marker in the messages array

Callers 7

insertMessageChainMethod · 0.70
persistToRemoteMethod · 0.70
loadTranscriptFileFunction · 0.70
_temp3Function · 0.50
processSlashCommandFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected