(agentType, content string)
| 1429 | } |
| 1430 | |
| 1431 | func validateAgentConfigFileContent(agentType, content string) error { |
| 1432 | var payload interface{} |
| 1433 | if agentType == constant.AppHermesAgent { |
| 1434 | return yaml.Unmarshal([]byte(content), &payload) |
| 1435 | } |
| 1436 | return json.Unmarshal([]byte(content), &payload) |
| 1437 | } |
| 1438 | |
| 1439 | func getOpenclawNPMRegistry(containerName string) (string, error) { |
| 1440 | registry, err := cmd.RunDockerExecWithStdout(20*time.Second, containerName, "npm", "get", "registry") |