()
| 67 | |
| 68 | /** Name lookup used by lazy non-Code-Mode tools/call dispatch. */ |
| 69 | export async function getNonCodemodeToolMap(): Promise<Map<string, NonCodemodeTool>> { |
| 70 | const tools = await getNonCodemodeTools() |
| 71 | if (nonCodemodeToolMap && nonCodemodeToolMapSource === tools) return nonCodemodeToolMap |
| 72 | |
| 73 | nonCodemodeToolMap = new Map(tools.map((tool) => [tool.name, tool])) |
| 74 | nonCodemodeToolMapSource = tools |
| 75 | return nonCodemodeToolMap |
| 76 | } |
| 77 | |
| 78 | /** The product list backing the `search` tool description. Empty if unseeded. */ |
| 79 | export async function getProducts(): Promise<string[]> { |
no test coverage detected