(row: ConnectionRow)
| 626 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 627 | * isn't an object. */ |
| 628 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 629 | const decoded = decodeJsonColumn(row.item_ids); |
| 630 | if (decoded == null || typeof decoded !== "object") return {}; |
| 631 | return decoded as Record<string, string>; |
| 632 | }; |
| 633 | |
| 634 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 635 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected