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