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

Function getCurrentSidecar

packages/desktop/scripts/utils.ts:54–59  ·  view source on GitHub ↗
(target = RUST_TARGET ?? nativeTarget())

Source from the content-addressed store, hash-verified

52}
53
54export function getCurrentSidecar(target = RUST_TARGET ?? nativeTarget()) {
55 const binaryConfig = SIDECAR_BINARIES.find((b) => b.rustTarget === target)
56 if (!binaryConfig) throw new Error(`Sidecar configuration not available for Rust target '${target}'`)
57
58 return binaryConfig
59}
60
61export async function copyBinaryToSidecarFolder(source: string) {
62 const dir = `resources`

Callers

nothing calls this directly

Calls 2

nativeTargetFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected