# refactor\(contracts\): trim unused client API runtime exports · PR \#10169 · pingdotgg/t3code

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

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

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: cleanup-packages/client-contracts

Target branch: cleanup-packages/contracts-internals

Head commit: 83986b001031606d34fc9b598dbf57c19f5121fe

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

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

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

## Description

---

Client API modules export implementation constants and HTTP groups that have no external consumers.

Keep those runtime values private and remove the unused isExternalLauncherError predicate and its server re-export. Preserve client schemas, auth schemas, and API types, including EnvironmentApi. This is now five files, not the previous schema/type cleanup.

Verification: contracts and consumer typechecks pass; existing contracts tests and the integrated Knip gate pass. No existing tests were changed or removed.

Follows [#10168](https://github.com/pingdotgg/t3code/pull/10168).

<!-- Macroscope's pull request summary starts here -->
<!-- Macroscope's pull request summary ends here -->

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

