version.ts 353 B

12345678
  1. declare global {
  2. const OPENCODE_VERSION: string
  3. const OPENCODE_CHANNEL: string
  4. }
  5. export const InstallationVersion = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local"
  6. export const InstallationChannel = typeof OPENCODE_CHANNEL === "string" ? OPENCODE_CHANNEL : "local"
  7. export const InstallationLocal = InstallationChannel === "local"