MCPcopy
hub / github.com/7836246/cursor2api / msgId

Function msgId

src/handler.ts:26–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24import { createIncrementalTextStreamer, hasLeadingThinking, splitLeadingThinkingBlocks, stripThinkingTags } from './streaming-text.js';
25
26function msgId(): string {
27 return 'msg_' + uuidv4().replace(/-/g, '').substring(0, 24);
28}
29
30function toolId(): string {
31 return 'toolu_' + uuidv4().replace(/-/g, '').substring(0, 24);

Callers 4

handleMockIdentityStreamFunction · 0.85
handleStreamFunction · 0.85
handleNonStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected