(root, { query, symbols })
| 93 | } |
| 94 | |
| 95 | async function runCase(root, { query, symbols }) { |
| 96 | const cg = CodeGraph.openSync(root); |
| 97 | try { |
| 98 | const res = await new ToolHandler(cg).execute('codegraph_explore', { query }); |
| 99 | const response = res.content?.[0]?.text ?? ''; |
| 100 | return { response, results: check(cg, response, symbols) }; |
| 101 | } finally { |
| 102 | try { cg.close?.(); } catch { /* already closed */ } |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | const argv = process.argv.slice(2); |
| 107 | const verbose = argv.includes('--verbose'); |
no test coverage detected