fix windows bash tool issue

This commit is contained in:
Aiden Cline 2025-11-18 14:06:45 -06:00
parent 14bd3b1d30
commit e09af2cb4b

View file

@ -22,7 +22,7 @@ export const log = Log.create({ service: "bash-tool" })
const resolveWasm = (asset: string) => {
if (asset.startsWith("file://")) return fileURLToPath(asset)
if (asset.startsWith("/")) return asset
if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset
const url = new URL(asset, import.meta.url)
return fileURLToPath(url)
}