MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadOpenclawOverviewSkillStats

Function loadOpenclawOverviewSkillStats

agent/app/service/agents_overview.go:104–117  ·  view source on GitHub ↗
(containerName string)

Source from the content-addressed store, hash-verified

102}
103
104func 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
119func loadOpenclawOverviewSessionCount(installPath string) (int, error) {
120 sessionStorePaths, err := filepath.Glob(filepath.Join(installPath, openclawSessionStoreRelativeGlob))

Callers 1

GetOverviewMethod · 0.85

Calls 1

parseOpenclawSkillsListFunction · 0.85

Tested by

no test coverage detected