From 67e531aa272c303fbef174e8224859fa92f9aa18 Mon Sep 17 00:00:00 2001 From: Thales Maciel Date: Mon, 16 Mar 2026 16:21:05 -0300 Subject: [PATCH] Add VM kill RPC parameters The Go control plane already exposed banger vm kill and daemon-side kill handling, but the API package was missing the VMKillParams request type. That left the worktree depending on an unstaged type addition even though the rest of the feature was already wired. Add the missing request struct so the CLI, RPC layer, and daemon share an explicit payload for signal-based VM termination. This commit is intentionally narrow because the rest of the kill-path work was already present. --- internal/api/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/api/types.go b/internal/api/types.go index e2789d2..22ad6a8 100644 --- a/internal/api/types.go +++ b/internal/api/types.go @@ -28,6 +28,11 @@ type VMRefParams struct { IDOrName string `json:"id_or_name"` } +type VMKillParams struct { + IDOrName string `json:"id_or_name"` + Signal string `json:"signal,omitempty"` +} + type VMSetParams struct { IDOrName string `json:"id_or_name"` VCPUCount *int `json:"vcpu_count,omitempty"`