MCPcopy
hub / github.com/anomalyco/opencode / layer

Method layer

packages/server/src/auth.ts:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 static get layer() {
26 return Layer.effect(
27 this,
28 Effect.gen(function* () {
29 return Config.of(
30 yield* EffectConfig.all({
31 password: EffectConfig.string("OPENCODE_SERVER_PASSWORD").pipe(EffectConfig.option),
32 username: EffectConfig.string("OPENCODE_SERVER_USERNAME").pipe(EffectConfig.withDefault("opencode")),
33 }),
34 )
35 }),
36 )
37 }
38}
39
40export function required(config: Info) {

Callers 15

withEnvFunction · 0.45
runFunction · 0.45
effect.tsFile · 0.45
withEnvFunction · 0.45
configEnvFunction · 0.45
runFunction · 0.45
effect.tsFile · 0.45
watcher.test.tsFile · 0.45
writeFunction · 0.45
observability.tsFile · 0.45
tracingLayerFunction · 0.45

Calls 1

allMethod · 0.45

Tested by 6

withEnvFunction · 0.36
withEnvFunction · 0.36
configEnvFunction · 0.36
runFunction · 0.36
writeFunction · 0.36
runFunction · 0.36