Skip to content
Myr

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 file

Take 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 back
1// 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 back
2import type { Layer } from "effect";
34import type { PlatformConfig } from "./platform.ts";5import type { WorkerPorts } from "./ports.ts";6

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

line 7why, one step back
7// 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 back
8export type Cartridge = (
9 config: PlatformConfig10) => Layer.Layer<never, never, WorkerPorts>;11

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 12–13why, one step back
12// cartridge: visibility
13export { live as visibility } from "./visibility/live.ts";