(row: ConnectionRow)
| 851 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 852 | * isn't an object. */ |
| 853 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 854 | const decoded = decodeJsonColumn(row.item_ids); |
| 855 | if (decoded == null || typeof decoded !== "object") return {}; |
| 856 | return decoded as Record<string, string>; |
| 857 | }; |
| 858 | |
| 859 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 860 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected