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

Function remove

packages/opencode/src/cli/cmd/run/session-data.ts:273–281  ·  view source on GitHub ↗
(list: Array<{ id: string }>, id: string)

Source from the content-addressed store, hash-verified

271}
272
273function remove(list: Array<{ id: string }>, id: string): boolean {
274 const idx = list.findIndex((entry) => entry.id === id)
275 if (idx === -1) {
276 return false
277 }
278
279 list.splice(idx, 1)
280 return true
281}
282
283export function bootstrapSessionData(input: {
284 data: SessionData

Callers 1

reduceSessionDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected