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

Closed opened this has it

Landed in pull #14016 · run

opened this

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.

commented

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..

commented

Left open after pull #14016 landed: 1 unticked item remains (src/checks/service.ts likewise.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs