( tableRef: string, tablePathLookup?: Map<string, Awaited<ReturnType<typeof listTables>>[number]> )
| 154 | } |
| 155 | |
| 156 | async function resolveTableRef( |
| 157 | tableRef: string, |
| 158 | tablePathLookup?: Map<string, Awaited<ReturnType<typeof listTables>>[number]> |
| 159 | ) { |
| 160 | if (!tableRef.startsWith('tables/')) { |
| 161 | return getTableById(tableRef) |
| 162 | } |
| 163 | |
| 164 | const tableName = tableNameFromVfsPath(tableRef) |
| 165 | if (!tableName) return null |
| 166 | return tablePathLookup?.get(tableName) ?? null |
| 167 | } |
| 168 | |
| 169 | export async function resolveInputFiles( |
| 170 | workspaceId: string, |
no test coverage detected