(installDir, workspace string)
| 493 | } |
| 494 | |
| 495 | func resolveRoleDir(installDir, workspace string) string { |
| 496 | if workspace == "" { |
| 497 | return "" |
| 498 | } |
| 499 | if strings.HasPrefix(workspace, "/home/node/.openclaw/workspace/") { |
| 500 | return strings.ReplaceAll(workspace, "/home/node/.openclaw", installDir) |
| 501 | } |
| 502 | return strings.ReplaceAll(workspace, "/home/node/.openclaw", path.Join(installDir, "conf")) |
| 503 | } |
| 504 | |
| 505 | func resolveMarkdownWorkspaceDir(installDir, workspace string) (string, error) { |
| 506 | if workspace == "" { |
no outgoing calls
no test coverage detected