MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / deriveUUID

Function deriveUUID

source code/utils/messages.ts:727–730  ·  view source on GitHub ↗
(parentUUID: UUID, index: number)

Source from the content-addressed store, hash-verified

725// parent UUID + content block index so that the same input always produces the
726// same key across calls. Used by normalizeMessages and synthetic message creation.
727export function deriveUUID(parentUUID: UUID, index: number): UUID {
728 const hex = index.toString(16).padStart(12, '0')
729 return `${parentUUID.slice(0, 24)}${hex}` as UUID
730}
731
732// Split messages, so each content block gets its own message
733export function normalizeMessages(

Callers 2

MessagesImplFunction · 0.85
normalizeMessagesFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected