MCPcopy Create free account
hub / github.com/arctic-cli/interface / resolveWasm

Function resolveWasm

packages/arctic/src/tool/bash.ts:25–30  ·  view source on GitHub ↗
(asset: string)

Source from the content-addressed store, hash-verified

23export const log = Log.create({ service: "bash-tool" })
24
25const 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
32const parser = lazy(async () => {
33 const { Parser } = await import("web-tree-sitter")

Callers 1

bash.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected