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

Merged
jack merged 10 commits from refactor/130-cleanup-constants into main 2026-01-24 13:16:06 +00:00
Owner

Summary

Remove 4 unused constant objects from constants.ts.
Reduced file from 117 to 53 lines (-64 lines, -55%).

Removed:

  • HOOK_EXIT_CODES - never imported anywhere
  • PORTS - never imported anywhere
  • API_ENDPOINTS - never imported anywhere
  • TASK_QUEUE - never imported anywhere

Kept (actively used):

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

Refs #130

Test Plan

  • pnpm run typecheck passes
  • Verified via grep that none of the removed constants are imported anywhere
## Summary Remove 4 unused constant objects from constants.ts. Reduced file from 117 to 53 lines (-64 lines, -55%). **Removed:** - `HOOK_EXIT_CODES` - never imported anywhere - `PORTS` - never imported anywhere - `API_ENDPOINTS` - never imported anywhere - `TASK_QUEUE` - never imported anywhere **Kept (actively used):** - `VERSION` - used in health endpoint, worker - `HOOK_TIMEOUTS` - used in hooks, client - `getTimeout` - used in hooks - `WORKER` - used in websocket-client Refs #130 ## Test Plan - [x] `pnpm run typecheck` passes - [x] Verified via grep that none of the removed constants are imported anywhere
refactor(shared): remove unused constants from constants.ts
All checks were successful
CI / check (pull_request) Successful in 0s
CI / build (pull_request) Successful in 41s
CI / validate-plugin (pull_request) Successful in 35s
56ada8096d
Remove 4 unused constant objects:
- HOOK_EXIT_CODES (never imported)
- PORTS (never imported)
- API_ENDPOINTS (never imported)
- TASK_QUEUE (never imported)

Reduced file from 117 to 53 lines (-64 lines, -55%).

Kept actively used constants:
- VERSION
- HOOK_TIMEOUTS
- getTimeout
- WORKER

Refs #130

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m17s
1b6aae3993
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m14s
a5866e8996
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m17s
d91efb19fb
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m19s
5ea5b690df
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m0s
09c65e578a
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m16s
ca05015ac5
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m14s
0d4960691e
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m11s
700851fe0a
Merge branch 'main' into refactor/130-cleanup-constants
All checks were successful
CI / build (pull_request) Successful in 1m8s
3f6fb55b17
jack merged commit 06fc899482 into main 2026-01-24 13:16:06 +00:00
Sign in to join this conversation.
No description provided.