(customPath?: string)
| 36 | } |
| 37 | |
| 38 | function getQwenCachedCredentialPath(customPath?: string): string { |
| 39 | if (customPath) { |
| 40 | // Support custom path that starts with ~/ or is absolute |
| 41 | if (customPath.startsWith("~/")) { |
| 42 | return path.join(os.homedir(), customPath.slice(2)) |
| 43 | } |
| 44 | return path.resolve(customPath) |
| 45 | } |
| 46 | return path.join(os.homedir(), QWEN_DIR, QWEN_CREDENTIAL_FILENAME) |
| 47 | } |
| 48 | |
| 49 | function objectToUrlEncoded(data: Record<string, string>): string { |
| 50 | return Object.keys(data) |
no outgoing calls
no test coverage detected