MCPcopy
hub / github.com/anomalyco/opencode / resolve

Function resolve

packages/core/src/shell.ts:89–96  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

87}
88
89function resolve(file: string) {
90 const shell = full(file)
91 if (rooted(shell)) {
92 if (stat(shell)?.isFile()) return shell
93 return
94 }
95 return which(shell) ?? undefined
96}
97
98function win() {
99 return Array.from(

Callers 15

filesystem.tsFile · 0.70
pullFunction · 0.70
killTreeFunction · 0.70
selectFunction · 0.70
infoFunction · 0.70
listFunction · 0.70
bundleInputsFunction · 0.50
html.test.tsFile · 0.50
registerIpcHandlersFunction · 0.50
registerRendererProtocolFunction · 0.50
onMessageFunction · 0.50

Calls 4

whichFunction · 0.90
rootedFunction · 0.85
fullFunction · 0.70
statFunction · 0.70

Tested by 5

bundleInputsFunction · 0.40
runFunction · 0.40
stopWorkerFunction · 0.40
runFunction · 0.40
stopWorkerFunction · 0.40