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

Merged
jonas.hanisch merged 1 commit from refactor/127-cleanup-paths-ts into main 2026-01-24 12:01:20 +00:00
Owner

Summary

  • Removed 14 unused constants and 8 unused functions from paths.ts
  • Reduced file from 226 lines to 57 lines (-173 lines)
  • Kept only DATA_DIR, CLAUDE_CONFIG_DIR, and ensureDir utility

Removed Exports

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

Functions:

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

Reason

These exports were never imported anywhere in the codebase. Path configuration is handled by settings.ts which has its own definitions (e.g., DATABASE_PATH, VECTOR_DB_PATH).

Test plan

  • TypeScript compilation passes
  • All existing functionality works (paths come from settings.ts)

Closes #127

🤖 Generated with Claude Code

## Summary - Removed 14 unused constants and 8 unused functions from `paths.ts` - Reduced file from 226 lines to 57 lines (-173 lines) - Kept only `DATA_DIR`, `CLAUDE_CONFIG_DIR`, and `ensureDir` utility ## Removed Exports **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` **Functions:** - `getProjectArchiveDir`, `ensureAllDataDirs`, `ensureModesDir` - `ensureAllClaudeDirs`, `getCurrentProjectName`, `createBackupFilename` - `getVersion`, `resetVersionCache` ## Reason These exports were never imported anywhere in the codebase. Path configuration is handled by `settings.ts` which has its own definitions (e.g., `DATABASE_PATH`, `VECTOR_DB_PATH`). ## Test plan - [x] TypeScript compilation passes - [ ] All existing functionality works (paths come from settings.ts) Closes #127 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor(shared): remove unused exports from paths.ts
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 43s
CI / validate-plugin (pull_request) Successful in 34s
6d1a934671
Removed 7 unused constants and 8 unused functions from paths.ts:

Constants removed:
- 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

Functions removed:
- getProjectArchiveDir, ensureAllDataDirs, ensureModesDir
- ensureAllClaudeDirs, getCurrentProjectName, createBackupFilename
- getVersion, resetVersionCache

These were never imported anywhere in the codebase. Path configuration
is handled by settings.ts which has its own definitions.

Kept: DATA_DIR, CLAUDE_CONFIG_DIR, ensureDir (useful utilities)

Fixes #127

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jonas.hanisch force-pushed refactor/127-cleanup-paths-ts from 6d1a934671
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 43s
CI / validate-plugin (pull_request) Successful in 34s
to c468ddebf8
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m26s
CI / validate-plugin (pull_request) Successful in 1m7s
2026-01-24 10:40:02 +00:00
Compare
jonas.hanisch force-pushed refactor/127-cleanup-paths-ts from c468ddebf8
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m26s
CI / validate-plugin (pull_request) Successful in 1m7s
to 474314acc5
All checks were successful
CI / build (pull_request) Successful in 40s
2026-01-24 12:00:33 +00:00
Compare
jonas.hanisch deleted branch refactor/127-cleanup-paths-ts 2026-01-24 12:01:20 +00:00
Sign in to join this conversation.
No description provided.