(row: ConnectionRow)
| 604 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 605 | * isn't an object. */ |
| 606 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 607 | const decoded = decodeJsonColumn(row.item_ids); |
| 608 | if (decoded == null || typeof decoded !== "object") return {}; |
| 609 | return decoded as Record<string, string>; |
| 610 | }; |
| 611 | |
| 612 | // Accepts a projected row (the invoke/list paths select away the heavy |
| 613 | // schema columns); `Tool.inputSchema`/`outputSchema` are optional and stay |
no test coverage detected