The best way to control Claude Code, Codex and more from any computer or phone

main
ts 11 lines 406 Bytes
Raw
1 import * as Effect from "effect/Effect"
2 import * as Redacted from "effect/Redacted"
3
4 export const resolve = (
5 password: Redacted.Redacted | Effect.Effect<Redacted.Redacted> | undefined
6 ): Effect.Effect<string | undefined> =>
7 password === undefined
8 ? Effect.succeed(undefined)
9 : Effect.isEffect(password)
10 ? Effect.map(password, Redacted.value)
11 : Effect.succeed(Redacted.value(password))