open-swe/packages/shared/src/git.ts
Brace Sproul b25a29f126
refactor: Move tool schemas to shared (#170)
* refactor: Move tool schemas to shared

* cr
2025-06-13 17:07:38 -07:00

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}`;
}