MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / uuidv4

Function uuidv4

frontend/src/store/chatStore.ts:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6// Helper to generate UUID (you might want to install uuid package)
7function uuidv4() {
8 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
9 const r = Math.random() * 16 | 0;
10 const v = c === 'x' ? r : (r & 0x3 | 0x8);
11 return v.toString(16);
12 });
13}
14
15interface ChatState {
16 messages: ChatMessage[];

Callers 1

chatStore.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected