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:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user