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

Function partAudience

packages/opencode/src/acp/content.ts:253–257  ·  view source on GitHub ↗
(part: Extract<ReplayPart, { type: "text" }>)

Source from the content-addressed store, hash-verified

251}
252
253function partAudience(part: Extract<ReplayPart, { type: "text" }>) {
254 const audience: Role[] | undefined = part.synthetic ? ["assistant"] : part.ignored ? ["user"] : undefined
255 if (!audience) return {}
256 return { annotations: { audience } }
257}
258
259function filenameFromUri(uri: string | undefined) {
260 if (!uri) return

Callers 1

partToContentChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected