chore: auto-commit (4 archivos)

- data.h
- data_http.cpp
- main.cpp
- views.cpp

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 02:06:46 +02:00
parent 5c53cfcb68
commit 00ee6a93e3
4 changed files with 315 additions and 17 deletions
+8
View File
@@ -176,6 +176,8 @@ struct RecentExecutionRow {
int duration_ms = 0;
bool success = true;
std::string error_class;
std::string error_snippet; // texto de error si success=false
std::string command_snippet; // raw command (truncado/redactado) cuando function_id vacio
std::string session_id;
};
@@ -186,6 +188,12 @@ struct ClaudeUsageData {
int total_violations = 0;
int total_copies = 0;
int total_versions = 0;
// Calls que Claude lanza via tools registry-aware: MCP del registry
// (mcp), `fn run` (fn_cli_run) o heredocs python. Excluye bash plano.
int total_mcp = 0;
// % de filas en la ventana con function_id != '' — es decir, calls que
// golpean una funcion registrada. Indicador clave de adopcion del registry.
double registry_pct = 0.0;
std::vector<ClaudeUsageRow> top_functions; // top 20 by calls_total
std::vector<ClaudeViolationRow> recent_violations; // last 20
std::vector<ClaudeCopiedRow> copies;