Skip to content

Conversation

@ichoosetoaccept
Copy link
Member

@ichoosetoaccept ichoosetoaccept commented Dec 30, 2025

Summary

Adds knip configuration for dead code detection, adds knip as a pre-commit hook, fixes Zod v3/v4 compatibility, and removes all unused code identified by knip.

Changes

Added

  • knip.json - Configuration for knip dead code detector with proper entry point
  • Pre-commit hook - knip runs on every commit to catch unused code early

Fixed

  • Zod v3/v4 compatibility - Replaced import { ZodType } from 'zod' with a permissive type alias to support both Zod versions

Removed (unused code)

  • src/utils/index.ts - Unused barrel file
  • getRegistry(), resetRegistry() - Unused singleton pattern in tool-registry
  • getLogger(), setLogger() - Unused singleton pattern in logger
  • GitLabClientConfig interface - Never used
  • RegistryAdapter export - Made private (only used internally)
  • Unused type re-exports from src/registry/index.ts

Verification

  • Build passes ✅
  • All 122 tests pass ✅
  • bunx knip reports no issues ✅
  • bun run check (biome) passes ✅

Copy link
Member Author

ichoosetoaccept commented Dec 30, 2025

@ichoosetoaccept ichoosetoaccept force-pushed the 12-30-chore_add_knip_config_pre-commit_hook_fix_zod_compatibility_and_remove_unused_code branch from 82f240a to f1d7d76 Compare December 30, 2025 09:57
@ichoosetoaccept ichoosetoaccept changed the title chore: add knip config, pre-commit hook, fix Zod compatibility, and remove unused code fix: add knip config, pre-commit hook, fix Zod compatibility, and remove unused code Dec 30, 2025
@ichoosetoaccept ichoosetoaccept marked this pull request as ready for review December 30, 2025 09:59
Copy link
Member Author

ichoosetoaccept commented Dec 30, 2025

Merge activity

  • Dec 30, 10:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 30, 10:03 AM UTC: Graphite rebased this pull request as part of a merge.
  • Dec 30, 10:04 AM UTC: @ichoosetoaccept merged this pull request with Graphite.

@ichoosetoaccept ichoosetoaccept changed the base branch from 12-30-chore_remove_broken_oauth-tests.ts_and_fix_remote-auth-tests.ts to graphite-base/38 December 30, 2025 10:01
@ichoosetoaccept ichoosetoaccept changed the base branch from graphite-base/38 to main December 30, 2025 10:02
@ichoosetoaccept ichoosetoaccept force-pushed the 12-30-chore_add_knip_config_pre-commit_hook_fix_zod_compatibility_and_remove_unused_code branch from f1d7d76 to 5ceab6e Compare December 30, 2025 10:03
@ichoosetoaccept ichoosetoaccept merged commit a34d956 into main Dec 30, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 30, 2025
## [0.3.1](v0.3.0...v0.3.1) (2025-12-30)

### Bug Fixes

* add knip config, pre-commit hook, fix Zod compatibility, and remove unused code ([#38](#38)) ([a34d956](a34d956))
@github-actions
Copy link

🎉 This PR is included in version 0.3.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants