MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / newSessionId

Function newSessionId

graph-ui/src/app/ui-log-install.ts:127–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127function newSessionId(): string {
128 const cryptoApi = (globalThis as { crypto?: Crypto }).crypto;
129 if (cryptoApi !== undefined && typeof cryptoApi.randomUUID === 'function') {
130 return cryptoApi.randomUUID().slice(0, 8);
131 }
132 return Math.random().toString(16).slice(2, 10);
133}
134
135export function installUiLog(options: InstallUiLogOptions = {}): UiLogHandle {
136 const target = options.target ?? window;

Callers 1

installUiLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected