()
| 26 | }); |
| 27 | |
| 28 | function isolateDb(): void { |
| 29 | const dir = mkdtempSync(join(tmpdir(), "tool-registry-")); |
| 30 | tempDirs.push(dir); |
| 31 | process.env.XDG_DATA_HOME = dir; |
| 32 | } |
| 33 | |
| 34 | // createToolRegistry only reads ctx.directory; the rest of PluginContext is |
| 35 | // unused, so a minimal stub is sufficient. |