MCPcopy Index your code
hub / github.com/simstudioai/sim / getFilesFromWorkflowInput

Function getFilesFromWorkflowInput

apps/sim/executor/utils/start-block.ts:377–391  ·  view source on GitHub ↗
(workflowInput: unknown)

Source from the content-addressed store, hash-verified

375}
376
377function getFilesFromWorkflowInput(workflowInput: unknown): UserFile[] | undefined {
378 if (!isRecordLike(workflowInput)) {
379 return undefined
380 }
381 const files = workflowInput.files
382 if (!Array.isArray(files)) {
383 return undefined
384 }
385
386 const normalizedFiles = files.map(normalizeStartFile)
387 if (normalizedFiles.every((file): file is UserFile => Boolean(file))) {
388 return normalizedFiles
389 }
390 return undefined
391}
392
393function mergeFilesIntoOutput(
394 output: NormalizedBlockOutput,

Callers 1

mergeFilesIntoOutputFunction · 0.85

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected