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

Function inline

packages/session-ui/src/components/message-file.ts:7–10  ·  view source on GitHub ↗
(part: FilePart)

Source from the content-addressed store, hash-verified

5}
6
7export function inline(part: FilePart) {
8 if (attached(part)) return false
9 return part.source?.text?.start !== undefined && part.source?.text?.end !== undefined
10}
11
12export function kind(part: FilePart) {
13 return part.mime.startsWith("image/") ? "image" : "file"

Callers 1

Calls 1

attachedFunction · 0.85

Tested by

no test coverage detected