refactor(shared): remove unused constants from constants.ts #130

Merged
jonas.hanisch merged 1 commit from refactor/125-cleanup-constants-ts into main 2026-01-24 12:05:37 +00:00
Owner

Summary

  • Removed 4 unused constant objects from constants.ts
  • Reduced file from 117 to 54 lines (-63 lines)

Removed Constants

Constant Reason
HOOK_EXIT_CODES Never imported anywhere
PORTS Never imported anywhere
API_ENDPOINTS Never imported anywhere
TASK_QUEUE Never imported anywhere

Kept Constants (actively used)

  • VERSION - used in health endpoint, worker
  • HOOK_TIMEOUTS - used in hooks, client
  • getTimeout - used in hooks
  • WORKER - used in websocket-client

Test plan

  • TypeScript compilation passes
  • All existing functionality works

Closes #125

🤖 Generated with Claude Code

## Summary - Removed 4 unused constant objects from `constants.ts` - Reduced file from 117 to 54 lines (-63 lines) ## Removed Constants | Constant | Reason | |----------|--------| | `HOOK_EXIT_CODES` | Never imported anywhere | | `PORTS` | Never imported anywhere | | `API_ENDPOINTS` | Never imported anywhere | | `TASK_QUEUE` | Never imported anywhere | ## Kept Constants (actively used) - `VERSION` - used in health endpoint, worker - `HOOK_TIMEOUTS` - used in hooks, client - `getTimeout` - used in hooks - `WORKER` - used in websocket-client ## Test plan - [x] TypeScript compilation passes - [ ] All existing functionality works Closes #125 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor(shared): remove unused constants from constants.ts
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 41s
CI / validate-plugin (pull_request) Successful in 35s
a62d400b12
Removed 4 unused constant objects:
- HOOK_EXIT_CODES (never imported)
- PORTS (never imported)
- API_ENDPOINTS (never imported)
- TASK_QUEUE (never imported)

Kept: VERSION, HOOK_TIMEOUTS, getTimeout, WORKER (all actively used)

Reduced file from 117 to 54 lines (-63 lines)

Fixes #125

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jonas.hanisch force-pushed refactor/125-cleanup-constants-ts from a62d400b12
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 41s
CI / validate-plugin (pull_request) Successful in 35s
to 0841595349
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m24s
CI / validate-plugin (pull_request) Successful in 1m7s
2026-01-24 10:39:47 +00:00
Compare
jonas.hanisch force-pushed refactor/125-cleanup-constants-ts from 0841595349
All checks were successful
CI / check (pull_request) Successful in 1s
CI / build (pull_request) Successful in 1m24s
CI / validate-plugin (pull_request) Successful in 1m7s
to ddd56676c5
All checks were successful
CI / build (pull_request) Successful in 39s
2026-01-24 12:04:56 +00:00
Compare
jonas.hanisch deleted branch refactor/125-cleanup-constants-ts 2026-01-24 12:05:37 +00:00
Sign in to join this conversation.
No description provided.