fix: miscellaneous small fixes (#18328)

This commit is contained in:
Dax
2026-03-19 22:20:29 -04:00
committed by GitHub
parent b3d0446d13
commit 1071aca91f
4 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ export namespace ToolRegistry {
if (matches.length) await Config.waitForDependencies()
for (const match of matches) {
const namespace = path.basename(match, path.extname(match))
const mod = await import(pathToFileURL(match).href)
const mod = await import(process.platform === "win32" ? match : pathToFileURL(match).href)
for (const [id, def] of Object.entries<ToolDefinition>(mod)) {
custom.push(fromPlugin(id === "default" ? namespace : `${namespace}_${id}`, def))
}