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

Function aggregate

packages/app/src/context/comments.tsx:44–49  ·  view source on GitHub ↗
(comments: Record<string, LineComment[]>)

Source from the content-addressed store, hash-verified

42}
43
44function aggregate(comments: Record<string, LineComment[]>) {
45 return Object.keys(comments)
46 .flatMap((file) => comments[file] ?? [])
47 .slice()
48 .sort((a, b) => a.time - b.time)
49}
50
51function cloneSelection(selection: SelectedLineRange): SelectedLineRange {
52 const next: SelectedLineRange = {

Callers 1

allFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected