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

Function entryGroupKey

packages/opencode/src/cli/cmd/run/scrollback.writer.tsx:30–40  ·  view source on GitHub ↗
(commit: StreamCommit)

Source from the content-addressed store, hash-verified

28}
29
30export function entryGroupKey(commit: StreamCommit): string | undefined {
31 if (!commit.partID) {
32 return undefined
33 }
34
35 if (toolStructuredFinal(commit)) {
36 return `tool:${commit.partID}:final`
37 }
38
39 return `${commit.kind}:${commit.partID}`
40}
41
42export function sameEntryGroup(left: StreamCommit | undefined, right: StreamCommit): boolean {
43 if (!left) {

Callers 1

sameEntryGroupFunction · 0.85

Calls 1

toolStructuredFinalFunction · 0.90

Tested by

no test coverage detected