MCPcopy Index your code
hub / github.com/anomalyco/opencode / queueOut

Function queueOut

packages/opencode/src/cli/cmd/run/session-data.ts:259–261  ·  view source on GitHub ↗
(data: SessionData, commits: SessionCommit[])

Source from the content-addressed store, hash-verified

257}
258
259function queueOut(data: SessionData, commits: SessionCommit[]): SessionDataOutput {
260 return out(data, commits, queueFooter(data))
261}
262
263function upsert<T extends { id: string }>(list: T[], item: T) {
264 const idx = list.findIndex((entry) => entry.id === item.id)

Callers 1

reduceSessionDataFunction · 0.85

Calls 2

queueFooterFunction · 0.85
outFunction · 0.70

Tested by

no test coverage detected