MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / restampTranscriptEntries

Function restampTranscriptEntries

tools/claw-launcher-ui/server.mjs:516–523  ·  view source on GitHub ↗
(entries, startAt)

Source from the content-addressed store, hash-verified

514}
515
516function restampTranscriptEntries(entries, startAt) {
517 let cursor = Math.max(Number.isFinite(startAt) ? startAt : Date.now(), Date.now())
518
519 return (Array.isArray(entries) ? entries : []).map((entry, index) => ({
520 ...entry,
521 timestamp: new Date(cursor + (index + 1) * 1000).toISOString(),
522 }))
523}
524
525async function buildPromptWithCarryOver(transcript, prompt) {
526 const conversation = listConversationEntries(transcript)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected