fix(auth): support official Command Code environment names

This commit is contained in:
Patrick Wozniak
2026-08-25 15:54:29 +02:00
parent c51a790530
commit 6a7a71e206
13 changed files with 31 additions and 14 deletions
+2 -1
View File
@@ -39,10 +39,11 @@ function runProfile(profile, apiKey) {
const model = process.env[modelVariable] ?? "deepseek/deepseek-v4-flash"
const env = {
...process.env,
COMMANDCODE_API_KEY: apiKey,
COMMAND_CODE_API_KEY: apiKey,
COMMANDCODE_E2E_MODEL: model,
COMMANDCODE_E2E_PROFILE: profile,
}
delete env.COMMANDCODE_API_KEY
delete env.COMMANDCODE_E2E_GO_API_KEY
delete env.COMMANDCODE_E2E_PROVIDER_API_KEY