mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 17:27:02 +00:00
add autoupdate: notify
This commit is contained in:
@@ -10,6 +10,9 @@ export async function upgrade() {
|
||||
if (Installation.VERSION === latest) return
|
||||
|
||||
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) {
|
||||
return
|
||||
}
|
||||
if (config.autoupdate === "notify") {
|
||||
await Bus.publish(Installation.Event.UpdateAvailable, { version: latest })
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user