mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 02:36:57 -04:00
16 lines
599 B
TypeScript
16 lines
599 B
TypeScript
import { Config } from "effect"
|
|
|
|
// Every environment variable the CLI reads, in one place. Consumers yield
|
|
// these instead of touching process.env so the full surface stays visible,
|
|
// typed, and redacted where secret.
|
|
|
|
// The opencode server password: sent by clients connecting to an explicit
|
|
// --server, and adopted by a manually run or standalone server. The legacy
|
|
// name is still honored.
|
|
export const password = Config.redacted("OPENCODE_PASSWORD").pipe(
|
|
Config.orElse(() => Config.redacted("OPENCODE_SERVER_PASSWORD")),
|
|
Config.withDefault(undefined),
|
|
)
|
|
|
|
export * as Env from "./env"
|