(record: {
id: string
name: string
path: string
url?: string
size: number
type: string
key: string
})
| 77 | } |
| 78 | |
| 79 | function 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 | |
| 99 | async function resolveCopilotFileReference( |
| 100 | value: unknown, |
no outgoing calls
no test coverage detected