MCPcopy Index your code
hub / github.com/anomalyco/opencode / resolveWasm

Function resolveWasm

packages/opencode/src/tool/shell.ts:84–89  ·  view source on GitHub ↗
(asset: string)

Source from the content-addressed store, hash-verified

82}
83
84const resolveWasm = (asset: string) => {
85 if (asset.startsWith("file://")) return fileURLToPath(asset)
86 if (asset.startsWith("/") || /^[a-z]:/i.test(asset)) return asset
87 const url = new URL(asset, import.meta.url)
88 return fileURLToPath(url)
89}
90
91function parts(node: Node) {
92 const out: Part[] = []

Callers 1

shell.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected