mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
More progress
This commit is contained in:
parent
689e104455
commit
a1fb08a1f8
1 changed files with 12 additions and 3 deletions
|
|
@ -57,9 +57,6 @@ const run = async (toolbox: GluegunToolbox) => {
|
|||
throw new Error(`Exercise is invalid: ${exercise}`)
|
||||
}
|
||||
|
||||
console.log(await execa({ cwd: exercisesPath })`git checkout -f`)
|
||||
console.log(await execa({ cwd: exercisesPath })`git clean -fd`)
|
||||
|
||||
const id = config.runId ? Number(config.runId) : undefined
|
||||
let run: Run
|
||||
|
||||
|
|
@ -96,6 +93,15 @@ const run = async (toolbox: GluegunToolbox) => {
|
|||
throw new Error("No tasks found.")
|
||||
}
|
||||
|
||||
console.log(await execa({ cwd: exercisesPath })`git checkout -f`)
|
||||
console.log(await execa({ cwd: exercisesPath })`git clean -fd`)
|
||||
console.log(await execa({ cwd: exercisesPath })`git checkout -b runs/${run.id} main`)
|
||||
|
||||
fs.writeFileSync(
|
||||
path.resolve(exercisesPath, "settings.json"),
|
||||
JSON.stringify({ ...rooCodeDefaults, ...run.settings }, null, 2),
|
||||
)
|
||||
|
||||
const server = new IpcServer(run.socketPath, () => {})
|
||||
server.listen()
|
||||
|
||||
|
|
@ -146,6 +152,9 @@ const run = async (toolbox: GluegunToolbox) => {
|
|||
if (parentPid) {
|
||||
console.log(await execa`kill -INT ${parentPid}`)
|
||||
}
|
||||
|
||||
console.log(await execa({ cwd: exercisesPath })`git add .`)
|
||||
console.log(await execa({ cwd: exercisesPath })`git commit -m ${`Run #${run.id}`} --no-verify`)
|
||||
}
|
||||
|
||||
const runExercise = async ({ run, task, server }: { run: Run; task: Task; server: IpcServer }) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue