MCPcopy Create free account
hub / github.com/anomalyco/opencode / enabledByExperimental

Function enabledByExperimental

packages/opencode/src/effect/runtime-flags.ts:11–14  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

9 )
10const experimental = bool("OPENCODE_EXPERIMENTAL")
11const enabledByExperimental = (name: string) =>
12 Config.all({ experimental, enabled: Config.boolean(name).pipe(Config.option) }).pipe(
13 Config.map((flags) => Option.getOrElse(flags.enabled, () => flags.experimental)),
14 )
15
16export class Service extends ConfigService.Service<Service>()("@opencode/RuntimeFlags", {
17 autoShare: bool("OPENCODE_AUTO_SHARE"),

Callers 1

ServiceClass · 0.70

Calls 1

allMethod · 0.45

Tested by

no test coverage detected