support OPENCODE_PERMISSION json env variable

This commit is contained in:
Dax Raad
2025-08-12 12:28:08 -04:00
parent 354e55ecef
commit 5a17f44da4
2 changed files with 5 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ export namespace Flag {
export const OPENCODE_DISABLE_WATCHER = truthy("OPENCODE_DISABLE_WATCHER")
export const OPENCODE_CONFIG = process.env["OPENCODE_CONFIG"]
export const OPENCODE_DISABLE_AUTOUPDATE = truthy("OPENCODE_DISABLE_AUTOUPDATE")
export const OPENCODE_PERMISSION = process.env["OPENCODE_PERMISSION"]
function truthy(key: string) {
const value = process.env[key]?.toLowerCase()