( entries: readonly ToolInventoryEntry[], )
| 144 | } |
| 145 | |
| 146 | export function indexToolInventory( |
| 147 | entries: readonly ToolInventoryEntry[], |
| 148 | ): Map<string, ToolInventoryEntry> { |
| 149 | return new Map(entries.map(entry => [entry.name, entry])) |
| 150 | } |
| 151 | |
| 152 | export function summarizeToolInventory( |
| 153 | entries: readonly ToolInventoryEntry[], |