Repository navigation
chore(ui-sdk): remove twelve unused internal entry names - #4073
Merged
Merged
Conversation
This was referenced Nov 15, 2026
…ry-names # Conflicts: # packages/ui-sdk/src/internal.ts
This was referenced Nov 16, 2026
Merged
|
This PR's squash |
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.
Closes #3412
What changed
Remove 12 unused names from the ui-sdk internal entry and regenerate its API report. Keep the three names now imported by ui-server. Underlying declarations remain in their source modules.
Why this shape
Follows #3412 and the internal-entry rule in
docs/decisions/public-export-boundary.md: internal exports carry no compatibility promise. No supported API, behavior, or guard changes. A patch changeset records the internal-entry cleanup, as required by the shipped-file gate.Proof
Base:
cc326cc64348a765325adc1cbe74248d60844845. Ran the issue’s exact per-namegit grep -lwcommand before editing. Baseline declaration build passed for ui-server, ui-backend-claude, ui-backend-pi and ui-react. After removal, the same build checks all four together, so the emit result below covers every candidate with all proposed removals applied simultaneously.FIRST_PARTY_PROVIDER_RECIPIENTSpackages/ui-server/src/brain/host-boundary.ts:34,194MAX_PROVIDER_REQUEST_BYTESWORKER_PROVIDER_RELAY_SOCKETproviderUsageProviderOperationProviderRelayOptionspackages/ui-server/tests/provider-relay-taint.test.ts:14,60,154ProviderRelayRefusalpackages/ui-server/tests/provider-relay-taint.test.ts:14,67,155ProviderUsageNativePoolAccessNativePoolCreatePurposeNativePoolStateassertScratchMasklaunchMaintenanceWorkerprobeWorkerHostAsyncWORKER_PROVIDER_RELAY_DIROpen-PR audit: inspected all 33 open PR diffs. No added outside import of any removed name. #4050 repeats the pool types in its internal-entry export line; #4064 references them inside ui-sdk or API reports. Neither adds an outside importer.
MaintenanceResultis unchanged.Temporary removal audit failed on the base, naming all 12 candidates, then passed after removal. Existing API-surface snapshot was run before regenerating the report to prove it rejects the stale inventory. Mutation: restore one removed export against the regenerated report, observe the same snapshot fail, then restore and pass. No permanent compile-heavy test added (explicitly out of scope).
Validation:
bun run build --for ui-server,ui-backend-claude,ui-backend-pi,ui-react: exit 0 both at the base and after all 12 removals.NODE_OPTIONS=--max-old-space-size=6144 bun run typecheck: exit 0. The initial default 2 GiB heap run aborted with an explicit JavaScript heap out-of-memory diagnostic; no TypeScript diagnostic was reported.bun run test tests/api-surface.test.ts packages/ui-server/tests/declaration-surface.test.ts: 56 pass, 0 fail, 190 assertions.providerUsagegives 0 pass, 1 fail attests/api-surface.test.ts:48; final focused run passes after restoring the removal.bun scripts/check-changeset-packages.tsandbunx --no-install changeset status: pass; all manifest package names resolve, no major bumps.SQLITE_IOERR_WRITEandEDQUOTerrors. A base-entry control of the four failing files also reproducedEDQUOTwithout the export removals. Existing unmilestoned ci: diagnose temporary-storage quota failures cascading through local fast invariants #4017 tracks this condition. The final preflight uses an owned directory on the workspace filesystem viaTMPDIR, retaining the same assertions and guards.Merged main at
49edacd86: resolved one conflict inpackages/ui-sdk/src/internal.tsby keeping main's newNativeTurnTreeexport (documented in the integration contract) and still dropping the three unused pool types. The regenerated API report differs from main only by the 12 removals.bun run typecheckexit 0.{"version":1,"kind":"brain-check-pr-receipt","head":"49edacd869b532bdc333d7736c803b03245e6644","base":"origin/main","mode":"focused","startedAt":"2026-11-16T13:18:04.294Z","finishedAt":"2026-11-16T13:19:14.132Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12623.214239},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":131.03909399999975},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":111.48766900000192},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.182732000001124},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":56934.557604}]}Final
TMPDIRpreflight passed every gate (993 fast-invariant tests, zero failures).Checklist
Anything left open
Nothing in issue scope. Candidate confirmation and merge belong to the orchestrator. Existing unmilestoned #4017 tracks temporary-storage quota failures; #4069 tracks incomplete transient diagnostics. No new follow-up issue filed.
Collision audit at head
4b3ab33f0ba7d2a6383bbd09fbe085e1632e72f7(bun scripts/collisions.ts --json --pr 4073):358cc819ca1c544404ec0e45ba34f97d63544ee0editspackages/ui-sdk/src/internal.tsto addNativeTurnTree. Preserve that added export alongside this removal when integrating.