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