Repository navigation
Remove unused exports and helpers - #164
Merged
Merged
Conversation
These symbols have no callers in the repo. Live aliases and functions they wrapped stay in place. Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
jonbeckman
marked this pull request as ready for review
November 1, 2026 09:16
Contributor
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format Release preview
This PR does not add changelog files. Pending changelogs from other branches are included in the preview above. Run Managed by Tegami. |
Contributor
🟢 e2e solzero-core: 11 passed, 35 left out by filters2 agent steps · 2 replayed from cache Change 8 files changed since 35 tests left out by filters
All 11 tests in 6 files
e2e 0.21.3 · 55.2s · local-cloudflare · run artifacts |
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
Removes symbols that have no callers. Each one appears only at its definition. Live wrappers, package exports, and files stay.
This pull request uses
release:none. The deletions are internal and have no user, administrator, or operator effect. It does not changeVERSIONor add a Tegami entry.Removals and proof
Searches ran from the repo root with ripgrep, including ignored files other than
node_modules,.git,dist,.alchemy, and.turbo:Results before the deletion (definition sites only):
getWebRequest—packages/api/src/server/effect/services/auth.ts:158.requestFromSourcestays and is still imported bypackages/api/src/server/effect/handlers/shared/control-plane.ts.getStoredAuthProviderRegistryForTesting—packages/api/src/server/background/db/auth-config.ts:123.getStoredAuthProviderRegistrystays.CloudflareBindings—packages/api/src/server/effect/services/middleware.ts:5.getD1Drizzle— same file, line 12.getCloudflareBindingsstays and is still used bycontrol-plane.ts. TheD1Drizzleservice stays inpackages/api/src/server/effect/db/d1-drizzle.ts.annotateCurrentUserId—packages/api/src/server/effect/services/observability.ts:495.resetApiTelemetryForTests— same file, line 518 (empty body).annotateCurrentUserIdentitystays and is still called fromcontrol-plane.ts.popularTagOrder—packages/api/src/server/background/db/repo-secrets.ts:71.rankPopularTags— same file, line 81.tagStatOrderstays and is still used by the popular-tags query in that file.ModelDisplayInfo,ModelCategory, andMODEL_OPTIONS— onlypackages/shared/src/models.ts(lines 4, 9, and 14).normalizeModelIdstays and is still imported by the provider catalog and session handlers. Call sites useRuntimeModelCategory, notModelCategory.SOLZERO_GITHUB_URL—scripts/releases/github-repo.ts:2.SOLZERO_GITHUB_REPOstays and is still imported byscripts/tegami.mtsandscripts/releases/creative-release.ts.FileChange,ChildSession, andSessionMetadata— onlyapps/web/src/types/session.ts.\bSessionMetadata\bdoes not matchpersistSessionMetadata. TheTaskinterface in that file is also unused: the only other\bTask\bhits underapps/webare the tool-name string and comments inapps/web/src/lib/tool-formatters.ts. Imports of@/types/sessiononly pullArtifact.After the deletion, the same search returns no matches for those names.
Validation
nub run config:checknub run typechecknub run lintnub run formatnub run testis the e2e suite and would not execute code that had no callers. I did not run it.Checklist
.tegami/release entry, or explained why this pull request usesrelease:none.nub run config:check,nub run typecheck,nub run lint,nub run format, andnub run test.THIRD_PARTY_NOTICES.mdfor new third-party code or separately licensed assets.The test checkbox is open because
nub run testdid not run. The other four commands did.Left in place
apps/web/src/components/s0-logo-icon.tsx(S0LogoIcon) has no callers. The file stays.makeS0ApiClientinpackages/api/src/client.tshas no callers. It stays because the typed client migration is recent.isWorkflowRuntimeAbiVersion,getCurrentWorkflowRuntimeKernel,getWorkflowLoaderCacheKey, theisWorkflow*NodeTypepredicates,startWorkflowRunFromWebhook,validateWorkflowBuilderManifestSync).packages/shared/src/s0-config.ts,packages/api/src/server/effect/services/providers.ts,packages/api/src/server/background/isolate/model.ts, andapps/api/infra/index.ts.just-bashhas no direct import in this repo. The lockfile showsagentsand@cloudflare/thinkpeer-depend on it, so it stays.