Skip to content
Myr

env.ts

This file

Path

apps/platform/src/visibility/env.ts

19 lines · 622 bytes · TypeScript

Last changed by

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–2why, one step back
1import type { RepoHost } from "@repo/artifacts/repo-host";
2import { ProjectEnvLive } from "@repo/project/visibility/env";

Give checks the env as 611's job carries it, open values for landed runs, and parse env schemas in the Workeroscabrielbefore adoption234865c

line 3why, one step back
3import { EnvSchemaParserEnvSpec } from "@repo/visibility/env-schema/env-spec";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 4why, one step back
4import { WriteOnlyValuesWebCrypto } from "@repo/visibility/vault/webcrypto";

Give checks the env as 611's job carries it, open values for landed runs, and parse env schemas in the Workeroscabrielbefore adoption234865c

line 5why, one step back
5import { Layer } from "effect";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 6–8why, one step back
6
7import type { PlatformConfig } from "../platform.ts";8

Give checks the env as 611's job carries it, open values for landed runs, and parse env schemas in the Workeroscabrielbefore adoption234865c

lines 9–10why, one step back
9export const envLive = (
10 config: PlatformConfig

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 11–13why, one step back
11): Layer.Layer<never, never, RepoHost> =>
12 ProjectEnvLive.pipe(13 Layer.provide(

Give checks the env as 611's job carries it, open values for landed runs, and parse env schemas in the Workeroscabrielbefore adoption234865c

lines 14–17why, one step back
14 Layer.merge(
15 EnvSchemaParserEnvSpec,16 WriteOnlyValuesWebCrypto(config.MASTER_KEY)17 )

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 18–19why, one step back
18 )
19 );