MCPcopy Create free account
hub / github.com/anomalyco/opencode / install

Function install

script/beta.ts:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130async 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
144async 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...`)

Callers 1

fixFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected