feat(governance): 新增 Status Cleanup Dashboard read model

This commit is contained in:
Your Name
2026-06-24 23:45:37 +08:00
parent bb2ad03271
commit ed755dc3b8
12 changed files with 1845 additions and 0 deletions

View File

@@ -329,6 +329,11 @@ export const apiClient = {
return handleResponse<AiAgentDeploymentLayoutSnapshot>(res)
},
async getAwoooIStatusCleanupDashboard() {
const res = await fetch(`${API_BASE_URL}/agents/awoooi-status-cleanup-dashboard`)
return handleResponse<AwoooIStatusCleanupDashboardSnapshot>(res)
},
async getAiAgent12AgentWarRoom() {
const res = await fetch(`${API_BASE_URL}/agents/agent-12-agent-war-room`)
return handleResponse<AiAgent12AgentWarRoomSnapshot>(res)
@@ -1349,6 +1354,43 @@ export interface AiAgentDeploymentLayoutSnapshot {
>
}
export interface AwoooIStatusCleanupDashboardSnapshot {
schema_version: 'awoooi_status_cleanup_dashboard_v1'
generated_at: string
target_route: '/workspace/status-cleanup'
summary: {
dashboard_status: string
overall_completion_percent: number
gate_count: number
blocked_gate_count: number
accepted_owner_flag_count: number
required_owner_flag_count: number
apply_allowed: false
memory_write_authorized: false
wazuh_api_live_query_authorized: false
runtime_execution_authorized: false
ui_implementation_allowed: false
[key: string]: unknown
}
metric_cards: Array<Record<string, unknown>>
gate_cards: Array<Record<string, unknown>>
workflow_rows: Array<Record<string, unknown>>
risk_controls: Array<Record<string, unknown>>
blocking_reasons: string[]
next_actions: string[]
wazuh_handoff: Record<string, unknown>
hard_gates: string[]
operation_boundaries: Record<string, false>
secret_values_collected: false
remote_write_performed: false
local_product_write_performed: false
execution_authorized: false
memory_write_authorized: false
wazuh_api_live_query_authorized: false
runtime_execution_authorized: false
ui_implementation_authorized: false
}
export interface AiAgent12AgentWarRoomSnapshot {
schema_version: 'ai_agent_12_agent_war_room_v1'
generated_at: string