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

Function toUserFileFromWorkspaceRecord

apps/sim/tools/index.ts:79–97  ·  view source on GitHub ↗
(record: {
  id: string
  name: string
  path: string
  url?: string
  size: number
  type: string
  key: string
})

Source from the content-addressed store, hash-verified

77}
78
79function toUserFileFromWorkspaceRecord(record: {
80 id: string
81 name: string
82 path: string
83 url?: string
84 size: number
85 type: string
86 key: string
87}): UserFile {
88 return {
89 id: record.id,
90 name: record.name,
91 url: record.url ?? record.path,
92 size: record.size,
93 type: record.type,
94 key: record.key,
95 context: 'workspace',
96 }
97}
98
99async function resolveCopilotFileReference(
100 value: unknown,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected