MCPcopy
hub / github.com/codeaashu/claude-code / deriveUUID

Function deriveUUID

src/utils/messages.ts:725–728  ·  view source on GitHub ↗
(parentUUID: UUID, index: number)

Source from the content-addressed store, hash-verified

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

Callers 2

MessagesImplFunction · 0.85
normalizeMessagesFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected