MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get

Function get

packages/opencode-atomic-hooks/src/session.ts:180–187  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

178 const sessions = new Map<string, SessionState>()
179
180 function get(id: string): SessionState {
181 const existing = sessions.get(id)
182 if (existing) return existing
183
184 const state = createSessionState()
185 sessions.set(id, state)
186 return state
187 }
188
189 function has(id: string): boolean {
190 return sessions.has(id)

Callers 4

incrementTurnFunction · 0.85
setModelFunction · 0.85
setPromptFunction · 0.85
startToolFunction · 0.85

Calls 3

createSessionStateFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected