refactor(shared): remove unused exports from paths.ts #168

Closed
jack wants to merge 1 commit from refactor/129-cleanup-paths into main
Owner

Summary

Remove 14 unused constants and 8 unused functions from paths.ts.
Reduced file from 226 lines to 42 lines (-184 lines, -81%).

Removed Constants:

  • USER_SETTINGS_PATH, DB_PATH, VECTOR_DB_DIR
  • CLAUDE_SETTINGS_PATH, CLAUDE_MD_PATH, CLAUDE_CREDENTIALS_PATH
  • ARCHIVES_DIR, LOGS_DIR, TRASH_DIR, BACKUPS_DIR, MODES_DIR
  • CLAUDE_COMMANDS_DIR, PLUGINS_DIR, MARKETPLACE_ROOT

Removed Functions:

  • getProjectArchiveDir, ensureAllDataDirs, ensureModesDir
  • ensureAllClaudeDirs, getCurrentProjectName, createBackupFilename
  • getVersion, resetVersionCache

Kept (deprecated, for compatibility):

  • DATA_DIR
  • CLAUDE_CONFIG_DIR
  • ensureDir utility

All path configuration is now handled via settings.ts which provides environment variable overrides.

Refs #129

Test Plan

  • pnpm run typecheck passes
  • Verified via grep that none of the removed exports are used anywhere
## Summary Remove 14 unused constants and 8 unused functions from paths.ts. Reduced file from 226 lines to 42 lines (-184 lines, -81%). **Removed Constants:** - `USER_SETTINGS_PATH`, `DB_PATH`, `VECTOR_DB_DIR` - `CLAUDE_SETTINGS_PATH`, `CLAUDE_MD_PATH`, `CLAUDE_CREDENTIALS_PATH` - `ARCHIVES_DIR`, `LOGS_DIR`, `TRASH_DIR`, `BACKUPS_DIR`, `MODES_DIR` - `CLAUDE_COMMANDS_DIR`, `PLUGINS_DIR`, `MARKETPLACE_ROOT` **Removed Functions:** - `getProjectArchiveDir`, `ensureAllDataDirs`, `ensureModesDir` - `ensureAllClaudeDirs`, `getCurrentProjectName`, `createBackupFilename` - `getVersion`, `resetVersionCache` **Kept (deprecated, for compatibility):** - `DATA_DIR` - `CLAUDE_CONFIG_DIR` - `ensureDir` utility All path configuration is now handled via `settings.ts` which provides environment variable overrides. Refs #129 ## Test Plan - [x] `pnpm run typecheck` passes - [x] Verified via grep that none of the removed exports are used anywhere
refactor(shared): remove unused exports from paths.ts
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
CI / validate-plugin (pull_request) Successful in 36s
52db79fed0
Remove 14 unused constants and 8 unused functions from paths.ts.
Reduced file from 226 lines to 42 lines (-184 lines, -81%).

Kept only:
- DATA_DIR (deprecated, kept for compatibility)
- CLAUDE_CONFIG_DIR (deprecated, kept for compatibility)
- ensureDir utility function

All path configuration is now handled via settings.ts which provides
environment variable overrides and a unified configuration API.

Refs #129

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jack closed this pull request 2026-01-24 16:51:37 +00:00
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 42s
Required
Details
CI / validate-plugin (pull_request) Successful in 36s

Pull request closed

Sign in to join this conversation.
No description provided.