Add start/stop/restart commands to the agentd agent CLI group.
Commands:
1. agentd agent start <name>
systemctl --user start pi-agent@<name>2. agentd agent stop <name>
systemctl --user stop pi-agent@<name>3. agentd agent restart <name>
systemctl --user restart pi-agent@<name>Important: must set XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS env vars when calling systemctl, same as the current pi-agent script does:
XDG_RUNTIME_DIR=/run/user/$(id -u)
DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
Use System.Process to shell out to systemctl. Check exit codes and report errors clearly.
Files to modify:
Ava verified: 'agentd agent' subcommand group is live in production agentd CLI. agent create/list/status/start/stop/restart/send/logs/rm/purge all present and functional. Moving to Verified.