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

Function mimeFrom

packages/core/src/tool/webfetch.ts:99–99  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

97 )
98
99const mimeFrom = (contentType: string) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? ""
100const isImageAttachment = (mime: string) =>
101 mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet"
102const isTextualMime = (mime: string) =>

Callers 1

webfetch.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected