MCPcopy Create free account
hub / github.com/Noumena-Network/code / nextGeneration

Function nextGeneration

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

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected