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

Function target

packages/opencode/src/cli/cmd/tui.ts:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52async function target() {
53 if (typeof OPENCODE_WORKER_PATH !== "undefined") return OPENCODE_WORKER_PATH
54 const dist = new URL("./cli/tui/worker.js", import.meta.url)
55 if (await Filesystem.exists(fileURLToPath(dist))) return dist
56 return new URL("../tui/worker.ts", import.meta.url)
57}
58
59async function input(value?: string) {
60 const piped = process.stdin.isTTY ? undefined : await Bun.stdin.text()

Callers 3

tui.tsFile · 0.70
useSpringFunction · 0.50
AnimatedNumberFunction · 0.50

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected