(row: ConnectionRow)
| 903 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 904 | * isn't an object. */ |
| 905 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 906 | const decoded = decodeJsonColumn(row.item_ids); |
| 907 | if (decoded == null || typeof decoded !== "object") return {}; |
| 908 | return decoded as Record<string, string>; |
| 909 | }; |
| 910 | |
| 911 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 912 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected