MCPcopy Create free account
hub / github.com/echoVic/blade-code / generateSessionId

Method generateSessionId

src/context/ContextManager.ts:389–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 // 私有方法
388
389 private generateSessionId(): string {
390 return `session_${Date.now()}_${crypto.randomBytes(4).toString('hex')}`;
391 }
392
393 private generateMessageId(): string {
394 return `msg_${Date.now()}_${crypto.randomBytes(3).toString('hex')}`;

Callers 1

createSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected