()
| 911 | } |
| 912 | |
| 913 | function getInstallationEnv(): NodeJS.ProcessEnv | undefined { |
| 914 | // Cursor on Linux may incorrectly implement |
| 915 | // the `code` command and actually launch the UI. |
| 916 | // Make this error out if this happens by clearing the DISPLAY |
| 917 | // environment variable. |
| 918 | if (getPlatform() === 'linux') { |
| 919 | return { |
| 920 | ...process.env, |
| 921 | DISPLAY: '', |
| 922 | } |
| 923 | } |
| 924 | return undefined |
| 925 | } |
| 926 | |
| 927 | function getClaudeCodeVersion() { |
| 928 | return MACRO.VERSION |
no test coverage detected