MCPcopy
hub / github.com/codeaashu/claude-code / nextGeneration

Function nextGeneration

src/bridge/jwtUtils.ts:96–100  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

94 const generations = new Map<string, number>()
95
96 function nextGeneration(sessionId: string): number {
97 const gen = (generations.get(sessionId) ?? 0) + 1
98 generations.set(sessionId, gen)
99 return gen
100 }
101
102 function schedule(sessionId: string, token: string): void {
103 const expiry = decodeJwtExpiry(token)

Callers 4

scheduleFunction · 0.85
scheduleFromExpiresInFunction · 0.85
cancelFunction · 0.85
cancelAllFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected