# refactor\(server\): classify provider exports · PR \#10278 · pingdotgg/t3code

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

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

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: cleanup-server/provider-internals

Target branch: cleanup-server/telemetry-usage-internals

Head commit: 375ccee2e02f7813c81301724d12be054af1e5b1

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

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

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

## Description

---

Provider modules had 27 unclassified runtime exports. This marks four canonical Effect construction APIs as intentionally public, narrows implementation-only constants and helpers, removes redundant re-exports, and deletes two unused provider snapshot parsers.

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

The maintenance helper remains exported because current main imports it in behavior tests.

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

- **Refactor**
  - Reduced the publicly accessible surface of provider integrations and internal helpers by making implementation details private.
  - Removed several internal utilities and re-exports that were not intended for external use.
  - Existing provider behavior remains unchanged.

- **Documentation**
  - Added and updated API documentation for service construction and bundled-data support.
  - Clarified public API annotations for select provider services.

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