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

Function generateId

packages/sync/src/data-source-manager.ts:18–20  ·  view source on GitHub ↗
(prefix: string = 'ds')

Source from the content-addressed store, hash-verified

16const CONFIG_FILE = 'data-sources.json'
17
18function generateId(prefix: string = 'ds'): string {
19 return `${prefix}_${crypto.randomBytes(6).toString('hex')}`
20}
21
22export function normalizeBaseUrl(input: string): string {
23 let url = input.trim().replace(/\/+$/, '')

Callers 2

addMethod · 0.70
addSessionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected