(filePath: string)
| 15 | dotenv.config(); |
| 16 | |
| 17 | export function setConfigFilePermissions(filePath: string): void { |
| 18 | try { |
| 19 | if (os.platform() !== "win32") { |
| 20 | fs.chmodSync(filePath, 0o600); |
| 21 | } |
| 22 | } catch (error) { |
| 23 | console.warn(`Failed to set permissions on ${filePath}:`, error); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | const CONTINUE_GLOBAL_DIR = (() => { |
| 28 | const configPath = process.env.CONTINUE_GLOBAL_DIR; |
no test coverage detected