mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-24 05:43:51 +00:00
15 lines
477 B
TypeScript
15 lines
477 B
TypeScript
import * as path from "path"
|
|
|
|
import { CheckpointServiceOptions } from "./types"
|
|
import { ShadowCheckpointService } from "./ShadowCheckpointService"
|
|
|
|
export class RepoPerTaskCheckpointService extends ShadowCheckpointService {
|
|
public static create({ taskId, workspaceDir, shadowDir, log = console.log }: CheckpointServiceOptions) {
|
|
return new RepoPerTaskCheckpointService(
|
|
taskId,
|
|
path.join(shadowDir, "tasks", taskId, "checkpoints"),
|
|
workspaceDir,
|
|
log,
|
|
)
|
|
}
|
|
}
|