feat(agent): add persistent klogging settings

- Add settings API and UI to toggle keylog
- Persist preference in settings.json
- Expose klogging state in status endpoint
- Inject build version into web console
- Bump version automatically on build
This commit is contained in:
2026-09-01 23:36:39 +03:00
parent a3c78820ed
commit ac31e52a8c
13 changed files with 329 additions and 14 deletions
+14
View File
@@ -28,4 +28,18 @@ func TestSpec(t *testing.T) {
if !ok || len(schemas) < 10 {
t.Fatalf("expected schemas, got %d", len(schemas))
}
status, ok := schemas["Status"].(map[string]any)
if !ok {
t.Fatal("missing Status schema")
}
props, ok := status["properties"].(map[string]any)
if !ok {
t.Fatal("missing Status properties")
}
if _, ok := props["klogging"]; !ok {
t.Fatal("Status missing klogging")
}
if _, ok := props["keylog_enabled"]; ok {
t.Fatal("Status still has keylog_enabled")
}
}