feat: add diagnostics and safe reset maintenance

This commit is contained in:
proxyctl coordinator
2026-07-17 03:28:29 +08:00
parent 3003450dce
commit d4c76e4b3c
13 changed files with 1041 additions and 23 deletions
+13
View File
@@ -38,6 +38,19 @@ type OperationResult struct {
Err error
}
// Check is one read-only diagnostic observation with the evidence behind it.
type Check struct {
Name string
OK bool
Evidence string
}
// Diagnosable is the optional Target capability for command and write-authority
// checks which cannot be inferred from availability and inspection alone.
type Diagnosable interface {
DiagnosticChecks(context.Context, *profile.Profile) []Check
}
// Target hides platform paths and commands from the application and TUI.
type Target interface {
ID() string