MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveExecutableOverridePath

Function resolveExecutableOverridePath

src/utils/exec.ts:233–247  ·  view source on GitHub ↗
(
  rawPath: string | undefined,
  envName: string,
)

Source from the content-addressed store, hash-verified

231}
232
233export async function resolveExecutableOverridePath(
234 rawPath: string | undefined,
235 envName: string,
236): Promise<string | undefined> {
237 const candidate = normalizeOverridePath(rawPath, envName, 'executable');
238 if (!candidate) return undefined;
239 if (!(await isExecutablePath(candidate))) {
240 throw new AppError(
241 'TOOL_MISSING',
242 `${envName} points to a missing or non-executable file: ${candidate}`,
243 { envName, path: candidate },
244 );
245 }
246 return candidate;
247}
248
249export async function resolveFileOverridePath(
250 rawPath: string | undefined,

Callers 2

ensureMacOsHelperBinaryFunction · 0.90

Calls 2

normalizeOverridePathFunction · 0.85
isExecutablePathFunction · 0.85

Tested by

no test coverage detected