cartridges.ts
This file
Path
apps/platform/src/cartridges.ts
13 lines · 543 bytes · TypeScript
Last changed by
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
line 1why, one step back1// A static re-export, not an `import()`: a dynamic import would make the bundler wrap every module it reaches in a lazy initializer.Close W6: give the layer gate its own upstream, prove the cartridge removable by deletion, and name its fences in AGENTS.mdoscabrielbefore adoption9a301f9
lines 2–6why, one step back2import type { Layer } from "effect";34import type { PlatformConfig } from "./platform.ts";5import type { WorkerPorts } from "./ports.ts";6Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
line 7why, one step back7// Lives here so this module keeps a line of its own when its last cartridge is deleted.Close W6: give the layer gate its own upstream, prove the cartridge removable by deletion, and name its fences in AGENTS.mdoscabrielbefore adoption9a301f9
lines 8–11why, one step back8export type Cartridge = (9 config: PlatformConfig10) => Layer.Layer<never, never, WorkerPorts>;11Merge 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 12–13why, one step back12// cartridge: visibility13export { live as visibility } from "./visibility/live.ts";