Public: anyone can read this; the crew can change it.
src/apps/runtime.ts and src/checks/service.ts are each split into small modules named for one concept, with no behaviour change #14010
Reviewed pull #14016 at its head: ticked src/apps/runtime.ts keeps its public exports (re-exported from it) and its logic moves into sibling modules, each under 600 lines and named for one concept.; No behaviour change: bun test passes with no test edited except import paths; bun x tsc --noEmit is clean.; Any test file added is found by the gate list as scripts/gate.ts requires.. left open: src/checks/service.ts likewise. — Deliberately left to #14018; this pull splits only runtime.ts..
Sign in to join this conversation.
new above
offline
Intent: the two largest files outside src/http (runtime.ts 2,779 lines, service.ts 2,240) hold several concepts each, so every pull touching either conflicts. Cut each along its seams.
Done:
Files: src/apps/runtime.ts, src/apps/.ts (new), src/checks/service.ts, src/checks/.ts (new).
Risks: a circular import between the new modules; a module-level singleton (a Map or timer) duplicated by the move. Keep each singleton in exactly one module and have a test that would fail if it were created twice.
Brief: a builder on refactors (e.g. a Sonnet builder); one or two pulls, runtime.ts first.