(containerName string)
| 102 | } |
| 103 | |
| 104 | func loadOpenclawOverviewSkillStats(containerName string) (int, error) { |
| 105 | output, err := cmd.RunDockerExecWithStdout(5*time.Minute, containerName, "openclaw", "skills", "list", "--json") |
| 106 | if err != nil { |
| 107 | return 0, err |
| 108 | } |
| 109 | if strings.TrimSpace(output) == "" { |
| 110 | return 0, nil |
| 111 | } |
| 112 | skills, err := parseOpenclawSkillsList(output) |
| 113 | if err != nil { |
| 114 | return 0, err |
| 115 | } |
| 116 | return len(skills), nil |
| 117 | } |
| 118 | |
| 119 | func loadOpenclawOverviewSessionCount(installPath string) (int, error) { |
| 120 | sessionStorePaths, err := filepath.Glob(filepath.Join(installPath, openclawSessionStoreRelativeGlob)) |
no test coverage detected