(row: ConnectionRow)
| 1128 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 1129 | * isn't an object. */ |
| 1130 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 1131 | const decoded = decodeJsonColumn(row.item_ids); |
| 1132 | if (decoded == null || typeof decoded !== "object") return {}; |
| 1133 | return decoded as Record<string, string>; |
| 1134 | }; |
| 1135 | |
| 1136 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 1137 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected