Process lifecycle management with supervisor pattern
Find a file
Snider 87ef2dbe16 fix(dx): audit CLAUDE.md, error handling, and test coverage
- Update CLAUDE.md: document Detach, DisableCapture, ShutdownTimeout,
  auto-registration, graceful shutdown, and error handling conventions;
  add missing go-log and go-io dependencies
- Replace ServiceError type in process_global.go with coreerr.E()
  sentinel errors for consistency with the rest of the package
- Wrap raw error returns in Registry.Register, Registry.Unregister,
  and PIDFile.Release with coreerr.E() for proper context
- Add tests for Service.Kill, Service.Output, Service.OnShutdown,
  Service.OnStartup, Service.RunWithOptions, Service.Running,
  Process.Signal, Daemon.Run (context cancellation),
  Daemon.Stop (idempotent), DisableCapture, Detach, env vars,
  exec.WithDir, exec.WithEnv, exec.WithStdin/Stdout/Stderr,
  exec.RunQuiet
- Coverage: root 82.7% → 88.3%, exec/ 61.9% → 87.3%

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 08:42:56 +00:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:37 +00:00
.idea chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:50 +00:00
docs docs: remove implemented plan files 2026-03-14 12:45:56 +00:00
exec fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
pkg/api feat(ui): add Lit custom elements for process management 2026-03-14 12:25:06 +00:00
ui feat(ui): add Lit custom elements for process management 2026-03-14 12:25:06 +00:00
.gitignore chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:50 +00:00
actions.go feat: extract process package from core/go pkg/process 2026-03-06 12:50:09 +00:00
buffer.go feat: extract process package from core/go pkg/process 2026-03-06 12:50:09 +00:00
buffer_test.go feat: extract process package from core/go pkg/process 2026-03-06 12:50:09 +00:00
CLAUDE.md fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
daemon.go refactor(process): replace fmt.Errorf and errors.New with coreerr.E() 2026-03-16 20:38:08 +00:00
daemon_test.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
global_test.go fix(test): SetDefault returns error not panic, update test 2026-03-16 18:41:56 +00:00
go.mod chore: sync dependencies for v0.2.7 2026-03-16 22:17:52 +00:00
go.sum chore: sync dependencies for v0.2.7 2026-03-16 22:17:52 +00:00
health.go refactor(process): replace fmt.Errorf and errors.New with coreerr.E() 2026-03-16 20:38:08 +00:00
health_test.go feat: add HealthServer and WaitForHealth for daemon monitoring 2026-03-09 13:59:42 +00:00
pidfile.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
pidfile_test.go feat: add PIDFile for single-instance enforcement 2026-03-09 13:53:58 +00:00
process.go refactor(process): replace fmt.Errorf and errors.New with coreerr.E() 2026-03-16 20:38:08 +00:00
process_global.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
process_test.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
registry.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
registry_test.go feat: add daemon Registry for tracking running daemons 2026-03-09 14:42:25 +00:00
runner.go refactor(process): replace fmt.Errorf and errors.New with coreerr.E() 2026-03-16 20:38:08 +00:00
runner_test.go fix: resolve variable shadowing in test files (core → framework alias) 2026-03-09 13:58:18 +00:00
service.go refactor(process): replace fmt.Errorf and errors.New with coreerr.E() 2026-03-16 20:38:08 +00:00
service_test.go fix(dx): audit CLAUDE.md, error handling, and test coverage 2026-03-17 08:42:56 +00:00
types.go feat: add Detach option for process group isolation 2026-03-15 15:55:20 +00:00