Ops-dashboard/ops-agent
Scrum4Me Agent 234b2d1a58 feat(ops-agent): extend whitelist with destructive commands + preconditions
Adds docker_compose_restart/build/up, git_pull (guarded by
git_status_clean precondition), systemctl_restart (via sudo),
caddy_validate, caddy_reload, and caddy_write_config (atomic
stdin→Caddyfile.new→Caddyfile write).

- CommandDef gains preconditions[] and stdin_from_body fields
- exec route checks git_status_clean before git_pull; returns 409 on
  dirty tree with a clear message
- stdin field in ExecBody is piped to child stdin for caddy_write_config

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 17:53:05 +02:00
..
src feat(ops-agent): extend whitelist with destructive commands + preconditions 2026-05-13 17:53:05 +02:00
.gitignore feat: ops-agent Fastify service met SSE, whitelist en systemd-unit 2026-05-13 17:15:44 +02:00
commands.yml.example feat(ops-agent): extend whitelist with destructive commands + preconditions 2026-05-13 17:53:05 +02:00
package-lock.json feat: ops-agent Fastify service met SSE, whitelist en systemd-unit 2026-05-13 17:15:44 +02:00
package.json feat: ops-agent Fastify service met SSE, whitelist en systemd-unit 2026-05-13 17:15:44 +02:00
tsconfig.json feat: ops-agent Fastify service met SSE, whitelist en systemd-unit 2026-05-13 17:15:44 +02:00