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

Function resolveTableRef

apps/sim/lib/copilot/tools/handlers/function-execute.ts:156–167  ·  view source on GitHub ↗
(
  tableRef: string,
  tablePathLookup?: Map<string, Awaited<ReturnType<typeof listTables>>[number]>
)

Source from the content-addressed store, hash-verified

154}
155
156async 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
169export async function resolveInputFiles(
170 workspaceId: string,

Callers 1

resolveInputFilesFunction · 0.85

Calls 3

getTableByIdFunction · 0.90
tableNameFromVfsPathFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected