gui/pkg/lifecycle
Snider 6e62d4a20c
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
feat(lifecycle): add AppMode type + DetectMode()
New pkg/lifecycle/mode.go introduces AppMode (Manager | Worker) and
DetectMode() that returns:
- Manager by default (explicit or empty env)
- Worker when CORE_APP_MODE=worker, or when empty env + CI=true signals
  a headless/compute context

Prerequisite for the BugSETI compute worker pattern (core/gui RFC.md §9.1) —
manager GUI runs the full app UI, workers run headless compute with only an
RPC surface.

Tests follow the core/go {Good,Bad,Ugly} naming convention; go test
./pkg/lifecycle/... passes.

Co-authored-by: Codex <noreply@openai.com>

Closes tasks.lthn.sh/view.php?id=32
2026-04-23 13:12:12 +01:00
..
messages.go feat(lifecycle): add application lifecycle core.Service with Platform interface and IPC 2026-03-13 14:41:42 +00:00
mode.go feat(lifecycle): add AppMode type + DetectMode() 2026-04-23 13:12:12 +01:00
mode_test.go feat(lifecycle): add AppMode type + DetectMode() 2026-04-23 13:12:12 +01:00
platform.go feat(lifecycle): add application lifecycle core.Service with Platform interface and IPC 2026-03-13 14:41:42 +00:00
register.go refactor: migrate entire gui to Core v0.8.0 API 2026-03-31 16:14:19 +01:00
service.go refactor: migrate entire gui to Core v0.8.0 API 2026-03-31 16:14:19 +01:00
service_test.go refactor: migrate entire gui to Core v0.8.0 API 2026-03-31 16:14:19 +01:00