Steve Yegge
b5839b656d
Fix compilation errors in internal/daemonrunner package
Created missing files:
- logger.go: Logger type, setupLogger method, and env helpers
- signals_unix.go: Unix signal definitions (SIGTERM, SIGINT, SIGHUP)
- signals_windows.go: Windows signal definitions
- sync.go: Sync loop implementation with export/import/validation helpers
Fixed errors:
- Added missing 'version' parameter to acquireDaemonLock call
- Removed duplicate setupLock method from process.go (kept in daemon.go)
- Removed duplicate startRPCServer from daemon.go (kept in rpc.go)
- Fixed LogPath -> LogFile config field reference
- Removed unused 'io' import from process.go
Implementation notes:
- exportToJSONL: Full implementation with dependencies, labels, comments
- importFromJSONL: Placeholder (TODO: extract from cmd/bd/import.go)
- countDBIssues: Uses SQL COUNT(*) optimization with fallback
- validatePostImport: Checks for data loss
- runSyncLoop/runEventLoop: Main daemon event loops with signal handling
All packages now compile successfully with 'go build ./...'
Amp-Thread-ID: https://ampcode.com/threads/T-36a7f730-3420-426f-9e23-f13d5fa089c4
Co-authored-by: Amp <amp@ampcode.com>
2025-11-01 19:10:27 -07:00
..
2025-10-31 17:17:33 -07:00
2025-10-27 20:45:59 -07:00
2025-10-27 20:45:59 -07:00
2025-10-26 22:48:19 -07:00
2025-10-31 22:01:45 -07:00
2025-11-01 19:10:27 -07:00
2025-11-01 11:35:31 -07:00
2025-10-31 23:03:56 -07:00
2025-11-01 11:35:31 -07:00
2025-10-31 23:03:56 -07:00
2025-10-31 17:52:36 -07:00