pi-agent: Fix final integrated review

This commit is contained in:
proxyctl coordinator
2026-07-18 02:37:54 +08:00
parent ed8b527f1f
commit 652d7eba2b
18 changed files with 566 additions and 393 deletions
-10
View File
@@ -5,16 +5,6 @@ import (
"proxyctl/internal/profile"
)
func availableTargets(snapshot app.Snapshot) []app.TargetSnapshot {
result := make([]app.TargetSnapshot, 0, len(snapshot.Targets))
for _, item := range snapshot.Targets {
if item.Available {
result = append(result, item)
}
}
return result
}
func profileAt(snapshot app.Snapshot, index int) (profile.Profile, bool) {
if index < 0 || index >= len(snapshot.Profiles) {
return profile.Profile{}, false