#14054
refactor(config): return Result from resolveKiloRegistrationWorktree instead of throwing ConfigurationError
Summary
src/application/McpRegistrationGit.ts previously threw ConfigurationError across internal helpers (gitOutput, gitPath, primaryRoot, directoryPath) and then hand-caught ConfigurationError inside resolveKiloRegistrationWorktree, requiring a baseline entry in scripts/verify/baselines/hand-caught-configuration-error.json.
Proposed Change
Return Result<..., KiloWorktreeFailure> (ConfigurationError | AnalysisCancelledError) through gitOutput, gitPath, primaryRoot, directoryPath, and resolveKiloRegistrationWorktree, attach late cancellation through failWithCancellation, remove the hand-caught ConfigurationError check, and lower scripts/verify/baselines/hand-caught-configuration-error.json.
Activity
0No activity yet.