MCPcopy Create free account
hub / github.com/anomalyco/opencode / generation

Function generation

packages/app/src/context/server-session.ts:171–177  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

169 const pinned = new Map<string, number>()
170 const generations = new Map<string, object>()
171 const generation = (sessionID: string) => {
172 const current = generations.get(sessionID)
173 if (current) return current
174 const created = {}
175 generations.set(sessionID, created)
176 return created
177 }
178 const [meta, setMeta] = createStore({
179 limit: {} as Record<string, number | undefined>,
180 cursor: {} as Record<string, string | undefined>,

Callers 4

resolveFunction · 0.70
loadMessagesFunction · 0.70
diffFunction · 0.70
todoFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected