gui/pkg
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
..
browser Add GUI coverage tests 2026-04-17 18:08:38 +01:00
chat Wire chat image picker through native dialog 2026-04-15 22:46:14 +01:00
clipboard Fix GUI image bridge wiring 2026-04-15 23:22:04 +01:00
container Add missing GUI unit coverage 2026-04-15 22:59:42 +01:00
contextmenu Harden context menu nil backend paths 2026-04-17 20:01:58 +01:00
deno Implement P2P, Deno, and container spec gaps 2026-04-15 22:12:19 +01:00
dialog Add GUI coverage tests 2026-04-17 18:08:38 +01:00
display Harden websocket nil handling 2026-04-18 08:36:49 +01:00
dock feat: Wails v3 stub bridge + feature expansion + display bridge + MCP events 2026-03-31 17:42:09 +01:00
environment Harden environment file manager path handling 2026-04-17 19:49:52 +01:00
events Harden nil event handling 2026-04-17 21:01:05 +01:00
keybinding Harden GUI security boundaries 2026-04-15 17:19:11 +01:00
lifecycle feat(lifecycle): add AppMode type + DetectMode() 2026-04-23 13:12:12 +01:00
marketplace Harden websocket and marketplace failure paths 2026-04-17 20:38:57 +01:00
mcp Harden context menu MCP JSON bridge 2026-04-17 20:54:37 +01:00
menu Harden menu builder against nil handles 2026-04-17 21:02:34 +01:00
notification Wire notification categories and layout helpers 2026-04-15 22:18:35 +01:00
p2p Harden p2p bridge cleanup 2026-04-17 20:12:18 +01:00
screen Harden screen state boundaries 2026-04-17 20:00:27 +01:00
systray Add missing GUI unit coverage 2026-04-15 23:17:52 +01:00
webview Fix webview target matching 2026-04-17 18:00:49 +01:00
window Harden layout persistence path handling 2026-04-18 08:55:14 +01:00