MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / deriveLocalSessionId

Function deriveLocalSessionId

packages/sync/src/pull-engine.ts:39–42  ·  view source on GitHub ↗
(baseUrl: string, remoteSessionId: string)

Source from the content-addressed store, hash-verified

37}
38
39export function deriveLocalSessionId(baseUrl: string, remoteSessionId: string): string {
40 const hash = crypto.createHash('sha256').update(`${baseUrl}\0${remoteSessionId}`).digest('hex').slice(0, 12)
41 return `remote_${hash}`
42}
43
44export function parseSyncFromFile(filePath: string): SyncMeta | null {
45 try {

Callers 2

importTempFileMethod · 0.85
executePullSessionMethod · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected