(fileName string)
| 808 | } |
| 809 | |
| 810 | func normalizeSandboxInputPath(fileName string) (string, error) { |
| 811 | normalized, err := normalizeSandboxWorkspacePath(fileName) |
| 812 | if err != nil { |
| 813 | return "", err |
| 814 | } |
| 815 | if strings.HasPrefix(normalized, "output/") || strings.HasPrefix(normalized, "outputs/") { |
| 816 | return normalized, nil |
| 817 | } |
| 818 | if strings.HasPrefix(normalized, "inputs/") || strings.HasPrefix(normalized, "tmp/") || strings.HasPrefix(normalized, "skills/") { |
| 819 | return normalized, nil |
| 820 | } |
| 821 | return filepath.ToSlash(filepath.Join("inputs", normalized)), nil |
| 822 | } |
| 823 | |
| 824 | func shouldNormalizeSandboxDeliverablePath(fileName string) bool { |
| 825 | switch strings.ToLower(filepath.Ext(strings.TrimSpace(fileName))) { |
nothing calls this directly
no test coverage detected