(row: unknown)
| 1185 | |
| 1186 | /** Read the storage surrogate retained on adapter results but hidden by FumaRow. */ |
| 1187 | const storageRowId = (row: unknown): string | null => { |
| 1188 | const value = row == null ? null : (row as Record<string, unknown>)["row_id"]; |
| 1189 | return typeof value === "string" ? value : null; |
| 1190 | }; |
| 1191 | |
| 1192 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 1193 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |