Files
oh-my-opencode/dist/cli/run/opencode-binary-resolver.d.ts
T
2026-03-14 04:56:50 +00:00

6 lines
763 B
TypeScript

export declare function collectCandidateBinaryPaths(pathEnv: string | undefined, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): string[];
export declare function canExecuteBinary(binaryPath: string): Promise<boolean>;
export declare function findWorkingOpencodeBinary(pathEnv?: string | undefined, probe?: (binaryPath: string) => Promise<boolean>, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): Promise<string | null>;
export declare function buildPathWithBinaryFirst(pathEnv: string | undefined, binaryPath: string): string;
export declare function withWorkingOpencodePath<T>(startServer: () => Promise<T>, finder?: (pathEnv: string | undefined) => Promise<string | null>): Promise<T>;