fix(ci): resolve lint errors and test failures

- Fix errcheck: handle watcher.Close() and Set() return values
- Fix unparam: remove always-nil error from NewActivityWatcher
- Fix unparam: remove unused sinceTime param, delete dead code
- Fix version mismatch: update MCP __init__.py to 0.48.0
- Fix routing tests: change CWD so routing can find town root

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
beads/crew/lydia
2026-01-20 20:50:43 -08:00
committed by Steve Yegge
parent 8807a171d3
commit 83e3c75635
5 changed files with 45 additions and 77 deletions

View File

@@ -30,7 +30,7 @@ type ActivityWatcher struct {
// Watches the dolt noms directory for commits, falling back to polling if fsnotify fails.
// The beadsDir should be the .beads directory path.
// The pollInterval is used for polling fallback mode.
func NewActivityWatcher(beadsDir string, pollInterval time.Duration) (*ActivityWatcher, error) {
func NewActivityWatcher(beadsDir string, pollInterval time.Duration) *ActivityWatcher {
aw := &ActivityWatcher{
pollInterval: pollInterval,
events: make(chan struct{}, 1), // Buffered to avoid blocking
@@ -74,7 +74,7 @@ func NewActivityWatcher(beadsDir string, pollInterval time.Duration) (*ActivityW
if err != nil {
// Fall back to polling mode
aw.pollingMode = true
return aw, nil
return aw
}
// Add watches for each path
@@ -91,11 +91,11 @@ func NewActivityWatcher(beadsDir string, pollInterval time.Duration) (*ActivityW
// No paths could be watched, fall back to polling
_ = watcher.Close()
aw.pollingMode = true
return aw, nil
return aw
}
aw.watcher = watcher
return aw, nil
return aw
}
// Events returns the channel that receives wake-up signals when changes are detected.