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

Function incrementTurn

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

Source from the content-addressed store, hash-verified

195 }
196
197 function incrementTurn(id: string): number {
198 const session = get(id)
199 session.turnCount++
200 return session.turnCount
201 }
202
203 function setModel(id: string, provider?: string, model?: string): void {
204 const session = get(id)

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected