MCPcopy
hub / github.com/Kilo-Org/kilocode / resolve

Function resolve

packages/opencode/src/shell/shell.ts:83–90  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

81}
82
83function resolve(file: string) {
84 const shell = full(file)
85 if (rooted(shell)) {
86 if (Filesystem.stat(shell)?.isFile()) return shell
87 return
88 }
89 return which(shell) ?? undefined
90}
91
92function win() {
93 return Array.from(

Callers 15

killTreeFunction · 0.70
selectFunction · 0.70
infoFunction · 0.70
listFunction · 0.70
finishFunction · 0.50
inputFunction · 0.50
shutdownFunction · 0.50
generate.tsFile · 0.50
writeFunction · 0.50
acp.tsFile · 0.50
shutdownFunction · 0.50
runCleanupFunction · 0.50

Calls 3

whichFunction · 0.90
rootedFunction · 0.85
fullFunction · 0.70

Tested by

no test coverage detected