()
| 128 | } |
| 129 | |
| 130 | async function install() { |
| 131 | console.log(" Regenerating bun.lock...") |
| 132 | |
| 133 | try { |
| 134 | await fs.rm("bun.lock", { force: true }) |
| 135 | await $`bun install` |
| 136 | await $`git add bun.lock` |
| 137 | return true |
| 138 | } catch (err) { |
| 139 | console.log(`Install failed: ${err}`) |
| 140 | return false |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | async function fix(pr: PR, files: string[], prs: PR[], applied: number[], idx: number) { |
| 145 | console.log(` Trying to auto-resolve ${files.length} conflict(s) with opencode...`) |