MCPcopy
hub / github.com/simstudioai/sim / isReadableType

Function isReadableType

apps/sim/lib/copilot/vfs/file-reader.ts:56–58  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

54const PARSEABLE_EXTENSIONS = new Set(['pdf', 'docx', 'doc', 'xlsx', 'xls', 'pptx', 'ppt'])
55
56function isReadableType(contentType: string): boolean {
57 return TEXT_TYPES.has(contentType) || contentType.startsWith('text/')
58}
59
60function getExtension(filename: string): string {
61 const dot = filename.lastIndexOf('.')

Callers 1

readFileRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected