(asset: string)
| 23 | export const log = Log.create({ service: "bash-tool" }) |
| 24 | |
| 25 | const resolveWasm = (asset: string) => { |
| 26 | if (asset.startsWith("file://")) return fileURLToPath(asset) |
| 27 | if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset |
| 28 | const url = new URL(asset, import.meta.url) |
| 29 | return fileURLToPath(url) |
| 30 | } |
| 31 | |
| 32 | const parser = lazy(async () => { |
| 33 | const { Parser } = await import("web-tree-sitter") |