()
| 970 | } |
| 971 | |
| 972 | function getInstallationEnv(): NodeJS.ProcessEnv | undefined { |
| 973 | // Cursor on Linux may incorrectly implement |
| 974 | // the `code` command and actually launch the UI. |
| 975 | // Make this error out if this happens by clearing the DISPLAY |
| 976 | // environment variable. |
| 977 | if (getPlatform() === 'linux') { |
| 978 | return { |
| 979 | ...process.env, |
| 980 | DISPLAY: '', |
| 981 | } |
| 982 | } |
| 983 | return undefined |
| 984 | } |
| 985 | |
| 986 | function getClaudeCodeVersion() { |
| 987 | return MACRO.VERSION |
no test coverage detected