mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 12:43:16 +00:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
import { SANDBOX_ROOT_DIR } from "./constants.js";
|
|
import { TargetRepository } from "./open-swe/types.js";
|
|
|
|
export function getRepoAbsolutePath(
|
|
targetRepository: TargetRepository,
|
|
): string {
|
|
const repoName = targetRepository.repo;
|
|
if (!repoName) {
|
|
throw new Error("No repository name provided");
|
|
}
|
|
|
|
return `${SANDBOX_ROOT_DIR}/${repoName}`;
|
|
}
|