* 获取基础命令
()
| 183 | } |
| 184 | |
| 185 | function getCodexConfigPathForEnv(env: NodeJS.ProcessEnv, explicitConfigPath?: string): string { |
| 186 | if (explicitConfigPath) return path.resolve(explicitConfigPath); |
| 187 | const codexHome = env.CODEX_HOME |
| 188 | || path.join(env.HOME || env.USERPROFILE || os.homedir(), '.codex'); |
| 189 | return path.join(codexHome, 'config.toml'); |
| 190 | } |