(row: ConnectionRow)
| 873 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 874 | * isn't an object. */ |
| 875 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 876 | const decoded = decodeJsonColumn(row.item_ids); |
| 877 | if (decoded == null || typeof decoded !== "object") return {}; |
| 878 | return decoded as Record<string, string>; |
| 879 | }; |
| 880 | |
| 881 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 882 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected