-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
choreMaintenance tasks (dependencies, CI, tooling)Maintenance tasks (dependencies, CI, tooling)component:configConfiguration loading (src/config/)Configuration loading (src/config/)component:stateResume and checkpoint management (src/state/)Resume and checkpoint management (src/state/)component:typesTypeScript interfaces (src/types/)TypeScript interfaces (src/types/)effort:small< 1 hour< 1 hourpriority:lowNice to haveNice to have
Description
Description
Dead code analysis (knip) identified 3 exported types that are defined and re-exported but never imported anywhere in the codebase.
Findings
| Export | Type | Location | Notes |
|---|---|---|---|
ValidatedEvalConfig |
type | src/config/schema.ts:321 |
Zod-inferred config type, re-exported from config/index.ts |
CreateRunOptions |
interface | src/state/types.ts:75 |
State creation options, re-exported from state/index.ts |
ResumeOptions |
interface | src/state/types.ts:84 |
State resume options, re-exported from state/index.ts |
Note: The ResumeOptions in src/cli/options.ts:23 is a different interface with the same name and IS used by the CLI resume command.
Verification
# Confirm these are unused
npm run knipSuggested Fix
- Remove
ValidatedEvalConfigexport fromsrc/config/schema.ts(or keep if useful for external consumers) - Remove
CreateRunOptionsinterface fromsrc/state/types.ts - Remove
ResumeOptionsinterface fromsrc/state/types.ts - Remove corresponding re-exports from barrel files (
config/index.ts,state/index.ts)
Priority
Low - Dead code cleanup, no functional impact.
Related
- chore: remove unused E2E test helpers (13 exports) #275 (E2E helpers cleanup) ✅ Merged
- chore: remove unused detection and utility functions #276 (detection/utils cleanup) ✅ Merged
- chore: investigate Stage 3/4 barrel file re-exports for public API decision #277 (Stage 3/4 exports) - PR chore: remove unused Stage 3 execution exports #280
🤖 Created with Claude Code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
choreMaintenance tasks (dependencies, CI, tooling)Maintenance tasks (dependencies, CI, tooling)component:configConfiguration loading (src/config/)Configuration loading (src/config/)component:stateResume and checkpoint management (src/state/)Resume and checkpoint management (src/state/)component:typesTypeScript interfaces (src/types/)TypeScript interfaces (src/types/)effort:small< 1 hour< 1 hourpriority:lowNice to haveNice to have