core: add version export to installation module

pull/6319/head
Dax Raad 2026-01-01 13:31:06 -05:00
parent d0abae3215
commit 0ea4a769de
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ export namespace Installation {
throw new UpgradeFailedError({
stderr: result.stderr.toString("utf8"),
})
await $`${process.execPath} --version`.nothrow().quiet().text()
}
export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"