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

Function filepart

packages/opencode/src/cli/cmd/export.ts:60–67  ·  view source on GitHub ↗
(part: SessionV1.FilePart)

Source from the content-addressed store, hash-verified

58}
59
60function filepart(part: SessionV1.FilePart): SessionV1.FilePart {
61 return {
62 ...part,
63 url: redact("file-url", part.id, part.url),
64 filename: part.filename === undefined ? undefined : redact("file-name", part.id, part.filename),
65 source: source(part),
66 }
67}
68
69function part(part: SessionV1.Part): SessionV1.Part {
70 switch (part.type) {

Callers 1

partFunction · 0.85

Calls 2

redactFunction · 0.85
sourceFunction · 0.70

Tested by

no test coverage detected