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

Function attached

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

Source from the content-addressed store, hash-verified

1import type { FilePart } from "@opencode-ai/sdk/v2"
2
3export function attached(part: FilePart) {
4 return part.url.startsWith("data:")
5}
6
7export function inline(part: FilePart) {
8 if (attached(part)) return false

Callers 2

inlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected