feat(0.17.0): yank dead exports — keep only what consumers use#38
Merged
Conversation
Cross-referenced every public export against the 6 consumer repos (gtm/legal/creative/tax/agent-builder/blueprint-agent) + agent-eval. Deleted everything with zero callers. Yanked modules (zero external callers): - src/chat-turn.ts (runChatTurn + composeTurnProfile + sandboxAsChatTurnTarget + ChatTurnError + types) — the old sandbox single-shot stream primitive that name-collided with handleChatTurn - src/trace-bridge.ts (createTraceBridge + toAgentEvalTrace + TraceBridge*) — nobody mapped RuntimeStreamEvent to agent-eval TraceEvent - src/intent-router.ts (classifyIntent + supporting types) — nobody dispatched by intent - src/profile-conformance.ts (assertProfileConformance + types) — nobody validated profiles Yanked individual helpers (zero external callers): - summarizeAgentTaskRun (from run.ts) - withConfiguredModels (from model-resolution.ts) - encodeServerSentEvent (from sse.ts public surface — kept internal for the two ServerSentEvent helpers) - examples/model-resolution/ (used withConfiguredModels) Yanked dead error types (zero external use): - BackendTransportError, CaptureIntegrityError, ReplayError, SessionMismatchError, VerificationError Tests + examples + docs scrubbed of refs. 137 tests pass (was 179 — the 42 deletions were tests covering the yanked modules). Public surface: 113 exports → ~30. Net diff: -2000 LOC.
e2a0805 to
4847daa
Compare
This was referenced May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cross-referenced every public export against the 6 consumer repos (gtm/legal/creative/tax/agent-builder/blueprint-agent) + agent-eval. Deleted everything with zero callers.
Yanked
Whole modules (zero callers):
Individual helpers:
Dead error types: `BackendTransportError`, `CaptureIntegrityError`, `ReplayError`, `SessionMismatchError`, `VerificationError`.
Example: `examples/model-resolution/` (used `withConfiguredModels`).
Numbers
Test plan