Skip to content

chore: remove dead code, unused exports, etc#44

Merged
aliasunder merged 2 commits into
mainfrom
cleanup/dead-code-and-exports
May 18, 2026
Merged

chore: remove dead code, unused exports, etc#44
aliasunder merged 2 commits into
mainfrom
cleanup/dead-code-and-exports

Conversation

@aliasunder
Copy link
Copy Markdown
Owner

Summary

  • Remove pre-OAuth createBearerMiddleware (unused since OAuth migration)
  • Remove unwired searchByType from search-index factory (vault_search type filter + vault_search_by_property cover the same need)
  • Remove unused type exports: ToolName, MemoryStore
  • Remove unused serverUrl from OAuthProviderOptions (only createOAuthRoutes uses it, where it's already received directly)
  • Replace hand-rolled JWT XOR signature comparison with timingSafeEqual from node:crypto
  • Replace test-only clearConfigCache export with vitest vi.resetModules() + dynamic imports
  • Scrub real IP address (73.48.22.1 → RFC 5737 203.0.113.42) from doc examples
  • Replace real name in test fixture with fictional name

Test plan

  • npx tsc --noEmit — clean compile, no dangling references
  • npm test — 461 tests pass (13 files), net -8 tests removed with dead code
  • npm run lint — clean
  • grep -rn "73.48.22.1" — no matches (IP scrubbed)
  • grep -rn "Tanisha Aberdeen" — no matches (name scrubbed)

🤖 Generated with Claude Code

aliasunder and others added 2 commits May 18, 2026 19:29
Remove pre-OAuth `createBearerMiddleware`, unwired `searchByType`,
unused `ToolName`/`MemoryStore` type exports, and `serverUrl` from
`OAuthProviderOptions`. Replace hand-rolled JWT XOR comparison with
`timingSafeEqual`. Replace test-only `clearConfigCache` with vitest
`vi.resetModules()`. Scrub real IP and name from docs/fixtures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aliasunder aliasunder changed the title chore: remove dead code, unused exports, and personal data chore: remove dead code, unused exports, etc May 18, 2026
@aliasunder aliasunder merged commit c5c607d into main May 18, 2026
2 checks passed
@aliasunder aliasunder deleted the cleanup/dead-code-and-exports branch May 18, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant