feat: RDG session flap rule, qwinsta/logoff queue and dashboard UI (0.9.13)

Detect 302→303 within 1–10s, Problem with 30s dedup, rdg_flap flag.
Agent command poll API, admin qwinsta/logoff from Overview. Migration 016.
This commit is contained in:
PTah
2026-06-19 23:34:01 +10:00
parent b328d32f97
commit 2aec488226
24 changed files with 1012 additions and 25 deletions
+28
View File
@@ -169,6 +169,34 @@ export interface EventSummary {
title: string;
summary: string;
actor_user?: string | null;
rdg_flap?: boolean;
}
export interface AgentCommandResponse {
command_uuid: string;
command_type: string;
status: string;
result_stdout?: string | null;
result_stderr?: string | null;
created_at?: string | null;
completed_at?: string | null;
}
export function postEventQwinsta(eventId: number): Promise<AgentCommandResponse> {
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/qwinsta`, {
method: "POST",
});
}
export function postEventLogoff(eventId: number, sessionId: number): Promise<AgentCommandResponse> {
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/logoff`, {
method: "POST",
body: JSON.stringify({ session_id: sessionId }),
});
}
export function fetchEventAction(eventId: number, commandUuid: string): Promise<AgentCommandResponse> {
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/${commandUuid}`);
}
export interface EventListResponse {