Prefactor: evie daemon subcommand #56
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#55
What to build
Prefactor only — no new user-facing behavior. Introduce a top-level
clapsubcommand layer so the binary can be either the long-running Daemon (evie daemon) or, later, a short-lived CLI issuing a single Verb. Today's entire startup path (config load, Telegram dispatcher, HTTP API, Session manager, signal handling) moves under thedaemonsubcommand and must behave exactly as it does now.Update the NixOS/systemd module so the service's
ExecStartinvokesevie daemon(it currently runs bareevie) — otherwise the split breaks the running service. Decide and document the behavior of a bareevieinvocation (either alias todaemonor print help); no other subcommands exist yet.This is the "make the change easy" step: it creates the seam the Control Plane hangs off, and nothing else.
Acceptance criteria
evie daemonstarts the process with identical behavior to the pre-split binary (Telegram + HTTP + sessions + idle cleanup, honoring--config).evie --helplists thedaemonsubcommand.evie daemonand the service starts cleanly.Blocked by