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

Function partsToContentChunks

packages/opencode/src/acp/content.ts:119–121  ·  view source on GitHub ↗
(parts: readonly ReplayPart[])

Source from the content-addressed store, hash-verified

117}
118
119export function partsToContentChunks(parts: readonly ReplayPart[]): ContentChunk[] {
120 return parts.flatMap(partToContentChunks)
121}
122
123export function partToContentChunks(part: ReplayPart): ContentChunk[] {
124 switch (part.type) {

Callers 2

content.test.tsFile · 0.90
replayContentPartMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected