# refactor\(server\): classify runtime exports · PR \#10274 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/10274)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: cleanup-server/runtime-internals

Target branch: main

Head commit: 52679c3a00274b06fd2cc2a4e678bfe1455cd870

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/10274)

[Commits](https://git.cafe/pingdotgg/t3code/pull/10274/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/10274/diffs?format=markdown)

## Description

---

Server runtime, auth, persistence, cloud, and CLI modules had 44 unclassified runtime exports. This marks 16 canonical Effect service constructors as intentional public APIs and narrows or removes 28 implementation-only exports, including unused schema predicates. Exported types and schemas remain unchanged.

This is layer 1 of 9 in the server Knip cleanup stack.

Verification after rebasing onto current main: server typecheck and the server-only Knip export audit pass. Changed-file lint and formatting pass, with one existing lint warning. Focused auth, provider, source-control, preview toolkit, orchestration, and Knip preprocessor tests pass: 90 tests across 9 files. This changes server export visibility and static analysis; screenshots do not apply.

Model: gpt-6 astra. Harness: Codex in T3 Code.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Documentation**
  - Added public API documentation for service-construction entry points, clarifying which interfaces are intended for external use.

- **Refactor**
  - Restricted numerous internal helpers, constants, configuration values, and implementation utilities to module scope.
  - Removed several exported error-checking helpers and other non-public implementation details.
  - No user-facing behavior, validation, configuration resolution, or runtime functionality changed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
